/* --- PREMIUM DARK MODE AGENCY STYLES --- */

:root {
  /* Color Palette */
  --bg-primary: #0A121D;    /* Deep Navy Background */
  --bg-secondary: #141D29;  /* Slightly Lighter Surface for Cards/Sections */
  --text-main: #E2E8F0;    /* Light Text */
  --text-muted: #94A3B8;   /* Muted Grey for body text */
  --accent-neon: #00E4B3;  /* Vibrant Neon Green/Cyan Accent */
  --accent-light: #48E8D2; /* Lighter shade for borders/gradients */
  --highlight: #FF5722;    /* Secondary Orange Highlight */

  /* Design Constants */
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-neon: 0 0 15px rgba(0, 228, 179, 0.4);
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --container-max: 1200px;
}

/* Global Reset & Typography */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--text-main); transition: var(--transition); }
h1, h2, h3, h4 { color: var(--text-main); line-height: 1.15; margin-bottom: 0.75rem; }
p { margin-bottom: 1.2rem; color: var(--text-muted); }
.container { width: 90%; max-width: var(--container-max); margin: 0 auto; }
.section { padding: 70px 0; }
.muted { color: var(--text-muted) !important; }
.highlight { color: var(--accent-neon); }

/* --- 1. UTILITY CLASSES --- */
.text-gradient {
  background: linear-gradient(90deg, var(--accent-neon), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-head { text-align: center; margin-bottom: 80px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }

/* --- 2. PREMIUM BUTTONS (NEON/DARK) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid transparent;
}

/* Primary Button: Neon Fill */
.btn-primary {
  background-color: var(--accent-neon);
  color: var(--bg-primary);
  border-color: var(--accent-neon);
  box-shadow: var(--shadow-neon);
}
.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 20px var(--accent-neon);
}

/* Outline Button: Ghost/Dark Mode */
.btn-outline {
  background: transparent;
  color: var(--accent-neon);
  border-color: var(--accent-neon);
}
.btn-outline:hover {
  background-color: var(--accent-neon);
  color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon);
}
.text-center{
  text-align: center;
}

/* Secondary Ghost Button (for Nav) */
.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--accent-neon);
  color: var(--accent-neon);
}

/* --- 3. HEADER & NAVIGATION --- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background-color: var(--bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: padding var(--transition), background-color var(--transition);
}
.site-header.scrolled {
  background-color: rgba(10, 18, 29, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-dark);
}

.header-grid {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}

/* Brand */
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.5px;
}
.brand-mark { color: var(--accent-neon); font-size: 1.8rem; } /* Icon */

/* Nav */
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}
.nav a:not(.btn)::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0%; height: 2px;
  background-color: var(--accent-neon);
  transition: width 0.3s ease;
}
.nav a:not(.btn):hover { color: var(--text-main); }
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: transparent; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--accent-neon); }

/* Mobile Menu Transition (Handled by JS for unique setup) */
/* .mobile-panel class styling is in script.js for simplicity */

/* --- 4. HERO SECTION --- */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  /* Subtle dark background texture/gradient */
  background: radial-gradient(circle at 50% 10%, rgba(0, 228, 179, 0.05) 0%, transparent 40%), var(--bg-primary);
}
.hero-title {
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 800;
  margin-bottom: 15px;
}
.hero-title .accent { color: var(--accent-neon); }
.lead { max-width: 750px; margin: 0 auto 30px; font-size: 1.1rem; }
.hero-ctas { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; }

/* Trust List */
.trust-list {
  display: flex; justify-content: center; gap: 40px;
  list-style: none; padding: 0; margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px; max-width: 800px;
}
.trust-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.2;
}
.trust-list strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}

/* Hero Right / Illustration */
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  align-items: center; justify-items: center;
}
.device-card {
  position: relative; width: 100%; max-width: 480px; margin-top: 40px;
}
.device-img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  transition: transform 0.5s ease;
}
.device-card:hover .device-img { transform: scale(1.02); }

/* Neon Pulse Effect */
.floating-pulse {
  position: absolute; right: -20px; top: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent-neon) 0%, rgba(0, 228, 179, 0) 70%);
  filter: blur(20px);
  animation: pulse 4s ease-in-out infinite alternate;
}
@keyframes pulse {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 0.8; transform: scale(1.1); }
}


/* --- 5. SERVICES & CARDS --- */
.section-soft {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card {
  background-color: var(--bg-primary);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}
.card:hover {
  border-color: var(--accent-neon);
  transform: translateY(-8px);
  box-shadow: var(--shadow-neon);
}
.card-icon {
  width: 60px; height: 60px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background-color: rgba(0, 228, 179, 0.1);
  color: var(--accent-neon);
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.3rem; }
.card-link { color: var(--accent-neon); font-weight: 600; }
.card-link:hover { color: var(--accent-light); }
/* Highlight the selected service field in the modal */


/* Subtle animation when the title changes */
.modal-header h3 {
    animation: fadeInSlide 0.4s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 6. ABOUT SECTION --- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-left h2 { font-size: clamp(2rem, 4vw, 3rem); }
.about-left p { max-width: 500px; }
.feature-cta { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 40px; }

.image-grid {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-dark); position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.image-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px; background: rgba(0, 0, 0, 0.5);
  text-align: center; font-size: 0.9rem; color: var(--text-main);
  backdrop-filter: blur(5px);
}

/* --- 7. PROJECTS --- */
.project {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(0, 228, 179, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-neon), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 228, 179, 0.15);
  border-color: rgba(0, 228, 179, 0.3);
}

.project:hover::before {
  opacity: 1;
}

.project::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 228, 179, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project:hover::after {
  opacity: 1;
}

/* Corner tech indicators */
.project::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-neon);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.project:hover::after {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px var(--accent-neon); }
  50% { box-shadow: 0 0 20px var(--accent-neon), 0 0 30px var(--accent-neon); }
  100% { box-shadow: 0 0 10px var(--accent-neon); }
}
/* 1. The Hidden State */
.project-hidden {
    display: none !important;
}

/* 2. The Reveal Animation */
.project-reveal {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Responsive Grid Fix (Ensures 3 columns on desktop, 2 on tablet, 1 on mobile) */
/* --- Updated Project Grid for Symmetry --- */
.projects-grid {
    display: grid;
    gap: 30px;
    /* This forces exactly 3 columns on desktop */
    grid-template-columns: repeat(3, 1fr); 
}

/* Tablet: 2 Columns (Symmetrical) */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 Column */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-media {
  height: 250px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(45deg, rgba(0, 228, 179, 0.05), rgba(0, 100, 150, 0.05));
  background-image:
    linear-gradient(rgba(0, 228, 179, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 228, 179, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.project-media::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 228, 179, 0.1) 0%, transparent 70%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project:hover .project-media::before {
  opacity: 1;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.95);
}

.project:hover .project-media img {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.05);
}

.project-body {
  padding: 24px;
  position: relative;
  background: var(--bg-secondary);
}

.project-body h3 {
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.project:hover .project-body h3 {
  color: var(--accent-neon);
}

.project-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  position: relative;
}

.project-body p::before {
  content: '▸';
  color: var(--accent-neon);
  font-weight: bold;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.project:hover .project-body p::before {
  transform: translateX(4px);
}

/* --- 8. PROCESS --- */
.section-dark {
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.process-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.process-step { text-align: center; }
.process-step .step {
  width: 70px; height: 70px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.5rem;
  color: var(--bg-primary);
  background-color: var(--accent-neon);
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(0, 228, 179, 0.3);
}
.process-step h4 { color: var(--text-main); font-size: 1.25rem; }
.process-step p { color: var(--text-muted); }


/* --- 9. CTA & FOOTER --- */
.cta { padding: 90px 0; background-color: var(--bg-secondary); }
.cta-grid {
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 60px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-primary);
  border: 2px solid var(--accent-neon);
  box-shadow: var(--shadow-neon);
}
.cta-grid h2 { margin: 0; font-size: 2.2rem; }
.cta-grid .muted { margin-top: 5px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 15px; }


.site-footer {
  padding: 80px 0 30px;
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.brand-footer { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.brand-mark-sm { color: var(--accent-neon); font-size: 1.5rem; }
.site-footer h4 { color: var(--text-main); margin-bottom: 15px; }
.site-footer a { color: var(--text-muted); display: block; width: fit-content; margin-bottom: 10px; padding: 0; }
.site-footer a:hover { color: var(--accent-neon); }

.copyright {
  text-align: center; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem; color: var(--text-muted);
}

/* --- 10. RESPONSIVENESS (RWD) --- */
@media (max-width: 1024px) {
  .about-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-left { order: 2; text-align: center; }
  .about-right { order: 1; margin-bottom: 40px; }
  .about-left p { max-width: 80%; margin-left: auto; margin-right: auto; }
  .feature-cta { justify-content: center; }
  .process-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .cta-grid { flex-direction: column; text-align: center; padding: 40px; }
  .cta-actions { margin-top: 20px; justify-content: center; }
  .cta-grid h2 { font-size: 2rem; }
  .trust-list { gap: 20px; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .header-grid { padding: 15px 0; }
  .nav { display: none; } /* Hide desktop nav */
  .nav-toggle { display: inline-block; }
  
  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: 3rem; }
  .hero-ctas { gap: 10px; }
  .trust-list { border-top: none; padding-top: 20px; gap: 30px; }
  .trust-list strong { font-size: 1.5rem; }

  .cards-grid, .projects-grid { grid-template-columns: 1fr; }
  
  .site-header.scrolled { padding: 10px 0; }
}

@media (max-width: 480px) {
  .cta-grid h2 { font-size: 1.5rem; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }
}
/* --- FEATURES / ABOUT SECTION STYLES --- */

/* Updated Grid Name for Clarity */
.feature-grid {
  display: grid; 
  grid-template-columns: 1fr 1fr;
  gap: 80px; 
  align-items: center;
}

.feature-content h2 { 
    font-size: clamp(2.2rem, 4vw, 3.2rem); 
    margin-bottom: 20px;
}
.feature-content p { 
    max-width: 550px; 
    margin-bottom: 25px; 
}

/* NEW: Value List Styling */
.value-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px; /* Separates list from CTAs */
    max-width: 500px;
}
.value-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.value-list li:last-child {
    border-bottom: none;
}
.value-list i {
    color: var(--accent-neon);
    font-size: 0.9rem;
    margin-right: 12px;
}
.value-list strong {
    font-weight: 600;
}

.feature-cta { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
    margin-top: 20px; 
}

/* Enhanced Visual Card Styling */
.image-stack-card {
  position: relative; 
  border-radius: var(--radius-lg); 
  /* Ensures inner content is contained */
}

/* Layered Background Effect */
.design-layer {
    position: absolute;
    inset: 15px; /* Offset to show the layer */
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0, 228, 179, 0.1), rgba(0, 228, 179, 0.05));
    border: 1px solid rgba(0, 228, 179, 0.2);
    transform: rotate(2deg); /* Subtle tilt */
    z-index: 1;
    transition: var(--transition);
}

.image-stack-card:hover .design-layer {
    transform: rotate(0deg);
    box-shadow: 0 0 30px rgba(0, 228, 179, 0.3);
}

.image-grid-inner {
    position: relative;
    z-index: 2; /* Bring image above the layered background */
    border-radius: var(--radius-lg); 
    overflow: hidden;
    box-shadow: var(--shadow-dark); 
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.image-grid-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-caption {
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0;
  padding: 12px; /* Increased padding */
  background: rgba(0, 0, 0, 0.6);
  text-align: center; 
  font-size: 0.95rem; 
  color: var(--text-main);
  backdrop-filter: blur(8px); /* Stronger blur */
  z-index: 3; /* Ensure caption is on top */
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* --- RESPONSIVENESS ADJUSTMENTS --- */
@media (max-width: 1024px) {
  .feature-grid { 
    grid-template-columns: 1fr; 
    gap: 40px; 
  }
  .feature-content { 
    order: 2; 
    text-align: center; 
  }
  .feature-content p, .value-list { 
    margin-left: auto; 
    margin-right: auto; 
    text-align: left; /* Keep list items left-aligned */
  }
  .feature-visual { 
    order: 1; 
    max-width: 500px;
    margin: 0 auto;
  }
  .feature-cta { 
    justify-content: center; 
  }
}

/* --- METHODOLOGY SECTION STYLES --- */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.methodology-card {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    text-align: center;
}

.methodology-card:hover {
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px);
}

.methodology-card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.methodology-card .card-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.8rem;
    color: var(--accent-neon);
    background-color: rgba(0, 228, 179, 0.15);
    border-radius: 50%;
    margin: 0 auto;
}

/* Responsiveness */
@media (max-width: 768px) {
    .methodology-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SERVICES PAGE SPECIFIC STYLES (SV- PREFIX) --- */

/* 1. SERVICES HERO */
.sv-hero {
  padding: 80px 0 100px;
  /* Match the dark background of the main hero */
  background: radial-gradient(circle at 50% 10%, rgba(0, 228, 179, 0.05) 0%, transparent 40%), var(--bg-primary);
}

.sv-hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px; /* Two-column layout */
  gap: 60px;
  align-items: center;
  text-align: left; /* Ensure text is left-aligned */
}

.sv-hero-left .hero-title, .sv-hero-left .lead {
  text-align: left;
}

/* FIX: Button Alignment for Left-Aligned Hero */
.sv-hero-cta-wrap {
    margin-top: 30px;
    display: inline-block; /* Essential to prevent the button from taking full width */
}

.sv-hero-right {
    /* Ensure the visual is right-aligned on desktop */
    margin-left: auto;
}

/* Specific pulse for this section (Orange) */
.sv-pulse-orange {
  background: radial-gradient(circle at 50% 50%, var(--highlight) 0%, rgba(255, 87, 34, 0) 70%);
  filter: blur(20px);
  animation: sv-pulse-orange 4s ease-in-out infinite alternate;
}
/* Keyframes must be defined globally or in a style tag if not in the main CSS file */
/* If placed in styles.css, remove the <style> tag from HTML */
@keyframes sv-pulse-orange {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 0.8; transform: scale(1.1); }
}


/* 2. CORE SERVICES GRID (4 COLUMNS) */
.sv-section-soft {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.sv-card-item {
  /* Make cards slightly taller and distinct from small home cards */
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.sv-card-item h3 {
  font-size: 1.25rem;
  color: var(--accent-neon);
  margin-top: 10px;
}
.sv-card-item .card-icon {
  background-color: var(--bg-primary);
  border: 1px solid rgba(0, 228, 179, 0.2);
}


/* 3. DETAILED FEATURES / VALUE PROPOSITION */
.sv-feature-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 60px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
}

.sv-feature-item {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
/* Remove border on last items in the grid for a clean look */
.sv-feature-item:nth-child(2n), .sv-feature-item:last-child {
    border-bottom: none;
}
.sv-feature-item h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.sv-feature-item i {
    color: var(--accent-neon);
    margin-right: 8px;
}


/* RESPONSIVENESS FOR SERVICES PAGE */
@media (max-width: 1024px) {
  .sv-hero-grid {
    grid-template-columns: 1fr;
  }
  .sv-hero-right {
    order: 1; /* Move image above text on mobile */
    margin-bottom: 40px;
  }
  .sv-hero-left {
    order: 2;
    text-align: center;
  }
  .sv-hero-left .hero-title, .sv-hero-left .lead {
    text-align: center;
  }
  .sv-hero-cta-wrap {
    display: block; /* Allow button wrapper to take full width */
    text-align: center;
  }
  .sv-feature-points-grid {
      grid-template-columns: 1fr;
      padding: 40px;
  }
  /* Fix borders for single column layout */
  .sv-feature-item {
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .sv-feature-item:last-child {
      border-bottom: none;
  }
}

@media (max-width: 768px) {
    .sv-feature-points-grid {
        padding: 30px 20px;
    }
}




/* --- ABOUT US PAGE SPECIFIC STYLES (AB- PREFIX) --- */

/* 1. ABOUT HERO */
.ab-hero {
  padding: 80px 0 100px;
  background: radial-gradient(circle at 50% 10%, rgba(0, 228, 179, 0.05) 0%, transparent 40%), var(--bg-primary);
}

.ab-hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.ab-hero-left .hero-title {
  text-align: left;
  font-size: clamp(3rem, 5vw, 4rem);
}
.ab-hero-left .lead {
  text-align: left;
}

.ab-hero-cta-wrap {
    margin-top: 30px;
    display: inline-block;
}

/* Specific pulse for this section (Subtle Dark) */
.ab-pulse-dark {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(15px);
  animation: ab-pulse-dark 4s ease-in-out infinite alternate;
}
/* Keyframes must be defined globally or in a style tag if not in the main CSS file */
@keyframes ab-pulse-dark {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 0.7; transform: scale(1.1); }
}


/* 2. OUR STORY (Simple Text Section) */
.ab-section-light {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ab-story-content .section-head {
    margin-bottom: 30px;
}


/* 3. TEAM SECTION */
.ab-section-dark {
    background-color: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ab-team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}
.ab-member-card {
  display: block;
    text-align: center;
    max-width: 280px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background-color: var(--bg-secondary);
    transition: var(--transition);
}
.ab-member-card:hover {
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px);
}
.ab-member-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-neon);
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0, 228, 179, 0.4);
}
.ab-member-card h4 {
    margin-bottom: 5px;
}


/* 4. SERVICES & VALUES GRID */
.ab-section-soft {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ab-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.ab-split-col h2 {
    border-bottom: 2px solid var(--accent-neon);
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.ab-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}
.ab-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-neon);
    background-color: rgba(0, 228, 179, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.ab-info-item h4 {
    margin-top: 0;
    font-size: 1.2rem;
}
.ab-info-item p {
    margin-bottom: 0;
}

/* 5. WHY CHOOSE US (Highlight Section) */
.ab-section-highlight {
    background-color: var(--accent-neon);
    color: var(--bg-primary); /* Ensure text is dark on the bright background */
}
.ab-section-highlight .section-head h2 {
    color: var(--bg-primary);
}
.ab-section-highlight .highlight {
    color: var(--bg-primary); /* Invert highlight color */
    -webkit-text-fill-color: var(--bg-primary);
}
.ab-section-highlight .muted, .ab-section-highlight p {
    color: var(--bg-primary);
    opacity: 0.85;
}
.ab-choose-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}
.ab-choose-card {
    /* Style the card to work on the light background */
    background-color: rgba(255, 255, 255, 0.9); 
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--bg-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.ab-choose-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--bg-primary);
}
.ab-choose-card h3 {
    color: var(--bg-primary);
}
.ab-choose-card p {
    color: var(--bg-primary);
    opacity: 0.7;
}
.ab-choose-icon {
    background-color: var(--bg-primary); /* Dark background for the icon */
    color: var(--accent-neon); /* Neon accent color for the icon */
}
.ab-section-highlight .btn-primary {
    background-color: var(--bg-primary);
    color: var(--accent-neon);
    border-color: var(--bg-primary);
}
.ab-section-highlight .btn-primary:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-3px) scale(1.02);
}


/* RESPONSIVENESS FOR ABOUT PAGE */
@media (max-width: 1024px) {
  .ab-hero-grid, .ab-split-grid {
    grid-template-columns: 1fr;
  }
  .ab-hero-right {
    order: 1; 
    margin-bottom: 40px;
  }
  .ab-hero-left {
    order: 2;
    text-align: center;
  }
  .ab-hero-left .hero-title, .ab-hero-left .lead {
    text-align: center;
  }
  .ab-hero-cta-wrap {
    display: block;
    text-align: center;
  }
  .ab-team-grid {
    gap: 20px;
  }
  .ab-member-card {
    max-width: 45%;
  }
  .ab-split-col {
    margin-bottom: 40px;
  }
}
@media (max-width: 768px) {
    .ab-choose-grid {
        grid-template-columns: 1fr;
    }
    .ab-member-card {
      max-width: 80%;
    }
}


/* --- POPUP MODAL STYLES (PROFESSIONAL & CENTERED) --- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark overlay with Strong Blur */
  background: rgba(5, 10, 16, 0.6); 
  backdrop-filter: blur(12px); /* Stronger blur for professional look */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  z-index: 9999; /* Ensure it's above everything including header */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 20px; /* Prevents touching edges on very small screens */
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-primary);
  width: 100%;
  max-width: 550px; /* Slightly wider for better spacing */
  /* CRITICAL FIXES FOR ALIGNMENT: */
  max-height: 85vh; /* Never touch top/bottom edges */
  overflow-y: auto; /* Scroll inside the modal if content is long */
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Deep shadow for "floating" effect */
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6); 
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy professional pop */
}

/* Custom Scrollbar for the Modal (Webkit browsers) */
.modal-container::-webkit-scrollbar {
  width: 6px;
}
.modal-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.modal-container::-webkit-scrollbar-thumb {
  background-color: var(--bg-secondary);
  border-radius: 10px;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  z-index: 10;
}

.modal-close:hover {
  color: var(--accent-neon);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-header h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--text-main);
}
.modal-header .highlight {
    color: var(--accent-neon);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03); /* Subtle input background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group select option {
    background-color: var(--bg-primary); /* Solid dark background */
    color: var(--text-main); /* Light text */
    padding: 10px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-neon);
  background: rgba(0, 228, 179, 0.05); /* Very faint neon glow on focus */
  box-shadow: 0 0 15px rgba(0, 228, 179, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
/* --- Keep your old code above this --- */

/* Target ONLY the specific Service Dropdown */
#service {
    appearance: none; /* Removes the default browser arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Adds the Neon Arrow SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300e4b3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center; /* Positions arrow away from border */
    background-size: 16px;
    padding-right: 40px; /* Gives the text room so it doesn't overlap the arrow */
}

/* Ensure other selects (like the Call Modal) keep the standard arrow */
#callTopic {
    appearance: auto; 
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .modal-container {
    padding: 30px 20px;
    max-height: 90vh; /* slightly more room on mobile */
  }
  .modal-header h3 {
    font-size: 1.5rem;
  }
}