:root {
  --bg: #06070b;
  --surface: rgba(17, 20, 32, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.5);
  --text: #f8fafc;
  --muted: #94a3b8;
  --indigo: #6366f1;
  --cyan: #06b6d4;
  --grad: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --grad-text: linear-gradient(135deg, #ffffff 20%, #a5b4fc 60%, #22d3ee 100%);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius: 22px;
  --transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 18% 8%, rgba(99, 102, 241, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 82% 28%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; outline: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(99, 102, 241, 0.55);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(6, 182, 212, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 11px 0;
  background: rgba(6, 7, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  z-index: 1002;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-text strong span { color: var(--cyan); }

.logo-text small {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  min-height: 42px;
  padding: 10px 22px;
  font-size: 0.88rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 10px;
  cursor: pointer;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 155px 0 88px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  display: block;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  line-height: 1.09;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 880px;
  margin: 0 auto 20px;
}

.hero p {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.section {
  padding: 82px 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  max-width: 560px;
  font-size: 1rem;
}

/* Portfolio Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 22px 44px -15px rgba(0, 0, 0, 0.75);
}

.preview-box {
  height: 195px;
  padding: 18px 18px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.bg-willow { background: radial-gradient(circle at top right, #1e3a8a, #090d1a); }
.bg-elif   { background: radial-gradient(circle at top right, #581c87, #0d0917); }
.bg-karayel{ background: radial-gradient(circle at top right, #78350f, #0d0c0a); }

.browser-ui {
  background: #0d101b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  height: 154px;
  padding: 12px 14px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .browser-ui {
  transform: translateY(-4px) scale(1.02);
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dots { display: flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); display: block; }

.domain-pill {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 999px;
}

.ui-hero {
  height: 52px;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bg-willow .ui-hero  { background: linear-gradient(120deg, rgba(59, 130, 246, 0.35), rgba(6, 182, 212, 0.15)); }
.bg-elif .ui-hero    { background: linear-gradient(120deg, rgba(168, 85, 247, 0.35), rgba(236, 72, 153, 0.15)); }
.bg-karayel .ui-hero { background: linear-gradient(120deg, rgba(245, 158, 11, 0.35), rgba(180, 83, 9, 0.15)); }

.line-a { width: 55%; height: 7px; background: rgba(255, 255, 255, 0.85); border-radius: 4px; margin-bottom: 6px; }
.line-b { width: 35%; height: 5px; background: rgba(255, 255, 255, 0.4); border-radius: 4px; }

.ui-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ui-grid div {
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-body p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.project-link:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: var(--border-hover);
  color: #fff;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact */
.contact-card {
  background: linear-gradient(145deg, rgba(20, 24, 42, 0.92), rgba(10, 12, 20, 0.96));
  border: 1px solid rgba(99, 102, 241, 0.32);
  border-radius: 26px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.contact-desc {
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-trust {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.trust-item svg { color: var(--cyan); flex-shrink: 0; }

.trust-item strong {
  display: block;
  font-size: 0.95rem;
}

.trust-item small {
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.25s;
}

.form-input:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.06);
}

textarea.form-input {
  min-height: 115px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 15px;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet & Mobile Responsive */
@media (max-width: 960px) {
  .projects-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-card {
    grid-template-columns: 1fr;
    padding: 34px 24px;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(6, 7, 11, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: right 0.3s ease;
    z-index: 1001;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.35rem; color: #fff; padding: 8px 16px; }

  .hero { padding: 124px 0 58px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 56px 0; }
  .projects-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .contact-card { padding: 26px 18px; border-radius: 20px; }
}
.form-status {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  animation: fadeSlideUp 0.3s ease;
}

.form-status.success,
.form-status.error {
  display: flex;
}

.form-status svg {
  flex-shrink: 0;
}

/* Ekranda Kayan Bildirim (Toast) */
.toast-notify {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #f8fafc;
  font-size: 0.92rem;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast-notify.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-notify.error {
  border-color: rgba(239, 68, 68, 0.5);
}

.toast-notify strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.toast-notify span {
  color: #cbd5e1;
  font-size: 0.84rem;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .toast-notify {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
