@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Spectrum Gradients (From Logo) */
  --logo-magenta: #ec4899;
  --logo-purple: #8b5cf6;
  --logo-blue: #3b82f6;
  --logo-cyan: #06b6d4;
  
  --logo-gradient-left: linear-gradient(135deg, var(--logo-magenta) 0%, var(--logo-purple) 100%);
  --logo-gradient-right: linear-gradient(135deg, var(--logo-blue) 0%, var(--logo-cyan) 100%);
  --logo-gradient-full: linear-gradient(135deg, var(--logo-magenta) 0%, var(--logo-purple) 50%, var(--logo-blue) 100%);

  /* Light Theme Defaults */
  --bg-color: #f8fafc;
  --bg-gradient: radial-gradient(circle at top right, #eef2ff 0%, #f8fafc 100%);
  --text-dark: #0f172a;
  --text-muted: #475569;
  --card-bg: rgba(255, 255, 255, 0.75);
  --border-color: rgba(15, 23, 42, 0.06);
  --nav-bg: rgba(248, 250, 252, 0.9);
  --glass-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.04), 0 1px 3px 0 rgba(15, 23, 42, 0.02);
  --btn-text: #ffffff;
  --card-text-shadow: none;
  --hero-exploded-bg: url('../assets/hero-exploded-pc-white.png');
  --primary-color: #3b82f6;
  --secondary-color: #8b5cf6;
  --accent-color: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.15);
  --grid-color: rgba(139, 92, 246, 0.025);
  --grid-size: 50px;
}

[data-theme="dark"] {
  --bg-color: #030812;
  --bg-gradient: radial-gradient(circle at top right, #09152b 0%, #030812 100%);
  --text-dark: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: rgba(255, 255, 255, 0.02);
  --border-color: rgba(255, 255, 255, 0.05);
  --nav-bg: rgba(3, 8, 18, 0.85);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
  --btn-text: #ffffff;
  --card-text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  --hero-exploded-bg: url('../assets/hero-exploded-pc.png');
  --primary-color: #60a5fa;
  --secondary-color: #a78bfa;
  --accent-color: #00E5FF;
  --accent-glow: rgba(0, 229, 255, 0.5);
  --grid-color: rgba(6, 182, 212, 0.04);
}

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

body {
  overflow-x: clip; /* clip prevents horizontal scroll WITHOUT creating a scroll container (unlike hidden) */
  width: 100%;
  max-width: 100%;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 40%),
    var(--bg-gradient);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-attachment: scroll, scroll, scroll;
  color: var(--text-dark);
  line-height: 1.6;
  position: relative;
  transition: background-color 0.5s ease, color 0.5s ease, background-image 0.5s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }

p {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--text-muted);
}

a, a:visited {
  text-decoration: none;
  color: inherit;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  background-color: var(--bg-color);
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--logo-gradient-full);
  border-radius: 10px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--logo-magenta) 0%, var(--logo-cyan) 100%);
}

/* Custom Selection Highlight */
::selection {
  background: rgba(139, 92, 246, 0.20);
  color: var(--text-dark);
}

.text-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #6366f1 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none !important;
}

[data-theme="dark"] .text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #d946ef 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none !important;
}

.text-accent {
  color: var(--accent-color);
  text-shadow: 0 0 20px var(--accent-glow);
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

.section {
  padding: 8rem 0;
  position: relative;
  contain: content;
  transition: padding 0.3s ease;
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .cta-actions .btn {
    width: 100%;
    text-align: center;
  }
}

.card-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

@media (max-width: 768px) {
  .card-flex-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .card-flex-row .btn {
    width: 100%;
    text-align: center;
  }
}

/* Ambient Glow Backgrounds */
#cyber-grid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}

.glow-top-right {
  top: -250px;
  right: -250px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(59, 130, 246, 0.2) 40%, rgba(0,0,0,0) 70%);
}

.glow-bottom-left {
  bottom: -250px;
  left: -250px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, rgba(139, 92, 246, 0.2) 40%, rgba(0,0,0,0) 70%);
}

@media (max-width: 768px) {
  .ambient-glow {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-shadow: none !important; /* Ensure buttons never inherit muddy card text-shadows */
}

.btn-primary, .btn-primary:visited {
  background: var(--logo-gradient-full);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.15), 0 8px 20px rgba(59, 130, 246, 0.15);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px rgba(236, 72, 153, 0.35), 0 15px 30px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary, .btn-secondary:visited {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-color), var(--bg-color)), var(--logo-gradient-full);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-image: var(--logo-gradient-full);
  color: #ffffff !important;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.25);
}

/* Navigation */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem 0;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  will-change: padding, background-color;
  transform: translateZ(0);
}

.header.scrolled {
  padding: 1rem 0;
  background-color: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* Enables absolute centering of the nav pill */
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.03em;
  z-index: 1002;
}

.logo svg {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 769px) {
  .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 0.35rem 0.5rem 0.35rem 2rem; /* Compact right padding for button alignment */
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--logo-gradient-full);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn-nav-login {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-nav-login:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-nav-book {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.95rem !important;
  border-radius: 100px !important;
}

.header-actions-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 1002;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.75rem; /* Extends touch target beautifully to iOS/Android safe standard */
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

.mobile-menu-btn:hover {
  background-color: rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn svg line {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn.active svg line[y1="12"] {
  opacity: 0;
}

.mobile-menu-btn.active svg line[y1="6"] {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active svg line[y1="18"] {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  position: relative;
  contain: content;
  overflow: clip; /* clip instead of hidden — prevents scroll container creation */
  background: var(--bg-color);
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-video-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-color);
  opacity: 0.85; /* Light mode overlay opacity */
  z-index: 1;
  transition: opacity 0.3s ease, background 0.3s ease;
}

[data-theme="dark"] .hero-video-overlay {
  opacity: 0.7; /* Dark mode overlay opacity */
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 2rem;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: clip;
  
  /* Matches the glass-card style of the rest of the website (Contact Page reference) */
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 4rem 3.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06); /* Drop a slight elegant shadow */
  
  /* Subtle dynamic glow top-left */
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, var(--card-bg) 100%);
  border-color: rgba(59, 130, 246, 0.15);
  
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

.hero-content:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15); /* Slight shadow dropdown */
  border-color: rgba(255,255,255,0.2);
}

.hero-content:hover::before {
  opacity: 1;
}

[data-theme="dark"] .hero-content:hover {
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  max-width: 650px;
  color: var(--text-muted); /* Perfectly matched with theme colors */
}

[data-theme="dark"] .hero p {
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Assembly Container (Centered parallax) */
.hero-assembly-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  z-index: 3;
  pointer-events: none; /* Let clicks pass through to background */
}

@media (max-width: 768px) {
  .hero-assembly-container {
    width: 350px;
    height: 350px;
  }
}

.assembly-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain;
  will-change: transform, opacity;
  transition: none !important;
}

.exploded-part {
  background-image: var(--hero-exploded-bg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%; height: 100%;
}

.assembled-view {
  opacity: 0;
  transform: scale(1) translateZ(0);
}

.theme-dark-only { display: none; }
[data-theme="dark"] .theme-dark-only { display: block; }
[data-theme="dark"] .theme-light-only { display: none; }

/* Hardware clipping paths */
.part-chassis { clip-path: polygon(25% 15%, 75% 15%, 75% 85%, 25% 85%); transform-origin: center center; }
.part-cooling { clip-path: polygon(15% 0%, 85% 0%, 85% 45%, 15% 45%); transform-origin: top center; }
.part-gpu { clip-path: polygon(10% 45%, 90% 45%, 90% 95%, 10% 95%); transform-origin: bottom center; }
.part-glass { clip-path: polygon(0% 10%, 25% 10%, 25% 90%, 0% 90%, 75% 10%, 100% 10%, 100% 90%, 75% 90%); transform-origin: center left; }


/* Glass Cards / Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--glass-shadow);
  text-shadow: var(--card-text-shadow);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
  position: relative;
  overflow: clip;
}

.glass-card h2 {
  font-size: clamp(1.3rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.2);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Glass Card Hover Text Contrast & Accessibility */
.glass-card p,
.glass-card li,
.glass-card h2,
.glass-card h3,
.glass-card h4,
.glass-card .text-accent {
  transition: color 0.4s ease, text-shadow 0.4s ease, -webkit-text-fill-color 0.4s ease;
}

[data-theme="dark"] .glass-card:hover p,
[data-theme="dark"] .glass-card:hover li {
  color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .glass-card:hover h2,
[data-theme="dark"] .glass-card:hover h3,
[data-theme="dark"] .glass-card:hover h4 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

[data-theme="dark"] .glass-card:hover .text-accent {
  color: #00E5FF !important;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5) !important;
}

[data-theme="light"] .glass-card:hover p,
[data-theme="light"] .glass-card:hover li {
  color: rgba(10, 15, 30, 0.95) !important;
}

[data-theme="light"] .glass-card:hover h2,
[data-theme="light"] .glass-card:hover h3,
[data-theme="light"] .glass-card:hover h4 {
  color: #0A0F1E !important;
  -webkit-text-fill-color: #0A0F1E !important;
}

[data-theme="light"] .glass-card:hover .text-accent {
  color: #0056b3 !important;
  text-shadow: none !important;
}

.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

/* Custom Bento Card Hover Outlines */
.glass-card.card-glow-left:hover {
  border-color: transparent;
  background-image: linear-gradient(var(--card-bg), var(--card-bg)), var(--logo-gradient-left);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.1);
}

.glass-card.card-glow-right:hover {
  border-color: transparent;
  background-image: linear-gradient(var(--card-bg), var(--card-bg)), var(--logo-gradient-right);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 25px 50px rgba(6, 182, 212, 0.1);
}

.glass-card.card-glow-full:hover,
.glass-card.col-span-12:hover {
  border-color: transparent;
  background-image: linear-gradient(var(--card-bg), var(--card-bg)), var(--logo-gradient-full);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.15), 0 25px 50px rgba(6, 182, 212, 0.15);
}

/* Fix for image cards: prevent the hover glow background-clip from exposing the un-darkened image border */
.glass-card[style*="url"]:hover {
  background-clip: border-box !important;
}

/* Service Specific */
.service-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

/* Feature Split */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-image-wrapper {
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.feature-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
}

.feature-image-wrapper:hover img {
  transform: scale(1.05);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 6rem 0 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a,
.footer-links a:visited {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

/* Forms & Input Elements */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  text-align: left;
}

.form-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color); /* Premium rich blue for light mode by default */
  opacity: 0.95;
  transition: all 0.3s ease;
}

[data-theme="dark"] .form-label {
  color: var(--accent-color); /* Glowing cyber cyan override for dark mode */
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Input wrapper for SVG icons */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.6;
}

.form-control {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.25rem; /* Large padding-left for the icon! */
  border-radius: 16px;
  background-color: rgba(15, 23, 42, 0.02); /* Faint clean slate tint */
  border: 1px solid rgba(15, 23, 42, 0.12); /* Crisper, premium subtle border for light mode */
  color: var(--text-dark);
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02), 0 1px 1px rgba(0, 0, 0, 0.01);
}

.form-control:hover {
  border-color: rgba(15, 23, 42, 0.2);
  background-color: rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .form-control {
  background-color: rgba(4, 11, 22, 0.45); /* Changed shorthand to background-color to avoid resetting select styles */
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .form-control:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(4, 11, 22, 0.55);
}

.form-control:focus {
  background-color: #ffffff; /* Clean white card style in light mode */
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

[data-theme="dark"] .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px var(--accent-color), 0 0 20px rgba(0, 229, 255, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  background-color: rgba(4, 11, 22, 0.6);
}

/* Icon activation on focus */
.input-wrapper:focus-within .input-icon {
  color: var(--primary-color); /* Vibrant blue in light mode */
  opacity: 1;
  transform: scale(1.1);
}

[data-theme="dark"] .input-wrapper:focus-within .input-icon {
  color: var(--accent-color); /* Vibrant cyan in dark mode */
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
  cursor: pointer;
}

[data-theme="dark"] select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300E5FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.25rem;
}

select.form-control option {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="dark"] select.form-control option {
  background: #040b16;
  color: #f8fafc;
}

.form-control.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15), inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .form-control.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px #ef4444, 0 0 15px rgba(239, 68, 68, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.invalid-feedback {
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.35rem;
  margin-left: 0.25rem;
  display: none;
  align-items: center;
  gap: 0.25rem;
  animation: fadeIn 0.3s ease;
}

/* Toggle feedback on invalid */
.form-group:has(.form-control.is-invalid) .invalid-feedback {
  display: flex;
}

/* Invalid state for the icon */
.form-group:has(.form-control.is-invalid) .input-icon {
  color: #ef4444;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.2));
}

[data-theme="dark"] .form-group:has(.form-control.is-invalid) .input-icon {
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Success State styling */
.form-success-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  height: 100%;
  animation: scaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  margin-bottom: 2rem;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
}

.success-icon-circle svg {
  animation: strokeDash 0.6s ease-in-out forwards 0.2s;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes strokeDash {
  to { stroke-dashoffset: 0; }
}

.shake-animation {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-form button[type="submit"] {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .col-span-4, .col-span-6, .col-span-8, .col-span-12 {
    grid-column: span 1 !important;
  }
  .feature-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
  }
  
  .header.scrolled {
    padding: 0.75rem 0;
  }
  
  .logo, .header-actions-right, .mobile-menu-btn {
    position: relative;
    z-index: 1002;
  }
  
  .header-actions-right {
    gap: 0.5rem;
    margin-right: 0.5rem;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    z-index: 1001; /* Ensure navigation overlays other relative content */
    
    /* Premium smooth menu fade-and-slide drop animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s step-end;
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s step-start;
  }

  .nav-links .btn-nav-login,
  .nav-links .btn-nav-book {
    width: 100%;
    max-width: 300px;
    text-align: center;
    border-color: var(--border-color);
  }
  
  .desktop-only-login {
    display: none !important;
  }
  
  .mobile-only-login {
    display: inline-flex !important;
  }

  .nav-links .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .nav-links #theme-toggle {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.05) !important;
    transition: all 0.3s ease;
  }
  
  [data-theme="dark"] .nav-links #theme-toggle {
    background-color: rgba(255, 255, 255, 0.08) !important;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .glass-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
  
  .hero-content {
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    width: 100%;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .glass-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  
  .hero-content {
    padding: 2rem 1rem;
    border-radius: 20px;
  }
}

/* Premium Inner Cards for lists, FAQs, and secondary details */
.inner-card {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .inner-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.inner-card:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .inner-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

@media (min-width: 769px) {
  .mobile-only-login {
    display: none !important;
  }
  .desktop-only-login {
    display: inline-flex !important;
  }
}
