:root {
  /* Dark Theme Variables (Default) */
  --primary: #081321;
  --secondary: #112744;
  --surface: #163354;
  --text-main: #f5f7fb;
  --text-muted: #bfd0e3;
  --accent-blue: #4f8df7;
  --accent-purple: #1f5fcf;
  --accent-pink: #d9951b;
  
  --glass-bg: rgba(15, 32, 56, 0.78);
  --glass-border: rgba(147, 197, 253, 0.18);
  --glass-hover-bg: rgba(18, 40, 68, 0.9);
  --glass-hover-border: rgba(147, 197, 253, 0.34);
  --nav-scrolled: rgba(6, 17, 31, 0.78);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --input-bg: rgba(3, 10, 20, 0.55);
}

[data-theme="light"] {
  --primary: #edf4fb;
  --secondary: #d9e6f4;
  --surface: #ffffff;
  --text-main: #132b47;
  --text-muted: #455d78;
  --accent-blue: #2156c9;
  --accent-purple: #163f88;
  --accent-pink: #a77012;
  
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(19, 43, 71, 0.1);
  --glass-hover-bg: rgba(255, 255, 255, 0.98);
  --glass-hover-border: rgba(33, 86, 201, 0.18);
  --nav-scrolled: rgba(237, 244, 251, 0.96);
  --card-shadow: 0 20px 45px rgba(16, 35, 61, 0.1);
  --input-bg: rgba(255, 255, 255, 0.98);
}

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

body {
  font-family: 'Inter', 'Satoshi', sans-serif;
  background-color: var(--primary);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  background-image:
    radial-gradient(circle at top left, rgba(83, 166, 255, 0.18), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(241, 178, 74, 0.12), transparent 22%),
    radial-gradient(circle at bottom center, rgba(107, 183, 255, 0.1), transparent 28%);
  background-attachment: fixed;
}

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

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

/* Animations */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s;
}
.theme-toggle:hover {
  color: var(--accent-blue);
  background: var(--glass-hover-bg);
}

/* Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: var(--glass-hover-bg);
  border-color: var(--glass-hover-border);
  box-shadow: 0 22px 60px rgba(83, 166, 255, 0.16), inset 0 0 20px rgba(255, 255, 255, 0.05);
  transform: translateY(-7px);
}

/* Override light theme shadow glow slightly */
[data-theme="light"] .glass-card:hover {
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
}

.text-gradient {
  background: linear-gradient(120deg, var(--accent-blue), #9fd1ff 55%, var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient-animated {
  background: linear-gradient(135deg, var(--primary), var(--secondary), #0a1930, var(--primary));
  background-size: 220% 220%;
  animation: gradientMove 15s ease infinite;
}

/* Scroll Animations Base State */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.15rem 0;
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 0.85rem 0;
  background: var(--nav-scrolled);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  padding: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.nav-links a:not(.btn-primary) {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-links a:not(.btn-primary):hover, .nav-links a.active {
  color: var(--accent-blue);
}

.btn-primary {
  padding: 0.8rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
  color: var(--text-main);
  backdrop-filter: blur(16px);
}

.btn-primary:hover {
  background: var(--glass-hover-bg);
  box-shadow: 0 10px 30px rgba(83, 166, 255, 0.18);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
}

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    border-radius: 1rem;
    background: rgba(6, 17, 31, 0.95);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
  }
  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.94);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn-primary) {
    padding: 0.5rem 0.25rem;
  }
  .hamburger { display: block; }
}

/* Button variants */
.btn-solid {
  padding: 1rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f4f8fc, #cdddf0);
  color: #0b1b30;
  font-weight: 700;
  transition: all 0.3s;
  display: inline-block;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.btn-solid:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px rgba(83, 166, 255, 0.22);
}

/* Footer Section */
footer {
  background: var(--primary);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}
[data-theme="light"] footer {
  background: var(--secondary);
}
.footer-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 100%;
  max-width: 700px;
  height: 400px;
  background: rgba(168, 85, 247, 0.15);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}
.social-links a:hover {
  color: var(--text-main);
  border-color: var(--accent-blue);
  background: var(--glass-hover-bg);
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  gap: 1rem;
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Carousel Styles */
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 1.33rem);
  min-width: 300px;
}

@media (max-width: 1024px) {
  .carousel-slide { flex: 0 0 calc(50% - 1rem); }
}

@media (max-width: 768px) {
  .carousel-slide { flex: 0 0 100%; }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: var(--card-shadow);
}

.carousel-btn:hover {
  background: var(--glass-hover-bg);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }

/* FAQ Accordion */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--glass-border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}
.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s;
  color: var(--accent-blue);
  min-width: 1.25rem;
  flex-shrink: 0;
  stroke-width: 2.5;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Why Choose Us Grid */
.wcu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Utility classes for shared layout */
.pt-32 { padding-top: 8rem; }
.pb-32 { padding-bottom: 8rem; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.text-4xl { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
.text-5xl { font-size: 3rem; font-weight: 700; line-height: 1.1; }
.text-7xl { font-size: 4.5rem; font-weight: 800; line-height: 1.1; }
@media (max-width: 768px) {
  .text-7xl { font-size: 3rem; }
  .text-5xl { font-size: 2.5rem; }
}
.text-muted { color: var(--text-muted); }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-wordmark small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.logo-wordmark span {
  font-size: 1rem;
  font-weight: 800;
}

@media (max-width: 768px) {
  .logo-wordmark small {
    font-size: 0.58rem;
  }

  .logo-wordmark span {
    font-size: 0.85rem;
  }

  .faq-question {
    font-size: 1.05rem;
    padding: 1.2rem 0;
  }

  .faq-answer-inner {
    font-size: 0.96rem;
  }
}

@media (max-width: 980px) {
  .container {
    padding: 0 1rem;
  }

  .footer-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  nav {
    padding: 0.85rem 0;
  }

  .logo {
    gap: 0.65rem;
  }

  .logo-icon {
    width: 2.7rem;
    height: 2.7rem;
  }

  .logo-wordmark small {
    letter-spacing: 0.12em;
  }

  .btn-primary,
  .btn-solid {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .carousel-btn {
    display: none;
  }

  .glass-card {
    padding: 1.2rem;
  }

  .text-4xl {
    font-size: 2rem;
  }

  .text-xl {
    font-size: 1.08rem;
  }
}

@media (max-width: 640px) {
  .text-7xl {
    font-size: 2.35rem;
    line-height: 1.1;
  }

  .text-5xl {
    font-size: 2rem;
    line-height: 1.15;
  }

  .text-4xl {
    font-size: 1.7rem;
  }

  .text-lg,
  .text-xl {
    font-size: 1rem;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 0.85rem;
  }
}

/* Contact Form Overrides inside components */
.form-control {
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
}
.form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue);
}
