/* =========================================================================
   Design System & CSS Custom Properties
   Theme: "Highway at Night" (Dark Mode, Neon Accents, Glassmorphism)
   ========================================================================= */

:root {
  /* Color Palette */
  --bg-dark: hsl(225, 20%, 6%);
  --bg-dark-secondary: hsl(225, 20%, 9%);
  
  --primary-neon: hsl(190, 80%, 60%); /* Cyan */
  --secondary-neon: hsl(280, 80%, 60%); /* Purple */
  --accent-glow: hsla(190, 80%, 60%, 0.5);
  
  --text-main: hsl(0, 0%, 95%);
  --text-muted: hsl(225, 10%, 70%);
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Glassmorphism settings */
  --glass-bg: hsla(225, 20%, 15%, 0.3);
  --glass-border: hsla(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  
  /* Spacing & Utilities */
  --section-padding: 6rem;
  --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .hero-title, .section-title, .stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: var(--section-padding) 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  color: var(--bg-dark);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--text-main);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--text-main);
  color: var(--bg-dark);
}

/* Glassmorphism Utility */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* =========================================================================
   Navbar
   ========================================================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  transition: var(--transition-fast);
  background: transparent;
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container .logo-img {
  height: 40px;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  transition: var(--transition-fast);
}

.logo-container:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px var(--primary-neon));
}

.footer-logo {
  height: 40px;
  margin-bottom: 0.5rem;
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.nav-link:not(.btn-primary)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
  transition: var(--transition-fast);
}

.nav-link:not(.btn-primary):hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/hero_bg.png') center/cover no-repeat;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 12, 18, 0.4) 0%,
    rgba(10, 12, 18, 0.8) 80%,
    var(--bg-dark) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.3s;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* =========================================================================
   About Section
   ========================================================================= */
.about {
  background: var(--bg-dark);
}

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

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.about-text .lead {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 1rem;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  padding: 1.5rem;
  background: var(--bg-dark-secondary);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-neon);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.about-visual {
  position: relative;
}

.aesthetic-element {
  padding: 3rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.about-image {
  width: 80%;
  max-width: 300px;
  position: relative;
  z-index: 2;
  transition: var(--transition-slow);
}

.aesthetic-element:hover .about-image {
  transform: scale(1.1);
}

.glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: var(--primary-neon);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  z-index: 1;
  animation: pulse 4s infinite alternate;
}

/* =========================================================================
   Services Section
   ========================================================================= */
.services {
  background: var(--bg-dark);
  position: relative;
}

/* Add a subtle background glow to the services section */
.services::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--secondary-neon);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.1;
  z-index: 0;
}

.section-header {
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: left;
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 80%, rgba(190, 80%, 255%, 0.1));
  opacity: 0;
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

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

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
}

/* =========================================================================
   Contact & CTA Section
   ========================================================================= */
.contact {
  background: url('images/hero_bg.png') center/cover no-repeat;
  position: relative;
}

/* Overlay to darken background */
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 12, 18, 0.9);
}

.contact .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.contact-card {
  width: 100%;
  max-width: 800px;
  padding: 4rem;
  text-align: center;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-neon);
  background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
}

.submit-btn i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: translateX(5px);
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  background: #050508;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 30px;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: #fff;
  font-size: 1.5rem;
}

.footer-social a:hover {
  color: var(--primary-neon);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* =========================================================================
   Animations
   ========================================================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  from {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Reveal classes for JS Intersection Observer */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

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

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-visual {
    order: -1; /* Move graphic above text on small screens */
  }
  
  .stats-grid {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    padding: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}
