/* ==========================================================================
   EXACT SURINDER.DESIGN TEMPLATE FOR FAIZ AHMAD (AI AUTOMATION SPECIALIST)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&family=Mukta:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-paper: #F6F3EB;
  --bg-secondary: #EBE7DC;
  --bg-card: #F9F7F2;
  --border-clean: #E0D9CC;
  --border-subtle: #F2F0E9;
  --text-dark: #1A1714;
  --text-stone: #6B6358;
  --accent-terracotta: #B0552F;
  --accent-terracotta-hover: #9A4826;
  --accent-secondary-terracotta: #CF4F23;
  --status-green: #47AB19;
  --status-green-glow: rgba(99, 186, 59, 0.5);

  --font-inter: 'Inter', sans-serif;
  --font-mukta: 'Mukta', sans-serif;
  --font-playfair: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --glass-bg: linear-gradient(180deg, rgba(245, 245, 245, 0.35) 0%, #F5F5F5 100%);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0px 10px 30px 0px rgba(26, 23, 20, 0.12), 0px 1px 2px 0px rgba(26, 23, 20, 0.06), inset 0px 1px 0px 0px rgba(255, 255, 255, 0.85);

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-paper: #0E0E0E;
  --bg-secondary: #181817;
  --bg-card: #212529;
  --border-clean: #2C2C2C;
  --border-subtle: #1F1F1F;
  --text-dark: #FBF9F4;
  --text-stone: #9A9A9A;
  --accent-terracotta: #CF4F23;
  --accent-terracotta-hover: #A04322;
  --accent-secondary-terracotta: #B0552F;

  --glass-bg: linear-gradient(180deg, rgba(35, 35, 35, 0.6) 0%, #1A1A1A 100%);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.4), inset 0px 1px 0px 0px rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-paper);
  color: var(--text-dark);
  font-family: var(--font-mukta);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.5;
  background-color: var(--bg-paper);
  color: var(--text-dark);
}

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

/* --- Top Veil Blur --- */
.v2-top-veil {
  position: fixed;
  inset: 0 0 auto 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0) 100%);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  pointer-events: none;
  z-index: 40;
  mask-image: linear-gradient(to top, transparent, black 55%);
  -webkit-mask-image: linear-gradient(to top, transparent, black 55%);
}

[data-theme="dark"] .v2-top-veil {
  background: linear-gradient(to bottom, rgba(14, 14, 14, 0.7) 0%, rgba(14, 14, 14, 0.35) 40%, rgba(14, 14, 14, 0) 100%);
}

/* --- Glass Pill Navigation --- */
.v2-nav-pill {
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  border-radius: 44px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  padding: 8px 16px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: var(--transition);
}

.nav-identity-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 27px;
  height: 32px;
}

.nav-identity-text {
  display: flex;
  flex-direction: column;
}

.nav-name {
  font-family: var(--font-inter);
  font-size: 12px;
  line-height: 14px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.nav-role {
  font-family: var(--font-mukta);
  font-size: 10px;
  line-height: 13px;
  font-weight: 500;
  color: var(--text-stone);
  white-space: nowrap;
}

.nav-divider {
  height: 24px;
  width: 1px;
  background-color: rgba(26, 23, 20, 0.1);
}

[data-theme="dark"] .nav-divider {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 4px;
  border-radius: 9999px;
}

.nav-dot-container {
  position: relative;
  display: flex;
  width: 12px;
  height: 12px;
}

.nav-dot-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--status-green-glow);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.nav-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--status-green);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.nav-status-text {
  font-family: var(--font-inter);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: -0.011em;
  color: var(--status-green);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mukta);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text-dark);
}

.nav-links a {
  border-radius: 10px;
  padding: 6px 12px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--bg-secondary);
}

/* --- Platform Logo Buttons in Navbar Pill --- */
.nav-platform-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 9999px;
  background-color: var(--bg-paper);
  border: 1px solid var(--border-clean);
  color: var(--text-dark);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-platform-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent-terracotta);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Floating Theme Circle (Desktop Top Left) --- */
.theme-float-left {
  position: fixed;
  left: 24px;
  top: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
}

/* --- Floating Contact Circle Buttons (Desktop Top Right) --- */
.contact-float-rail {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-circle {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-dark);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.contact-circle:hover {
  transform: translateY(-2px);
  background-color: var(--bg-secondary);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  max-height: 840px;
  background: linear-gradient(to bottom, #F6F3EB 0%, #F1EDE3 100%);
  display: flex;
  align-items: center;
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(to bottom, #0E0E0E, #141414);
}

.hero-inner {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  padding: 100px 24px 40px 24px;
}

.hero-left {
  max-width: 530px;
  margin-left: 20px;
}

.hero-headline {
  font-family: var(--font-inter);
  font-size: 48px;
  line-height: 56px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.hero-accent {
  font-family: var(--font-playfair);
  font-weight: 600;
  font-style: italic;
  color: var(--accent-terracotta);
}

.hero-subtext {
  margin-top: 24px;
  max-width: 528px;
  font-family: var(--font-mukta);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.011em;
  color: var(--text-stone);
}

.hero-cta-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-terracotta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 9px;
  background-color: var(--accent-terracotta);
  padding: 12px 40px;
  font-family: var(--font-mukta);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.011em;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0px 2px 5px 0px rgba(94,41,20,0.22), inset 0px 1px 0px 0px rgba(255,255,255,0.18);
  transition: background-color 0.3s ease;
}

.btn-terracotta:hover {
  background-color: var(--accent-terracotta-hover);
}

.btn-dark-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 9px;
  background-color: var(--text-dark);
  padding: 12px 40px;
  font-family: var(--font-mukta);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.011em;
  color: var(--bg-paper);
  border: 1px solid var(--border-clean);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .btn-dark-cta {
  background-color: #242426;
  color: #FFFFFF;
  border-color: #3A3A3C;
}

.btn-dark-cta:hover {
  background-color: var(--accent-terracotta);
  color: #FFFFFF;
  border-color: var(--accent-terracotta);
}

.btn-note {
  font-family: var(--font-mukta);
  font-size: 13px;
  color: var(--text-stone);
}

.btn-link-underline {
  padding: 12px 8px;
  font-family: var(--font-mukta);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.011em;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-position: from-font;
  transition: color 0.2s ease;
}

.btn-link-underline:hover {
  color: var(--accent-terracotta);
}

/* Certification / Stack Badges */
.stack-badges-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stack-badge-item {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-stone);
  background: var(--bg-secondary);
  border: 1px solid var(--border-clean);
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Hero Right Headshot & Rotating Badge */
.hero-right-photo-wrap {
  position: absolute;
  bottom: 0;
  right: 30px;
  width: 480px;
  max-width: 48%;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0px 15px 30px rgba(0, 0, 0, 0.16));
  transition: transform 0.4s ease, filter 0.4s ease;
}

[data-theme="dark"] .hero-portrait-img {
  filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.5));
}

.rotating-badge-container {
  position: absolute;
  bottom: 60px;
  right: -40px;
  width: 140px;
  height: 140px;
  z-index: 10;
}

.badge-rotor {
  transform-origin: 75px 75px;
  animation: badge-spin 30s linear infinite;
}

@keyframes badge-spin {
  to { transform: rotate(360deg); }
}

/* --- Continuous Stats Strip --- */
.continuous-stats-strip {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-paper);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-number {
  font-family: var(--font-inter);
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text-dark);
}

.stat-label-text {
  font-family: var(--font-mukta);
  font-size: 12px;
  line-height: 1.18;
  color: var(--text-stone);
  white-space: pre-line;
}

.stat-hairline {
  height: 34px;
  width: 1px;
  background-color: var(--border-clean);
}

/* --- Dark Section: How I Help --- */
.dark-section {
  position: relative;
  overflow: hidden;
  background-color: #0E0E0E;
  color: #FFFFFF;
  padding: 100px 24px;
}

.dark-section-title {
  font-family: var(--font-inter);
  font-size: 48px;
  line-height: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.dark-section-subtitle {
  font-family: var(--font-mukta);
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  max-w: 600px;
  margin: 0 auto 64px auto;
}

.dark-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.dark-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 12px;
  padding: 32px;
  padding-bottom: 50px;
  text-align: left;
  background: linear-gradient(135deg, #2C2A27 0%, #212121 50%, #181817 100%);
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-service-card:hover {
  background-position: 100% 100%;
}

.card-tag-question {
  font-family: var(--font-mukta);
  font-size: 14px;
  font-weight: 500;
  color: #D5C79B;
  margin-bottom: 16px;
}

.dark-service-card h3 {
  font-family: var(--font-inter);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.dark-service-card p {
  font-family: var(--font-mukta);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.dark-slot-banner {
  margin: 48px auto 0 auto;
  display: flex;
  width: max-content;
  align-items: center;
  gap: 24px;
  border-radius: 12px;
  border: 1px solid rgba(151, 151, 150, 0.3);
  background-color: #1D1D1F;
  padding: 20px;
  font-family: var(--font-mukta);
  font-size: 18px;
  color: #FFFFFF;
}

/* --- "How I Think" Principles --- */
.principles-section {
  padding: 100px 24px;
  background-color: var(--bg-paper);
}

.principles-title {
  font-family: var(--font-inter);
  font-size: 48px;
  line-height: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text-dark);
}

.principles-subtitle {
  font-family: var(--font-mukta);
  font-size: 20px;
  color: var(--text-stone);
  text-align: center;
  max-width: 600px;
  margin: 16px auto 48px auto;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.principle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, #ffffff 0%, #FDFAF5 50%, #F4EDE1 100%);
  background-size: 200% 200%;
  padding: 40px;
  text-align: center;
  box-shadow: 0px 1px 2px 0px rgba(10,13,20,0.03);
  transition: background-position 0.5s ease;
}

[data-theme="dark"] .principle-card {
  background: linear-gradient(135deg, #1C1C1E 0%, #161618 50%, #121214 100%);
  border-color: #2C2C2C;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
}

.principle-card:hover {
  background-position: 100% 100%;
}

.principle-icon-halo {
  display: flex;
  width: 80px;
  height: 80px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #F6E8DC 0%, rgba(246, 232, 220, 0) 72%);
}

[data-theme="dark"] .principle-icon-halo {
  background: radial-gradient(circle at 50% 38%, rgba(207, 79, 35, 0.25) 0%, rgba(207, 79, 35, 0) 72%);
}

.principle-card h3 {
  margin-top: 24px;
  font-family: var(--font-inter);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-dark);
}

.principle-card p {
  margin-top: 12px;
  max-width: 300px;
  font-family: var(--font-mukta);
  font-size: 16px;
  line-height: 24px;
  color: var(--text-stone);
}

/* --- Selected Work Case Studies --- */
.portfolio-section {
  padding: 80px 24px 100px 24px;
}

.portfolio-container {
  max-width: 1240px;
  margin: 0 auto;
}

.portfolio-header {
  margin-bottom: 48px;
  text-align: center;
}

.portfolio-title {
  font-family: var(--font-inter);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.project-case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-clean);
  border-radius: 24px;
  padding: 48px;
  margin-bottom: 40px;
  transition: var(--transition);
}

.project-case-card:hover {
  border-color: var(--accent-terracotta);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
}

.case-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-terracotta);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.case-title {
  font-family: var(--font-inter);
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 16px;
}

.case-desc {
  font-family: var(--font-mukta);
  font-size: 16px;
  color: var(--text-stone);
  margin-bottom: 24px;
  line-height: 1.6;
}

.case-image-box {
  border-radius: 16px;
  border: 1px solid var(--border-clean);
  overflow: hidden;
  background: var(--bg-secondary);
}

.case-image-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Contact & Footer --- */
.footer-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-clean);
  padding: 100px 24px;
  text-align: center;
}

.footer-title {
  font-family: var(--font-inter);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.footer-subtitle {
  font-family: var(--font-mukta);
  font-size: 18px;
  color: var(--text-stone);
  margin-bottom: 40px;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

.footer-links-row a {
  font-family: var(--font-mukta);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-stone);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-row a:hover {
  color: var(--accent-terracotta);
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE SYSTEM (< 860px & < 480px)
   ========================================================================== */

@media (max-width: 860px) {
  /* Top Veil & Header Pill */
  .v2-nav-pill {
    top: 12px;
    padding: 6px 14px;
    gap: 8px;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .v2-nav-pill::-webkit-scrollbar {
    display: none;
  }

  .nav-brand-meta {
    display: none;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .nav-platform-btn {
    padding: 4px 10px;
  }

  .nav-platform-btn svg {
    height: 14px;
  }

  /* Floating Corner Buttons */
  .theme-float-left {
    top: 12px;
    left: 12px;
  }

  .contact-float-rail {
    top: 12px;
    right: 12px;
    gap: 8px;
  }

  .contact-circle {
    width: 40px;
    height: 40px;
  }

  .contact-circle svg {
    width: 18px;
    height: 18px;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto;
    max-height: none;
    display: block;
  }

  .hero-inner {
    padding: 110px 20px 40px 20px;
    text-align: center;
    flex-direction: column;
  }

  .hero-left {
    max-width: 100%;
    margin-left: 0;
  }

  .hero-headline {
    font-size: 34px;
    line-height: 42px;
  }

  .hero-subtext {
    font-size: 15px;
    line-height: 22px;
    margin: 16px auto 0 auto;
  }

  .hero-cta-row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
  }

  .btn-terracotta {
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
  }

  .btn-link-underline {
    padding: 6px 0;
  }

  .stack-badges-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
  }

  .hero-right-photo-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    width: 280px;
    max-width: 85%;
    margin: 32px auto 0 auto;
  }

  .rotating-badge-container {
    display: none;
  }

  /* Continuous Stats Strip */
  .continuous-stats-strip {
    height: auto;
    padding: 24px 16px;
  }

  .stats-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .stat-box {
    justify-content: center;
  }

  .stat-hairline {
    width: 60px;
    height: 1px;
    margin: 0 auto;
  }

  /* Dark Services Section */
  .dark-services-section {
    padding: 60px 20px;
  }

  .dark-services-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .dark-services-title {
    font-size: 28px;
    line-height: 36px;
  }

  .dark-services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dark-service-card {
    padding: 24px;
  }

  /* Principles Section */
  .principles-section {
    padding: 60px 20px;
    text-align: center;
  }

  .principles-title {
    font-size: 28px;
    line-height: 36px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }

  /* Portfolio Work Section */
  .portfolio-section {
    padding: 60px 20px;
  }

  .portfolio-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .portfolio-title {
    font-size: 28px;
    line-height: 36px;
  }

  .project-case-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }

  .case-title {
    font-size: 22px;
    line-height: 28px;
  }

  .case-image-box {
    max-height: 220px;
  }

  /* Footer Section */
  .footer-section {
    padding: 60px 20px 40px 20px;
    text-align: center;
  }

  .footer-title {
    font-size: 28px;
    line-height: 36px;
  }

  .footer-links-row {
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 28px;
    line-height: 36px;
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-label-text {
    font-size: 13px;
  }
}

/* --- Case Modal Backdrop & Card --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.active {
  display: flex !important;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-paper);
  border: 1px solid var(--border-clean);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-clean);
  background: var(--bg-secondary);
  color: var(--text-dark);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

.modal-title {
  font-family: var(--font-inter);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  margin-top: 8px;
  margin-bottom: 24px;
}

.modal-image-wrap {
  border-radius: 16px;
  border: 1px solid var(--border-clean);
  overflow: hidden;
  margin-bottom: 32px;
  background: #0E0E0E;
}

.modal-img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.modal-detail-box {
  background: var(--bg-card);
  border: 1px solid var(--border-clean);
  border-radius: 16px;
  padding: 24px;
}

.modal-detail-box h4,
.modal-impact-box h4 {
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-terracotta);
  margin-bottom: 10px;
}

.modal-detail-box p,
.modal-impact-box p {
  font-family: var(--font-mukta);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-stone);
}

.modal-impact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-clean);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .modal-details-grid {
    grid-template-columns: 1fr;
  }
}
