/*-----------------------------------*\
  #RESET & VARIABLES
\*-----------------------------------*/

:root {
  /* Dark Theme Palette */
  --bg-dark: #1a1a2e;       /* Deep Blue Background */
  --card-dark: #2b2b3e;     /* Lighter Button Background */
  --card-hover: #3b3b52;    /* Hover State */
  --accent-glow: #64b4ff;   /* Cyan/Blue Glow */
  
  /* Typography Colors */
  --text-main: #ffffff;     
  --text-muted: #a0aec0;    
  
  /* Fonts & Transitions */
  --fontFamily-noto: 'Noto Sans', sans-serif;
  --transition-1: 0.25s ease;
  --radius-pill: 50px;
  --radius-card: 20px;
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--fontFamily-noto);
  font-size: 1.6rem;
  line-height: 1.5;
  overflow-x: hidden;
  /* P5.js Fix: Body needs to be relative for layering */
  position: relative; 
}

a, button { cursor: pointer; text-decoration: none; color: inherit; }
li { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/*-----------------------------------*\
  #P5.JS ANIMATION LAYER (Crucial)
\*-----------------------------------*/

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0; /* Behind everything */
  /* pointer-events: none; Lets clicks pass through it */
}

/* Ensure all main content sits ABOVE the animation */
.header, 
main, 
.footer-section {
  position: relative;
  z-index: 10; 
  pointer-events: none;/* In front of the canvas */
}
/*-----------------------------------*\
  #UTILITIES
\*-----------------------------------*/
main .container, 
.footer-section .container,
.btn, 
a, 
input, 
button {
  pointer-events: auto; 
}
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}
.container-stat {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2px;
}

.section { 
  padding-block: 80px;
  scroll-margin-block: 100px; }
.text-center { text-align: center; }

.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.headline { font-weight: 700; line-height: 1.2; }
.headline-1 { font-size: 4rem; color: var(--text-main); }
.headline-2 { font-size: 3rem; color: var(--text-main); margin-bottom: 10px; }
.headline-3 { font-size: 2rem; }

.span { color: var(--accent-glow); }

/* Standard Primary Button */
.btn-primary {
  background-color: var(--accent-glow);
  color: #000;
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(100, 180, 255, 0.5);
}

/* Secondary Button (Outline) */
.btn-secondary {
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-glow);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-1);
}
.btn-secondary:hover {
  background-color: var(--accent-glow);
  color: #000;
}

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Highest Priority */
  background-color: rgba(26, 26, 46, 0.95); /* Keep your dark background */
}

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

/* Navigation */
.navbar-list { display: flex; gap: 60px; }
.navbar-link { color: var(--text-main); font-weight: 500; transition: color 0.2s; }
.navbar-link:hover { color: var(--accent-glow); }

/* Mobile Menu Handling */
.nav-open-btn, .nav-close-btn { display: none; font-size: 30px; color: var(--text-main); }

/*-----------------------------------*\
  #HERO SECTION
\*-----------------------------------*/

.hero { 
  padding-top: 160px; 
  padding-bottom: 80px;
  position: relative;
}

.hero-subtitle {
  color: var(--accent-glow);
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-text { color: var(--text-muted); font-size: 1.8rem; }

/* Decorative Background Shapes */
.hero-banner { 
  position: absolute; 
  top: 0; left: 0; width: 100%; height: 100%; 
  z-index: -1; 
  pointer-events: none;
  opacity: 0.1; /* Faint shapes */
}
.shape { position: absolute; animation: float 4s infinite alternate; }
.shape-1 { top: 15%; right: 10%; }
.shape-2 { bottom: 15%; left: 5%; }

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

/*-----------------------------------*\
  #SERVICES (Clean Button Style)
\*-----------------------------------*/

.service-card {
  background-color: var(--card-dark);
  padding: 10px 10px;
  border-radius: 30px; /* Rounded button look */
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  height: 100%;
}

.service-card:hover {
  transform: translateY(+4px);
  background-color: var(--card-hover);
  border-color: var(--accent-glow); /* Blue border on hover */
}

.service-card ion-icon {
  font-size: 40px;
  color: var(--accent-glow);
  margin-bottom: 20px;
}

.service-card .card-title { color: var(--text-main); margin-bottom: 15px; }
.service-card .card-text { color: var(--text-muted); margin-bottom: 20px; font-size: 1.5rem; }

.btn-link {
  color: var(--accent-glow);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
}

/*-----------------------------------*\
  #CLIENTS SLIDER (Dual Direction)
\*-----------------------------------*/

.slider {
  height: 140px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.slide-track {
  display: flex;
  width: calc(200px * 14); /* Slide width * count */
  animation: scroll 40s linear infinite;
}

.slide-track:hover { animation-play-state: paused; }

.track-left { animation-direction: normal; }
.track-right { animation-direction: reverse; }

.slide {
  height: 100px;
  width: 200px;
  margin: 0 15px;
  background: #ffffff; /* White cards for logos */
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

. .slide:hover { transform: scale(1.1); z-index: 2; cursor: pointer;}
.slide img { max-width: 80%; max-height: 80%; object-fit: contain; }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 7)); }
}

/*-----------------------------------*\
  #STATS (Button-Like)
\*-----------------------------------*/

.stat-card {
  background-color: var(--card-dark);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid transparent;
}

.stat-card:hover {
  transform: translateY(-5px);
  background-color: var(--card-hover);
  border-color: var(--accent-glow);
}

.stat-card .card-title {
  font-size: 3.5rem;
  color: var(--accent-glow);
  margin-bottom: 5px;
}

.stat-card .card-text { color: var(--text-muted); }
.stats-note { margin-top: 3px; font-size: 1.4rem; color: var(--text-muted); font-style: italic; }
/* Add this to your CSS file */
.stats-list {
  display: grid;
  /* This forces 4 equal columns */
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; /* Space between cards */
  width: 100%;
}

/* OPTIONAL: Keep them stacked on mobile phones so they don't look squished */
@media (max-width: 768px) {
  .stats-list {
    grid-template-columns: 1fr; /* Stack them 1 on top of another on mobile */
    /* OR use: grid-template-columns: repeat(2, 1fr); for 2 per row on mobile */
  }
}
/*-----------------------------------*\
  #CONTACT FORM
\*-----------------------------------*/
.footer-section {
  position: relative; /* z-index won't work without this */
  z-index: 300; /* Puts it ABOVE the canvas */
}
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card-dark);
  padding: 40px;
  border-radius: 20px;
  z-index: 200;
}

.input-wrapper { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 768px) { .input-wrapper { grid-template-columns: 1fr 1fr; } }

.input-field {
  width: 100%;
  padding: 15px;
  background: #1a1a2e;
  border: 1px solid #3b3b52;
  color: white;
  border-radius: 8px;
  outline: none;
  z-index: 2000;
}

.input-field:focus { border-color: var(--accent-glow); }
textarea.input-field { min-height: 120px; resize: vertical; margin-bottom: 20px; }
.form-btn-wrapper { text-align: center; }

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer-section {
  background-color: #111121; /* Darker than main bg */
  padding-top: 60px;
  margin-top: 50px;
  border-top: 1px solid #2b2b3e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2b2b3e;
}

.footer-heading { color: var(--text-main); font-weight: 700; margin-bottom: 20px; }
.footer-link { color: var(--text-muted); margin-bottom: 10px; display: block; }
.footer-link:hover { color: var(--accent-glow); }

.subscription-form {
  display: flex;
  background: #1a1a2e;
  border: 1px solid #2b2b3e;
  border-radius: 5px;
  overflow: hidden;
}
.subscription-form .input-wrapper { flex: 1; display: flex; align-items: center; padding-left: 15px; margin-bottom: 0; }
.subscription-form input { border: none; background: transparent; color: white; width: 100%; padding: 10px; outline: none;}
.subscribe-btn { background: var(--accent-glow); padding: 10px 20px; font-weight: 600; }

.footer-bottom { padding: 30px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-roadmap-text { font-size: 1.2rem; color: #666; }
.copyright-text { font-size: 1.2rem; color: #666; }

/*-----------------------------------*\
  #RESPONSIVE / MOBILE
\*-----------------------------------*/

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header .btn { display: none; }
  .nav-open-btn { display: block; }
  
  .navbar {
    position: fixed;
    top: 0; right: -300px;
    width: 300px; height: 100vh;
    background: var(--card-dark);
    padding: 30px;
    transition: 0.3s ease;
    visibility: hidden;
    z-index: 200;
  }
  .navbar-link hover-1
  .navbar.active { right: 0; visibility: visible; }
  .navbar-list { flex-direction: column; }
  .nav-close-btn { display: block; margin-bottom: 20px; }
  
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  
  .headline-1 { font-size: 3rem; }
}

/* Back to Top Button */
.back-top-btn {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--accent-glow); color: #000;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  opacity: 0; visibility: hidden; transition: 0.3s;
  z-index: 99;
}
.back-top-btn.active { opacity: 1; visibility: visible; transform: translateY(-10px); }