/* --- 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 !important;
  font-family: 'Poppins', sans-serif;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}   

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 */
}
@media (max-width: 1024px) {
/* 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;
    }
}

/* --- LOGO GLOBAL STYLE --- */
.logo { 
    font-size: 1.4rem; 
    font-weight: 700; 
    letter-spacing: -1px; 
    color: #ffffff; /* Sets NIVIA to white */
    display: flex;
    align-items: center;
}

.logo span { 
    color: var(--accent) !important; /* Forces TECH to be Gold on ALL screens */
    margin-left: 5px; 
}

.logo img {
    border-radius: 4px; /* Softens the corners of the white logo box */
    height: 35px;
    margin-right: 10px;
}

@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 */
  }

}

  /* CHANGE 2: Force the button to show immediately */
  

  
  @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;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  
  background: rgba(10, 10, 10, 0.9); 
  backdrop-filter: blur(15px);        
  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;
}
}*/

/* --- THE PROFESSIONAL SUCCESS POPUP (FOR ALL DEVICES) --- */
/* --- THE PROFESSIONAL SUCCESS MESSAGE (REFINED) --- */
#thank-you-box {
    display: none; /* Controlled by JS */
    position: relative; /* Change from 'fixed' to 'relative' */
    
    /* Desktop Spacing: Pushes it down from the "Initialize Inquiry" title */
    margin-top: 100px; 
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;

    width: 100%; 
    max-width: 450px; 
    
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(25px);
    border: 2px solid #22c55e;
    padding: 50px 40px;
    border-radius: 35px;
    text-align: center;
    
    z-index: 10;
    box-shadow: 0 40px 100px rgba(0,0,0,0.9);
}

/* --- MOBILE ADJUSTMENT --- */

/* --- 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: 100vh !important; 
    min-height: 500px !important;
    margin-bottom: 0 !important;
  }

  .overlay {
    height: 100% !important;
    padding-top: 80px !important; /* Space for your mobile navbar */
    padding-bottom: 20px !important;
    justify-content: center !important;
  }

  overlay h1 {
    font-size: 2.5rem !important; /* Prevents large text from overflowing */
    font-size: clamp(2.4rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 175px;
  }

  .overlay p {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-top: 15px !important;
    max-width: 100% !important;
  }

  /* 2. Remove the top cushion from the 'AI is Ruling' section */
  #vision {
    padding-top: 20px !important;
    margin-top: 0 !important;
  }
}


/* --- MATH CAPTCHA STYLING --- */
.captcha-container {
    margin-top: 10px;
    margin-bottom: 25px;
    transition: var(--transition);
}

#captcha-answer {
    color: #000 !important; /* Ensures the numbers are visible */
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.captcha-error-msg {
    display: none; /* Hidden by default */
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 8px;
    font-weight: 500;
}

/* --- SUCCESS POPUP OVERLAY --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Darkens the whole screen */
    backdrop-filter: blur(10px);
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    z-index: 10005; /* Above everything else */
}

.popup-content {
    background: var(--bg-surface);
    width: 90%;
    max-width: 420px;
    padding: 50px 30px;
    border-radius: 35px;
    border: 2px solid #22c55e;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    animation: popupAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupAppear {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- MOBILE SPECIFIC FIXES --- */
@media screen and (max-width: 768px) {
    .contact-form-wrapper {
        padding: 40px 20px !important;
    }
    
    .popup-content {
        padding: 40px 20px;
        width: 85%;
    }

    .contact-detail-card {
        padding: 20px !important;
        margin-bottom: 15px !important;
    }
}
/* --- FORM INPUT ALIGNMENT FIX --- */
#inquiryform {
    display: flex;
    flex-direction: column; /* Forces vertical stacking */
    gap: 15px; /* Adds consistent space between fields */
    width: 100%;
}

#inquiryform input, 
#inquiryform textarea {
    width: 100% !important; /* Forces full width */
    padding: 15px 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: 0.3s ease;
    display: block !important; /* Ensures they don't sit side-by-side */
}

/* Hover/Focus effect for better UX */
#inquiryform input:focus, 
#inquiryform textarea:focus {
    border-color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Adjust the captcha container to match the width */
.captcha-container {
    width: 100% !important;
    margin: 10px 0 !important;
}

/* ========================================= */
/* PRICING PACKAGES (STARTER, GROWTH, SCALE) */
/* ========================================= */

.packages-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: center; /* Centers the cards vertically */
}

.package-card {
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* Hover Animation - Floats up and glows */
.package-card:hover {
  transform: translateY(-15px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
}

.package-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
}

.package-header h4 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.package-header p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  flex-grow: 1; /* Pushes the button to the bottom */
}

.package-features li {
  color: #cbd5e1;
  margin-bottom: 15px;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.package-features .check {
  color: #d4af37;
  font-weight: bold;
  font-style: normal;
}

/* Base Button Style */
.btn-package {
  display: block;
  text-align: center;
  padding: 15px;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-package:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
}

/* ========================================= */
/* THE "MOST POPULAR" MIDDLE CARD STYLING    */
/* ========================================= */

.package-card.popular {
  background: linear-gradient(145deg, rgba(30, 30, 35, 0.8), rgba(15, 15, 20, 0.9));
  border: 1px solid #d4af37;
  transform: scale(1.05); /* Makes it slightly larger by default */
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
  padding: 50px 30px; /* Taller padding */
}

.package-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
}

.popular-badge {
  position: absolute;
  top: 15px;
  right: -35px;
  background: #d4af37;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 40px;
  transform: rotate(45deg);
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.package-card.popular .package-header h4 {
  color: #d4af37; /* Gold Title */
}

.btn-popular {
  background: #d4af37;
  color: #000;
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-popular:hover {
  background: #f2c94c;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .package-card.popular {
    transform: scale(1);
    padding: 40px 30px;
  }
  .package-card.popular:hover {
    transform: translateY(-10px);
  }
}

/* --- WHATSAPP CTA STYLING --- */
.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366; /* Official WhatsApp Green */
  color: #fff !important;
  text-decoration: none;
  padding: 22px 45px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  width: 100%;
  max-width: 340px;
  animation: pulse-whatsapp 2s infinite;
}

.btn-whatsapp-large:hover {
  transform: scale(1.05) translateY(-5px);
  background: #20ba5a;
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Ensure the wrapper centers correctly on mobile */
@media (max-width: 768px) {
  .btn-whatsapp-large {
    padding: 18px 30px;
    font-size: 1rem;
  }
}

/* ========================================= */
/* FINAL MOBILE REFINEMENTS (PLACED AT END)  */
/* ========================================= */

@media screen and (max-width: 768px) {
  /* 1. Fix Logo & Nav Spacing */
  .navbar {
    padding: 0 25px !important;
    height: 70px !important;
  }

  /* 2. Eliminate Hero Gap & Center Content */
  .hero {
    height: 75vh !important;
    min-height: 450px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: -20px !important;
  }

  .overlay {
    height: 100% !important;
    padding: 100px 20px 40px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* 3. Tighten Typography for Small Screens */
  .overlay h1 {
    font-size: 2.2rem !important;
    line-height: 1.1 !important;
    margin-bottom: 15px !important;
  }

  .overlay p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    padding: 0 10px;
    margin-top: 0 !important;
  }

  /* 4. Section Spacing Fix */
  section {
    padding: 40px 6% !important;
  }

  #vision, #tech {
    padding-top: 30px !important;
  }
}

/* --- ATTRACTIVE EXPERTISE HEADING --- */
.expertise-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 40px;
}

.expertise-header .eyebrow {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.expertise-header .section-title {
    font-size: 2.8rem;
    margin-bottom: 0;
    line-height: 1.2;
}

/* The Gold Glow Effect */
.expertise-header .section-title span {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(245, 180, 27, 0.4); /* Subtle gold halo */
    position: relative;
}

/* --- UPDATED MOBILE REFINEMENTS FOR HEADING --- */
@media (max-width: 768px) {
    .expertise-header {
        margin-top: 60px !important;    /* More space from the table above */
        margin-bottom: 40px !important; /* More space from the cards below */
        padding: 0 15px;
    }

    .expertise-header .section-title {
        font-size: 2.1rem !important;   /* Slightly smaller to prevent edge-crowding */
        line-height: 1.15 !important;   /* Cleaner line spacing */
        letter-spacing: -0.5px;         /* Tighter, modern tech look */
    }

    .expertise-header .eyebrow {
        font-size: 0.7rem !important;
        margin-bottom: 15px !important; /* More space before the main title starts */
        letter-spacing: 2px !important;
    }

    /* Adds a tiny bit of extra room for the glow to breathe */
    .expertise-header .section-title span {
        display: inline-block;
        padding-bottom: 5px;
    }
}
@media screen and (max-width: 768px) {
  .overlay {
    /* 1. Increases side padding so text doesn't touch the screen edges */
    padding: 0 15% !important; 
    text-align: center;
  }

  .overlay h1 {
    /* 2. Keeps the heading bold and clear */
    margin-bottom: 25px !important; 
    letter-spacing: -1px;
  }

  .overlay p {
    /* 3. Adds more space between lines for readability */
    line-height: 1.6 !important; 
    /* 4. Drops the font size just a tiny bit to look more elegant */
    font-size: 0.95rem !important;
    opacity: 0.9;
  }
}

@media screen and (max-width: 768px) {
  /* 1. Make the Hero fill the full screen again */
  .hero {
    height: 100dvh !important; /* Uses dynamic viewport height for mobile */
    min-height: 100dvh !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important; /* Vertically centers the text */
    justify-content: center !important;
    overflow: hidden;
  }

  /* 2. Create the "Cool" Cinematic Overlay */
  .overlay {
    height: 100% !important;
    width: 100% !important;
    /* Deeper gradient for a more 'Premium' tech feel */
    background: linear-gradient(
      to bottom, 
      rgba(0,0,0,0.4) 0%, 
      rgba(0,0,0,0.2) 50%, 
      rgba(5,5,5,1) 100%
    ) !important;
    padding: 0 10% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* 3. Add a "Glow" to the Gold Text */
  .overlay h1 span {
    color: var(--accent) !important;
    text-shadow: 0 0 15px rgba(245, 180, 27, 0.5); /* Glowing effect */
  }

  /* 4. Improve the paragraph spacing */
  .overlay p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-top: 15px !important;
    max-width: 280px !important; /* Keeps text in a nice central column */
  }

  /* 5. Ensure the next section starts exactly on the next 'page' */
  #vision {
    padding-top: 50px !important;
    background: var(--bg-deep);
  }
}

/* 6. BONUS: The "Ken Burns" Effect (Subtle Image Zoom) */
.slide.active {
    animation: coolZoom 10s infinite alternate ease-in-out;
}

@keyframes coolZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* --- MAP HEADING STYLES --- */
.map-header {
    text-align: center;
    padding-top: 80px; /* Space from the Contact section */
    margin-bottom: 40px;
}

.map-header .eyebrow {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.map-header .section-title {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.map-header .section-title span {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

/* Mobile Fixes for the Map Heading */
@media (max-width: 768px) {
    .map-header {
        padding-top: 50px;
        margin-bottom: 25px;
    }
    .map-header .section-title {
        font-size: 2rem;
    }
}

/* Ensure the map wrapper itself has a nice gap from the footer */
.map-wrapper {
    margin-bottom: 0; /* Let the footer handle its own top padding */
    border-top: 1px solid var(--glass-border);
}

/* --- FOOTER: TIGHT & CENTERED --- */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px; /* Reduced vertical padding for a tighter look */
    background: #000;
    border-top: 1px solid var(--glass-border);
}

footer .logo {
    display: flex;         /* Forces icon and text to stay side-by-side */
    justify-content: center; 
    align-items: center;
    margin-bottom: 10px;   /* Tighter gap under logo */
    width: 100%;
}

/* --- FOOTER: IMAGE 2 PROFESSIONAL STYLE --- */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Centers everything horizontally */
    justify-content: center;
    text-align: center;
    padding: 40px 20px;     /* Professional "tight" vertical padding */
    background: #000;
    border-top: 1px solid var(--glass-border);
}

footer .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px !important; /* Tighter gap under logo */
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

/* Targets the "Powered by" div */
footer div:not(.logo):not(.footer-bottom) {
    margin-top: 2px !important;   /* Pulls text closer to logo */
    margin-bottom: 2px !important; 
    font-size: 0.85rem !important;
    opacity: 0.9;
}

/* Targets the "Copyright" div */
/* --- FOOTER BOTTOM: ELEGANT & READABLE --- */
/* --- FOOTER BOTTOM: BOLD WHITE & CLEAN --- */
.footer-bottom {
    margin-top: 10px !important;    /* Keeps that "Image 2" tight spacing */
    font-size: 0.75rem !important;  /* Elegant, smaller size */
    color: #ffffff !important;      /* Pure white for maximum clarity */
    letter-spacing: 0.8px !important;/* Modern spacing */
    font-weight: 400;               /* Clean, non-bold weight */
    opacity: 1 !important;          /* Forces it to be fully visible at all times */
    display: block;
    width: 100%;
}

/* Make sure no old hover rules are interfering */
.footer-bottom:hover {
    opacity: 1 !important;
    transform: none !important;
}

/* Ensure the logo icon is sized correctly */
footer .logo img {
    height: 30px !important;
    margin-right: 12px !important;
}

/* Mobile Tweak: Keeps it clean on small screens */
@media (max-width: 768px) {
    footer {
        padding: 30px 15px;
    }
    footer .logo { font-size: 1.1rem; }
}

/* --- CONTACT SECTION ALIGNMENT FIX --- */
@media (min-width: 1024px) {
    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        gap: 60px;
        align-items: stretch; /* This forces both columns to be the SAME height */
        max-width: 1200px;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centers the text and cards vertically */
    }

    .contact-form-wrapper {
        height: 100%; /* Fills the grid column height */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centers the WhatsApp button vertically */
        align-items: center;
        padding: 60px 40px !important; /* Premium padding */
        margin: 0 !important; /* Removes any weird offsets */
    }

    /* Keeps the 3 detail cards neat */
    .contact-detail-card {
        margin-bottom: 15px;
        width: 100%;
    }
}

/* Mobile cleanup to ensure they stack correctly without gaps */
@media (max-width: 1023px) {
    .contact-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    .contact-form-wrapper {
        padding: 40px 20px !important;
    }
}

/* --- DESKTOP SCROLL REFINEMENT --- */
@media (min-width: 1024px) {
    .hero {
        height: 100vh !important; /* Forces the hero to be exactly one full screen */
        position: relative;
        z-index: 1;
    }

    #vision {
        position: relative;
        z-index: 2; /* Ensures this section slides OVER the hero */
        background-color: var(--bg-deep); /* Uses your solid black background */
        margin-top: 0; 
        padding-top: 100px; /* Gives "AI is Ruling" space to breathe */
        box-shadow: 0 -50px 100px rgba(0,0,0,0.9); /* Adds a subtle shadow for depth */
    }
}
