/* ═══════════════════════════════════════════════════════════════════
   AETHERAGENCY — Global Styles & Design System
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Variables & Theme Settings ────────────────────────────────── */
:root {
  /* Common values */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Syne', sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-height: 80px;
  
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-spring: all 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --container-width: 1200px;
}

/* Dark Theme (Midnight Luxury — Default) */
body.dark-theme {
  --bg-0: #0f0f11;
  --bg-1: #16161a;
  --bg-2: #1e1e24;
  --bg-card: #16161a;
  --text-1: #f5f5f7;
  --text-2: #a0aec0;
  --text-3: #718096;
  --accent: #d4af37; /* Gold */
  --accent-2: #f3c63f; /* Bright Gold */
  --accent-rgb: 212, 175, 55;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --glass-bg: rgba(15, 15, 17, 0.85);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-blur: 15px;
}

/* Light Theme (Classic Premium) */
body.light-theme {
  --bg-0: #ffffff;
  --bg-1: #f8f9fa;
  --bg-2: #f1f3f5;
  --bg-card: #ffffff;
  --text-1: #0a192f; /* Deep Navy */
  --text-2: #334155; /* Slate Gray */
  --text-3: #64748b; /* Muted */
  --accent: #0066cc; /* Electric Blue */
  --accent-2: #00aaff; /* Cyan */
  --accent-rgb: 0, 102, 204;
  --border: rgba(10, 25, 47, 0.08);
  --border-hover: rgba(10, 25, 47, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(10, 25, 47, 0.06);
  --glass-blur: 15px;
}

/* ─── Global Reset & Base Setup ────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-0);
  color: var(--text-2);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-1);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

/* ─── Grid & Container Layout ──────────────────────────────────── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 120px 0;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 64px;
  max-width: 600px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-3);
  line-height: 1.7;
}

/* ─── Buttons UI ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-0);
  border-color: var(--accent);
}

body.dark-theme .btn-primary {
  color: #0f0f11;
  background-color: var(--accent);
}

body.light-theme .btn-primary {
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.25);
  background-color: var(--accent-2);
  border-color: var(--accent-2);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-1);
  border-color: var(--border);
}

.btn-ghost:hover {
  background-color: rgba(var(--accent-rgb), 0.05);
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Header & Navigation ──────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border 0.4s ease;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-1);
  display: flex;
  align-items: center;
}

.logo-accent {
  color: var(--accent);
  margin-right: 2px;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--text-1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.sun-icon { display: none; width: 20px; height: 20px; }
.moon-icon { display: block; width: 20px; height: 20px; }

body.light-theme .sun-icon { display: block; }
body.light-theme .moon-icon { display: none; }

/* Mobile menu toggle */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-1);
  margin-bottom: 6px;
  transition: var(--transition);
}

.hamburger span:last-child {
  margin-bottom: 0;
}

/* ─── Hero Section ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-0);
  padding-top: var(--nav-height);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 30%, transparent 20%, var(--bg-0) 80%);
  z-index: 2;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 720px;
}

.hero .eyebrow {
  margin-bottom: 24px;
  padding: 6px 14px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 100px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-block;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-2);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── About Section ────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 24px;
}

.about-description:last-child {
  margin-bottom: 0;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.value-item {
  display: flex;
  gap: 20px;
}

.value-icon {
  width: 52px;
  height: 52px;
  background-color: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

.value-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.value-info p {
  font-size: 0.95rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* ─── Services Section ─────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 0 1px rgba(var(--accent-rgb), 0.15);
}

.service-icon {
  color: var(--accent);
  margin-bottom: 24px;
  width: 44px;
  height: 44px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-3);
  line-height: 1.6;
}

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

.case-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.case-img-container {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-2);
}

.case-svg-img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-card:hover .case-svg-img {
  transform: scale(1.06);
}

.case-content {
  padding: 32px;
  flex: 1;
}

.case-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 8px;
}

.case-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.case-desc {
  font-size: 0.92rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* ─── Testimonials Section ─────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.quote-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
}

.quote-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.quote-text {
  font-size: 1.1rem;
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 32px;
  font-style: italic;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.author-name {
  display: block;
  font-weight: 600;
  color: var(--text-1);
  font-size: 0.98rem;
  font-style: normal;
}

.author-title {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ─── Contact Section ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.contact-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.detail-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-1);
  display: inline-block;
  width: fit-content;
}

.detail-link:hover {
  color: var(--accent);
}

.detail-val {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-1);
}

.contact-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: var(--transition);
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* Form Styling */
.contact-form-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-1);
}

.form-input {
  background-color: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-1);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.1);
}

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

.btn-submit {
  width: 100%;
  gap: 8px;
}

.submit-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-submit:hover .submit-arrow {
  transform: translateX(4px);
}

/* Form success message states */
.form-status {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background-color: rgba(0, 200, 100, 0.08);
  border: 1px solid rgba(0, 200, 100, 0.25);
  border-radius: var(--radius-md);
  align-items: flex-start;
  margin-top: 8px;
}

.status-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgb(0, 200, 100);
  color: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.status-text {
  font-size: 0.92rem;
  color: var(--text-1);
}

/* ─── Footer Section ───────────────────────────────────────────── */
.footer {
  padding: 80px 0;
  background-color: var(--bg-1);
  border-top: 1px solid var(--border);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 40px;
}

.footer .logo {
  justify-self: start;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-self: end;
  align-items: center;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-3);
}

.footer-links a:hover {
  color: var(--text-1);
}

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ─── Reveal Animations System (Intersection Observer) ──────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

/* Anim offsets */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Responsive Styles ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  
  .about-grid, .testimonials-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Hamburger & Menu Overlay styles */
  .hamburger {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-height));
    background-color: var(--bg-0);
    border-top: 1px solid var(--border);
    z-index: 1050;
    padding: 60px 40px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.3s ease;
  }

  .nav.mobile-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

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

  .nav-link {
    font-size: 1.25rem;
  }

  .hamburger.active span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .contact-info {
    order: 2;
  }

  .contact-form-container {
    order: 1;
    padding: 32px 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .footer-links {
    justify-self: start;
    flex-wrap: wrap;
    gap: 16px;
  }

  .planner-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-toggle-grid {
    grid-template-columns: 1fr;
  }
  
  .summary-box {
    position: static;
  }
}

/* ─── Custom Aura Cursor Trail ────────────────────────────────── */
.cursor-aura {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
              height 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
              background-color 0.25s ease, 
              border-color 0.25s ease;
  mix-blend-mode: normal;
  display: block;
}

/* Expand aura cursor on active element hovers */
.cursor-aura.hovering {
  width: 68px;
  height: 68px;
  background-color: rgba(var(--accent-rgb), 0.07);
  border-color: var(--accent-2);
}

/* Hide cursor trail on touch/mobile screens */
@media (hover: none) and (pointer: coarse) {
  .cursor-aura {
    display: none !important;
  }
}

/* ─── Interactive Project Planner Styles ─────────────────────── */
.planner-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.planner-group h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 20px;
}

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

.toggle-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

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

.toggle-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--text-3);
  transition: var(--transition);
  flex-shrink: 0;
}

.toggle-card-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.toggle-price {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

.toggle-card.active {
  border-color: var(--accent);
  background-color: rgba(var(--accent-rgb), 0.04);
}

.toggle-card.active .toggle-indicator {
  border-color: var(--accent);
  background-color: var(--accent);
}

.complexity-selector {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.complexity-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0; width: 0;
}

.complexity-radio-card {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}

.complexity-option:hover .complexity-radio-card {
  border-color: var(--border-hover);
}

.complexity-radio-card strong {
  font-size: 1.05rem;
  color: var(--text-1);
  margin-bottom: 4px;
}

.complexity-radio-card span {
  font-size: 0.85rem;
  color: var(--text-3);
}

.complexity-option input:checked + .complexity-radio-card {
  border-color: var(--accent);
  background-color: rgba(var(--accent-rgb), 0.04);
}

.planner-summary {
  position: sticky;
  top: 110px;
}

.summary-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.summary-box h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 8px;
}

.estimate-amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.estimate-timeline {
  font-size: 1.05rem;
  color: var(--text-1);
  font-weight: 500;
  margin-bottom: 32px;
}

.summary-details-list {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-details-list li {
  font-size: 0.92rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-details-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
}

/* ─── Case Modal Glassmorphic Overlay ───────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

.modal-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  animation: slideUp 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-close {
  position: absolute;
  top: 24px; right: 24px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--accent);
  color: var(--bg-0);
  border-color: var(--accent);
}

.case-modal-img {
  width: 100%;
  height: 240px;
  background-color: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-modal-img svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-modal-body {
  padding: 44px;
}

.case-modal-body .modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 8px 0 16px;
  letter-spacing: -0.02em;
}

.case-modal-body .modal-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
}

.case-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.spec-cell {
  display: flex;
  flex-direction: column;
}

.spec-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.spec-cell strong {
  font-size: 0.95rem;
  color: var(--text-1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (max-width: 580px) {
  .case-specs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .case-modal-body {
    padding: 28px;
  }
}

