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

/* --- Theme Variables & Root Setup --- */
:root {
  --bg-primary: #0a0915;
  --bg-secondary: #121124;
  --bg-grid: rgba(255, 255, 255, 0.02);
  
  --card-bg: rgba(18, 17, 36, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  
  --text-main: #f1efff;
  --text-muted: #a29ebc;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --max-width: 1200px;
  
  scroll-behavior: smooth;
}

/* --- Theme Variables on Body for Recalculation --- */
body {
  /* Default: Gin & Tonic (Magical Purple/Indigo) */
  --accent-hue: 275;
  --accent-primary: hsl(var(--accent-hue), 100%, 65%);
  --accent-secondary: hsl(calc(var(--accent-hue) - 45), 100%, 60%);
  --accent-glow: hsla(var(--accent-hue), 100%, 65%, 0.15);
  --card-border-hover: hsla(var(--accent-hue), 100%, 65%, 0.3);
}

/* --- Theme Variations (applied via class on body) --- */
body.theme-cosmo {
  /* Cosmopolitan (Hot Pink / Magenta) */
  --accent-hue: 335;
}
body.theme-absinthe {
  /* Absinthe (Neon Lime / Teal) */
  --accent-hue: 145;
}
body.theme-lagoon {
  /* Blue Lagoon (Vibrant Cyan / Deep Blue) */
  --accent-hue: 195;
}
body.theme-mimosa {
  /* Mimosa (Sunny Gold / Coral) */
  --accent-hue: 35;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s ease;
}

/* Cosmic Cyber Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  pointer-events: none;
}

/* Soft atmospheric glowing ambient light */
body::after {
  content: '';
  position: fixed;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  transition: background 0.5s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-primary), var(--accent-secondary));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* --- Utility Typography --- */
.gradient-text {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* --- Layout & Components --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header & Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 9, 21, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: height 0.3s ease;
}

header.scrolled .nav-container {
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--accent-primary);
  filter: drop-shadow(0 0 8px var(--accent-primary));
  transition: fill 0.5s ease, filter 0.5s ease;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s ease;
}

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

/* --- Hero Section --- */
.hero {
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #0a0915;
  box-shadow: 0 4px 20px var(--accent-glow);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--accent-primary), 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Mascot Wrapper with Floating Animation */
.mascot-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  z-index: -1;
  filter: blur(20px);
  pointer-events: none;
  animation: pulse-glow 6s infinite alternate ease-in-out;
}

.mascot-img-wrapper {
  animation: float-mascot 5s ease-in-out infinite;
  position: relative;
  cursor: pointer;
}

.mascot-img-wrapper img {
  border-radius: 24px;
  border: 2px solid var(--card-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.mascot-img-wrapper:hover img {
  transform: scale(1.03) rotate(1deg);
  border-color: var(--accent-primary);
}

/* Tap Speech bubble */
.speech-bubble {
  position: absolute;
  top: -40px;
  right: -20px;
  background: var(--card-bg);
  border: 1px solid var(--accent-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 1.25rem;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  max-width: 220px;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.speech-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 30px;
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: var(--accent-primary) transparent;
  display: block;
  width: 0;
}

/* --- Section Formatting --- */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- About / Origin Section --- */
.about-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--accent-primary);
  background: var(--accent-glow);
  transform: translateY(-3px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Services (The Brewery) --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px var(--accent-glow);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--accent-primary);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.service-features {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.service-features li svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 2.5;
}

/* --- Portfolio (The Cocktail Lounge) --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 30px var(--accent-glow);
}

.portfolio-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--bg-secondary);
}

.portfolio-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(10, 9, 21, 0.8);
  border: 1px solid var(--accent-primary);
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portfolio-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.portfolio-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portfolio-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-primary);
  transition: color 0.3s ease;
}

.portfolio-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-link svg {
  transform: translateX(4px);
}

/* --- Theme Bar (Brewery Mixer) --- */
.theme-mixer-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 4rem 0;
  text-align: center;
}

.mixer-header {
  margin-bottom: 2rem;
}

.mixer-header h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.mixer-header p {
  color: var(--text-muted);
}

.mixer-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.mixer-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.mixer-btn::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* Color indicator dots for the Mixer Buttons */
.mixer-btn[data-theme="default"]::before { background: hsl(275, 100%, 65%); }
.mixer-btn[data-theme="cosmo"]::before { background: hsl(335, 100%, 65%); }
.mixer-btn[data-theme="absinthe"]::before { background: hsl(145, 100%, 65%); }
.mixer-btn[data-theme="lagoon"]::before { background: hsl(195, 100%, 65%); }
.mixer-btn[data-theme="mimosa"]::before { background: hsl(35, 100%, 65%); }

.mixer-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.mixer-btn.active {
  border-color: var(--accent-primary);
  background: var(--accent-glow);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* --- Contact Form Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-panel h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.contact-info-panel p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.detail-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.detail-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.detail-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.form-group {
  margin-bottom: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  font-family: var(--font-body);
  color: var(--text-main);
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Highlight valid states with modern :user-valid pseudo-class */
.form-control:user-valid {
  border-color: #10b981;
}

/* Style field helper texts dynamically based on input validity using parent :has() selector */
.form-group:has(.form-control:focus) label {
  color: var(--accent-primary);
}

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

/* --- Footer --- */
footer {
  border-top: 1px solid var(--card-border);
  padding: 3rem 0;
  background: #06050e;
  text-align: center;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-primary);
}

.footer-text {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

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

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

/* --- Success Modals / Toast alerts (Native Dialog) --- */
dialog.success-dialog {
  border: 1px solid var(--accent-primary);
  border-radius: 24px;
  background: rgba(18, 17, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-main);
  max-width: 480px;
  width: calc(100% - 2rem);
  padding: 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px var(--accent-glow);
  margin: auto;
}

dialog.success-dialog::backdrop {
  background: rgba(10, 9, 21, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  text-align: center;
}

.modal-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin: 0 auto 1.5rem;
}

.modal-icon svg {
  width: 36px;
  height: 36px;
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* --- Modern Discrete Dialog Transitions using @starting-style --- */
dialog.success-dialog[open] {
  opacity: 1;
  transform: scale(1);

  @starting-style {
    opacity: 0;
    transform: scale(0.9);
  }
}

dialog.success-dialog {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), display 0.3s allow-discrete, overlay 0.3s allow-discrete;
  transition-behavior: allow-discrete;
}

dialog.success-dialog::backdrop {
  background-color: rgba(10, 9, 21, 0);
  transition: background-color 0.3s ease-out, display 0.3s allow-discrete, overlay 0.3s allow-discrete;
}

dialog.success-dialog[open]::backdrop {
  background-color: rgba(10, 9, 21, 0.85);

  @starting-style {
    background-color: rgba(10, 9, 21, 0);
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  dialog.success-dialog {
    transform: none;
    transition-duration: 0.1s;
  }
  
  @starting-style {
    dialog.success-dialog[open] {
      transform: none;
    }
  }
  
  .mascot-img-wrapper {
    animation: none;
  }
  
  .mascot-glow {
    animation: none;
  }
}

/* --- Animation Keyframes --- */
@keyframes float-mascot {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* --- Potion Bubble Animation --- */
.potion-bubble {
  position: fixed;
  bottom: -40px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 70%), var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-primary);
  opacity: 0;
  animation: float-bubble 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes float-bubble {
  0% {
    transform: translateY(0) translateX(0) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-115vh) translateX(var(--sway)) scale(1.2);
    opacity: 0;
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 3.2rem;
  }
  
  .hero-content p {
    margin: 0 auto 2rem;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 70px;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .about-card {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
    gap: 0.75rem;
  }
  
  header.scrolled .nav-container {
    height: auto;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .contact-form-card {
    padding: 1.5rem;
  }
}
