/* ==========================================================================
   Nurullah Ayhan - Elektrik-Elektronik Mühendisi
   Sade, Şık & Pastel Tasarım Sistemi (Açık Tema)
   Renkler: Sıcak Pastel Turuncu, Adaçayı Yeşili, Saf Beyaz & Duru Nötrler
   ========================================================================== */

:root {
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Arka plan & Metin */
  --bg-body: #fafaf9;
  --bg-surface: #ffffff;
  --bg-subtle: #f4f4f5;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-heading: #0f172a;

  /* Pastel Renk Paleti */
  --orange-primary: #ea580c;
  --orange-light: #fff7ed;
  --orange-border: #fed7aa;
  --orange-hover: #c2410c;

  --green-primary: #16a34a;
  --green-light: #f0fdf4;
  --green-border: #bbf7d0;

  --border-light: #e4e4e7;
  --border-subtle: #f1f5f9;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
}

html, body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.font-mono {
  font-family: var(--font-mono);
}

/* ================= NAVBAR & BRAND ================= */
.clean-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.25s ease;
  z-index: 1030;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--orange-primary), #fed7aa);
  flex-shrink: 0;
}

.brand-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  border: 1.5px solid #ffffff;
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: #0f172a;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-top: 2px;
}

.nav-link {
  color: #475569 !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--orange-primary) !important;
  background-color: var(--orange-light);
}

.navbar-toggler {
  border: 1px solid var(--border-light) !important;
  border-radius: 0.65rem;
  padding: 0.4rem 0.65rem;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

/* Mobile Navbar Optimization */
@media (max-width: 991.98px) {
  .clean-navbar {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
  }

  .navbar-collapse {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-lg);
    max-width: 100%;
  }

  .navbar-nav {
    gap: 0.25rem !important;
    margin-bottom: 0.75rem !important;
  }

  .nav-link {
    padding: 0.65rem 1rem !important;
    font-size: 0.95rem;
  }

  .nav-cta-wrap {
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
  }

  .nav-cta-wrap .btn {
    width: 100%;
    display: block;
    padding: 0.65rem 1rem;
  }

  .brand-wrap {
    max-width: calc(100% - 60px);
    min-width: 0;
  }

  .brand-name {
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-title {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 575.98px) {
  .brand-wrap {
    gap: 0.55rem;
  }

  .brand-avatar-wrap {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .brand-title {
    font-size: 0.64rem;
  }
}

/* Minimalist Clean Cards */
.clean-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.clean-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Streamlined Process Steps */
.process-step-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  height: 100%;
  transition: all 0.25s ease;
}

.process-step-card:hover {
  border-color: var(--orange-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.process-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange-primary);
  background-color: var(--orange-light);
  border: 1px solid var(--orange-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  margin-bottom: 0.85rem;
}

/* Pastel Rozetler & Vurgular */
.badge-pastel-orange {
  background-color: var(--orange-light);
  color: var(--orange-primary);
  border: 1px solid var(--orange-border);
  font-weight: 600;
}

.badge-pastel-green {
  background-color: var(--green-light);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
  font-weight: 600;
}

.badge-pastel-gray {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-weight: 500;
}

/* Domain / Altyapı & Protokol Kartları */
.domain-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 1.15rem;
  padding: 1.75rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.domain-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.domain-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.domain-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.45rem;
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Butonlar */
.btn-orange {
  background-color: var(--orange-primary);
  color: #ffffff;
  border: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-orange:hover {
  background-color: var(--orange-hover);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
  transform: translateY(-1px);
}

.btn-outline-orange {
  border: 1.5px solid var(--orange-primary);
  color: var(--orange-primary);
  background: transparent;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline-orange:hover {
  background-color: var(--orange-primary);
  color: #ffffff;
}

/* ================= HERO SECTION ENHANCED (Plan 1 Premium) ================= */
#hero {
  background: 
    radial-gradient(circle at 75% 25%, rgba(254, 215, 170, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 15% 75%, rgba(187, 247, 208, 0.25) 0%, transparent 45%),
    #fafaf9;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.14;
  color: #0f172a;
}

.hero-highlight {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Metric Cards */
.metric-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* ================= HERO STUDIO PORTRAIT & FLOATING BADGES ================= */
.hero-studio-card {
  position: relative;
  display: inline-block;
  margin: 1.5rem 0;
}

.studio-backdrop {
  position: absolute;
  top: 18px;
  right: -18px;
  bottom: -18px;
  left: 18px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid var(--orange-border);
  border-radius: 2rem;
  z-index: 0;
  box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.08);
}

.studio-portrait {
  position: relative;
  z-index: 1;
  border-radius: 1.75rem;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 6px 16px -4px rgba(0, 0, 0, 0.04);
  border: 5px solid #ffffff;
  width: 100%;
  max-width: 360px;
  height: 440px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

@media (max-width: 575.98px) {
  .hero-studio-card {
    max-width: 290px;
  }
  .studio-backdrop {
    top: 10px;
    right: -10px;
    bottom: -10px;
    left: 10px;
  }
  .studio-portrait {
    max-width: 290px;
    height: 360px;
  }
}

.floating-clean-pill.bottom-left {
  bottom: -10px;
  left: -15px;
}

/* Proje Kartı Görseli */
.project-thumb {
  height: 210px;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  border-bottom: 1px solid var(--border-light);
}

/* Filter Butonları */
.clean-filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: #64748b;
  padding: 0.45rem 1.15rem;
  border-radius: 2rem;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.clean-filter-btn:hover {
  background: #f8fafc;
  color: var(--text-heading);
  border-color: #cbd5e1;
}

.clean-filter-btn.active {
  background: var(--orange-primary);
  border-color: var(--orange-primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.22);
}

/* ================= MODERN CLEAN PROJECT CARDS ================= */
.project-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 2rem 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.project-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.project-brief-box {
  background-color: #f8fafc;
  border-left: 3px solid var(--orange-primary);
  border-radius: 0 0.65rem 0.65rem 0;
  padding: 0.85rem 1.15rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}

.project-brief-box.defense-brief {
  border-left-color: #2563eb;
}

.project-brief-box.power-brief {
  border-left-color: #d97706;
}

.project-brief-box.patent-brief {
  border-left-color: #ea580c;
}

.project-brief-box .brief-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-primary);
  margin-bottom: 0.25rem;
}

.defense-brief .brief-label {
  color: #2563eb;
}

.power-brief .brief-label {
  color: #d97706;
}

.project-tasks-heading {
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
}

.project-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-task-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.55;
}

.project-task-item i {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--green-primary);
  background-color: var(--green-light);
  border: 1px solid var(--green-border);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: #64748b;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.65rem;
  border-radius: 0.45rem;
  transition: all 0.15s ease;
}

.project-tag:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* Timeline */
.clean-timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid #e2e8f0;
  padding-bottom: 2rem;
}

.clean-timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange-primary);
  box-shadow: 0 0 0 4px #ffffff;
}

.clean-timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

/* Sertifika Kartları */
.clean-cert-card {
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
  background: #ffffff;
  transition: all 0.2s ease;
}

.clean-cert-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--orange-primary);
  transform: translateY(-2px);
}

.clean-cert-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

/* Yeşil / Turuncu Nokta */
.status-dot-green {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green-primary);
}

.status-dot-orange {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--orange-primary);
}

/* Back to Top */
#btn-back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none;
  z-index: 99;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  background: var(--orange-primary);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-md);
}

#btn-back-to-top:hover {
  background: var(--orange-hover);
}

/* Gizli Modal Hata Sarsıntı Animasyonu */
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.animate__shake {
  animation: shakeX 0.4s ease-in-out !important;
}
