/* --- PREMIUM THEME & DESIGN TOKENS --- */
:root {
  --bg-deep: #050505;
  --bg-surface: #0a0a0a;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --accent: #f5b41b; 
  --accent-glow: rgba(245, 180, 27, 0.3);
  
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.03);
  --nav-height-mob: 70px;
  --nav-height-desk: 85px;
  
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- BASE RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  /* Provides a native fallback for the JS scroll precision */
  scroll-padding-top: var(--nav-height-mob);
}

@media (min-width: 1024px) {
  html { scroll-padding-top: var(--nav-height-desk); }
}

body {
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- SECTION ARCHITECTURE (NO GAPS) --- */
section {
  position: relative;
  width: 100%;
  padding: 60px 6%; /* Adds 6% space on left and right for mobile */
}
/* This targets the 'Why Our Next-Gen' section specifically */
#tech {
    padding-top: 20px !important; /* Reduces the top space from 60px to 20px */
}

/* If you want it even higher on desktop as well */
@media (min-width: 1024px) {
    #tech {
        padding-top: 30px !important;
    }
}

@media (min-width: 1024px) {
  section { padding: 50px 5%; } 
}

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height-mob);
  padding: 0 4%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, height 0.3s ease;
}

.logo { font-size: 1.4rem; font-weight: 700; letter-spacing: -1px; }
.logo span { color: var(--accent); }

.navbar nav { display: none; } 

@media (min-width: 1024px) {
  .navbar { height: var(--nav-height-desk); padding: 0 5%; }
  .navbar nav { display: flex; gap: 40px; }
  .navbar nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    transition: 0.3s;
    position: relative;
  }
  .navbar nav a:hover, .navbar nav a.active {
    opacity: 1;
    color: var(--accent);
  }
  /* Active underline indicator */
  .navbar nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
  }
}

/* --- HERO SECTION --- */
.hero {
  height: 75vh !important;
  min-height: 500px;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: contrast(1.1) brightness(1.1) saturate(1.1);
  image-rendering: -webkit-optimize-contrast; /* Sharper rendering in Chrome/Safari */
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.slide.active { opacity: 1; transform: scale(1); }

.overlay {
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), var(--bg-deep));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
}

.overlay h1 {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.overlay h1 span { color: var(--accent); }

/* --- OVERVIEW & SHOWCASE (FIXED SHAKING) --- */
.overview-hero-wrapper { 
  background: var(--bg-surface); 
}

.tech-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* THE CORE BUG FIX: LOCKING THE HEIGHT PREVENTS JUMPING */
.showcase-display {
  transition: opacity 0.5s ease, transform 0.5s ease;
  min-height: 520px; /* RESERVES SPACE: Prevents page from shaking when text changes */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .tech-container { 
    flex-direction: row; 
    align-items: center;
    gap: 80px; 
  }
  .tech-content { flex: 1; }
  .inner-showcase { flex: 1.2; }
  .showcase-display { min-height: 420px; }
}

.section-title { font-size: 2.2rem; margin-bottom: 25px; font-weight: 700; line-height: 1.2; }
.section-title span { color: var(--accent); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr; /* Stacks the stats vertically on small phones */
    text-align: center;
    gap: 30px;
  }
}

.stat-item .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-item p { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }

/* Showcase Container */
.inner-showcase {
  background: var(--bg-deep);
  padding: 30px 20px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.domain-selectors {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.domain-btn {
  padding: 10px 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: white;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.3s;
}

.domain-btn.active { 
  background: var(--accent); 
  color: black; 
  border-color: var(--accent);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.showcase-visual {
  width: 100%;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 25px;
  border: 1px solid var(--glass-border);
}

.showcase-visual img { width: 100%; height: 100%; object-fit: cover; }

/* --- SERVICES & INDUSTRIES --- */
.cards, .industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 25px;
  padding-bottom: 25px;
}

@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--bg-surface);
  padding: 60px 35px;
  border-radius: 35px;
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: var(--transition);
}

.card:hover { 
  transform: translateY(-12px); 
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}

.industry-card {
  padding: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  text-align: center;
  transition: 0.3s;
}

.industry-card:hover { border-color: var(--accent); transform: scale(1.03); }

/* --- CONTACT SECTION & ENQUIRY FORM --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-container { grid-template-columns: 1fr 1.2fr; align-items: start; gap: 80px; }
}

.contact-detail-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: var(--bg-surface);
  border-radius: 25px;
  margin-bottom: 20px;
  border: 1px solid var(--glass-border);
}

.contact-form-wrapper {
  background: var(--bg-surface);
  padding: 50px 40px;
  border-radius: 40px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.modern-form input, .modern-form textarea {
  width: 100%;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  color: white;
  margin-bottom: 25px;
  outline: none;
  transition: 0.3s;
}

.modern-form input:focus, .modern-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
}

.btn-submit {
  width: 100%;
  padding: 22px;
  background: var(--accent);
  color: black;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 15px 30px var(--accent-glow);
}

/* 1. Base style for ALL devices (Clean & Visible by default) */
/* 1. Base style: Clear and full-color for Mobile/Touch by default */
.map-wrapper iframe { 
  width: 100%; 
  height: 450px; 
  border: 0; 
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  /* REMOVED the dark filter here so it's always bright on phones */
  filter: none; 
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Desktop ONLY: Apply the dark theme and hover effect */
/* 'any-hover: hover' is the secret to targeting only devices with a mouse */
@media (min-width: 1024px) and (any-hover: hover) {
  .map-wrapper iframe {
    /* Apply the premium dark look for laptop users */
    filter: grayscale(1) invert(0.92) contrast(1.2);
  }

  /* The "wake up" effect happens when the mouse moves over it */
  .map-wrapper:hover iframe {
    filter: grayscale(0) invert(0) contrast(1);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }
}
footer {
  padding: 80px 8% 40px;
  text-align: center;
  background: #000;
  border-top: 1px solid var(--glass-border);
}

/* Prevents AOS from blocking clicks or flickering during transitions */
[data-aos] { pointer-events: none; }
.aos-animate { pointer-events: auto; }

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; border: 2px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
/* --- CLIENT MARQUEE SECTION --- */
/* --- ENHANCED CLIENT MARQUEE SECTION --- */
.clients-section {
  padding: 80px 0;
  background: var(--bg-surface);
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  /* Subtly breathes to draw the eye */
  animation: pulse-section-border 4s infinite ease-in-out;
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 30px;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  justify-content: space-around;
  gap: 30px;
  min-width: 100%;
  animation: scroll-marquee 80s linear infinite;
}

.marquee-content span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03); 
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  white-space: nowrap;
  display: inline-block;
  /* This creates the smooth "springy" feel when hovering */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

/* --- THE EYE-CATCHING HOVER STATE --- */
.marquee-content span:hover {
  border-color: var(--accent);
  color: #000; /* Text turns black for better contrast on the gold background */
  background: var(--accent); 
  transform: scale(1.15) translateY(-5px); /* Pops up and grows */
  box-shadow: 0 10px 25px var(--accent-glow); /* Adds the neon halo */
  z-index: 10;
}

/* Infinite Scroll Logic */
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Section pulse logic */
@keyframes pulse-section-border {
  0%, 100% { border-color: var(--glass-border); }
  50% { border-color: rgba(245, 180, 27, 0.3); }
}

/* Pause when user interacts */
.marquee:hover .marquee-content {
  animation-play-state: paused;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .marquee-content span {
    font-size: 0.9rem;
    padding: 8px 20px;
  }
  .clients-section { padding: 50px 0; }
}
/* --- MOBILE MENU ANIMATION --- */
@media (max-width: 1024px) {
  /* CHANGE 1: Force the navbar height so the button doesn't move */
  .navbar {
    position: fixed !important; /* Forces the header to stay at the top */
    top: 0;
    left: 0;
    width: 100%;
    height: 70px !important; 
    background: rgba(5, 5, 5, 0.98) !important; /* Solid dark background so it's readable */
    z-index: 9999 !important; /* Ensures it is ABOVE the hero images */
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
  }

  .menu-toggle {
    display: flex !important; 
    flex-direction: column;
    gap: 5px;
    z-index: 10001; /* Higher than the nav menu itself */
    margin-right: 0 !important; /* REMOVED the 55px margin that was pushing it off screen */
    cursor: pointer;
  }
}

  /* CHANGE 2: Force the button to show immediately */
  .menu-toggle {
    display: flex !important; 
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
    margin-right: 55px;
  }

  .navbar nav a {
    color: var(--accent) !important; /* Forces the text to use your Gold color */
    text-decoration: none !important;
    font-size: 1.2rem;
    font-weight: 500;               /* Makes the text slightly larger for easier tapping */
    margin-bottom: 20px;            /* Adds space between the items */
    opacity: 1;                     /* Ensures it is fully bright */
  }

  .bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff !important;
    transition: 0.3s;
    border-radius: 2px;
    display: block !important;
  }

  .navbar nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%; /* This hides the menu off-screen to the right */
    width: 75%;
    height: 100vh;
    background: #0a0a0a;
    padding: 100px 40px;
    transition: 0.5s ease; /* This creates the sliding effect */
  }

  @media (max-width: 1024px) {
  .navbar {
    position: fixed !important; /* Forces the header to stay at the top */
    top: 0;
    left: 0;
    width: 100%;
    height: 70px !important; 
    background: rgba(5, 5, 5, 0.98) !important; /* Solid dark background so it's readable */
    z-index: 9999 !important; /* Ensures it is ABOVE the hero images */
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
  }

  /* When JS adds the 'active' class, the menu slides to 0 (visible) */
  .navbar nav.active {
    right: 0;
  }
  /* --- FIX FOR THANK YOU MESSAGE ON MOBILE --- */

/* Stops the browser 120px before the section so the navbar doesn't cover the message */
#contact {
    scroll-margin-top: 120px !important;
}

/* Adds a small gap above the thank-you box for better visibility */
#thank-you-box {
  display: none; 
  position: fixed;
  /* Centering Logic */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  /* Styling */
  background: rgba(10, 10, 10, 0.9); /* Dark background to match theme */
  backdrop-filter: blur(15px);       /* Glassmorphism effect */
  border: 2px solid #22c55e;
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  color: #fff;
  
  /* Layering */
  z-index: 2000; /* Higher than your navbar (1000) */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(34, 197, 94, 0.2);
  
  /* Mobile Responsiveness */
  width: 90%;
  max-width: 400px;
}
}
/* --- MOBILE-ONLY GAP REPAIR --- */
@media screen and (max-width: 768px) {
  
  /* 1. Remove the 'cushion' at the bottom of the Hero */
  .hero {
    margin-bottom: 0 !important;
    height: 65vh !important; /* Adjusts hero height for phone screens */
  }

  /* 2. Fix the "Digital Presence" text container */
  .overlay p {
    font-size: 1.0rem !important;
    line-height: 1.3 !important;
    margin-top: 5px !important;
    max-width: 100% !important;
  }
}
/* --- MOBILE GAP REPAIR --- */
@media screen and (max-width: 768px) {
  
  /* 1. Shrink the overlay height so it doesn't push the next section down */
  .hero {
    height: auto !important;
    min-height: 360px !important; /* Adjust this number to fit your text */
  }

  .overlay {
    height: auto !important;
    padding-top: 100px !important; /* Space for the navbar */
    padding-bottom: 40px !important; /* Controls the gap at the bottom */
    justify-content: flex-start !important; /* Starts text from top instead of center */
  }

  /* 2. Remove the top cushion from the 'AI is Ruling' section */
  #vision {
    padding-top: 20px !important;
    margin-top: 0 !important;
  }
}