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

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

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Colors (Dark Theme Default) */
  --color-bg-deep: #05070f;
  --color-bg-card: rgba(13, 18, 38, 0.75);
  --color-bg-card-hover: rgba(20, 27, 56, 0.85);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-glow: rgba(0, 240, 255, 0.3);
  --color-text-bright: #ffffff;
  --color-text-main: #cbd5e1;
  --color-text-muted: #64748b;

  /* Accents */
  --color-cyan: #00f0ff;
  --color-cyan-glow: rgba(0, 240, 255, 0.4);
  --color-purple: #bd52eb;
  --color-purple-glow: rgba(189, 82, 235, 0.4);
  --color-blue: #3b82f6;
  --color-green: #10b981;
  --color-orange: #f97316;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.25);
  --shadow-glow-purple: 0 0 25px rgba(189, 82, 235, 0.25);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Layout */
  --header-height: 80px;
  --container-width: 1280px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

body.light-theme {
  --color-bg-deep: #f8fafc;
  --color-bg-card: rgba(255, 255, 255, 0.75);
  --color-bg-card-hover: rgba(255, 255, 255, 0.9);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-glow: rgba(2, 132, 199, 0.25);
  --color-text-bright: #0f172a;
  --color-text-main: #334155;
  --color-text-muted: #64748b;

  --color-cyan: #0284c7;
  /* High-contrast blue-cyan for readability */
  --color-cyan-glow: rgba(2, 132, 199, 0.3);
  --color-purple: #7c3aed;
  --color-purple-glow: rgba(124, 58, 237, 0.3);

  --shadow-glow-cyan: 0 0 20px rgba(2, 132, 199, 0.15);
  --shadow-glow-purple: 0 0 20px rgba(124, 58, 237, 0.15);
  --shadow-glass: 0 8px 32px 0 rgba(148, 163, 184, 0.12);
}

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

body {
  background-color: var(--color-bg-deep);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(189, 82, 235, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.light-theme {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 40%);
}

body.light-theme .header {
  background: rgba(248, 250, 252, 0.85);
}

body.light-theme .form-control {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(148, 163, 184, 0.2);
  color: #0f172a;
}

body.light-theme .form-control:focus {
  background: #ffffff;
  border-color: var(--color-cyan);
}

body.light-theme select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230f172a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

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

body.light-theme .nav-menu {
  background: rgba(248, 250, 252, 0.95);
}

body.light-theme .btn-secondary {
  background: rgba(0, 0, 0, 0.02);
  color: var(--color-text-main);
  border-color: rgba(148, 163, 184, 0.2);
}

body.light-theme .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(148, 163, 184, 0.4);
}

body.light-theme .footer {
  background: #f1f5f9;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .social-icon {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--color-text-main);
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  font-size: 1.05rem;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

body.light-theme .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.03);
}

body.light-theme .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--color-bg-deep);
}

body.light-theme ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
}


/* --- Typography Helpers --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text-bright);
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

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

p {
  margin-bottom: 1rem;
}

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

.section {
  padding: 100px 0;
  position: relative;
}

.section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  color: var(--color-cyan);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* --- Glassmorphism Card Utility --- */
.glass-panel {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-glass);
  transition: var(--transition-normal);
}

.glass-panel:hover {
  background: var(--color-bg-card-hover);
  border-color: rgba(0, 240, 255, 0.2);
}

/* --- Navigation Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(5, 7, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-bright);
}

.logo span {
  color: var(--color-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-main);
  position: relative;
  padding: 8px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  transition: var(--transition-normal);
}

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

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

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-bright);
  position: absolute;
  transition: var(--transition-normal);
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: var(--color-cyan);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: var(--color-cyan);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--color-cyan);
  color: #05070f;
  border: 1px solid var(--color-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-cyan);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-cyan {
  background: transparent;
  color: var(--color-cyan);
  border: 1px solid var(--color-cyan);
}

.btn-outline-cyan:hover {
  background: var(--color-cyan);
  color: #05070f;
  box-shadow: var(--shadow-glow-cyan);
}

.btn-outline-purple {
  background: transparent;
  color: var(--color-purple);
  border: 1px solid var(--color-purple);
}

.btn-outline-purple:hover {
  background: var(--color-purple);
  color: #05070f;
  box-shadow: var(--shadow-glow-purple);
}

/* --- Footer --- */
.footer {
  background: #020307;
  border-top: 1px solid var(--color-border);
  padding: 80px 0 30px 0;
  color: var(--color-text-main);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-about .logo {
  margin-bottom: 20px;
}

.footer-about p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 320px;
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--color-cyan);
  color: #05070f;
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--color-text-bright);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-links a:hover {
  color: var(--color-cyan);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.footer-contact-icon {
  color: var(--color-cyan);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: var(--transition-normal);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  }

  50% {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero Section Global (shared styling rules) --- */
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: auto;
  padding-bottom: 50px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 50px;
  color: var(--color-cyan);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-tag span {
  width: 6px;
  height: 6px;
  background: var(--color-cyan);
  border-radius: 50%;
  animation: pulseGlow 1.5s infinite;
}

.hero-title span {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-main);
  margin-bottom: 40px;
  max-width: 550px;
}

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

.hero-image-wrapper {
  position: relative;
}

.hero-image-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(189, 82, 235, 0.12) 0%, rgba(0, 240, 255, 0.08) 50%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-glass);
}

/* --- Common UI Panels --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  font-size: 24px;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--color-cyan);
  color: #05070f;
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 20px;
}

.feature-link i {
  transition: var(--transition-fast);
}

.feature-card:hover .feature-link i {
  transform: translateX(4px);
}

/* --- Shared Form Elements --- */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-bright);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  color: var(--color-text-bright);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 45px;
}

select.form-control option {
  background-color: var(--color-bg-deep);
  color: var(--color-text-bright);
}

/* --- Success Dialog Modal --- */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.dialog-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.dialog-box {
  width: 90%;
  max-width: 500px;
  padding: 40px;
  text-align: center;
  transform: scale(0.9);
  transition: var(--transition-normal);
}

.dialog-overlay.active .dialog-box {
  transform: scale(1);
}

.dialog-icon {
  width: 70px;
  height: 70px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--color-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-green);
  margin: 0 auto 24px auto;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

.dialog-box h3 {
  margin-bottom: 12px;
  font-size: 1.75rem;
}

.dialog-box p {
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 80px;
  }

  .hero-desc {
    margin: 0 auto 30px auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 40px 0;
  }

  .hero-section,
  .about-hero,
  .services-hero,
  .quote-hero,
  .track-hero,
  .contact-hero {
    padding-top: 95px !important;
    padding-bottom: 40px !important;
  }

  .hero-layout {
    padding-top: 15px !important;
    min-height: auto !important;
  }

  .hamburger {
    display: block;
    order: 3;
    /* Position burger icon on the far right */
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 300px;
    height: calc(100vh - var(--header-height));
    background: rgba(5, 7, 15, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    padding: 60px 40px;
    gap: 40px;
    align-items: flex-start;
    transition: var(--transition-normal);
  }

  .nav-menu.open {
    right: 0;
  }

  .header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-start: auto;
    /* Push theme toggle to the right next to hamburger */
    margin-inline-end: 16px;
    /* Spacing between toggle and hamburger */
    order: 2;
    /* Position toggle in the middle-right */
  }

  .header-cta .btn {
    display: none;
    /* Hide CTA button on mobile, keep theme toggle visible */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}