/* =========================================================================
   # GLOBALS & VARIABLES
   ========================================================================= */
:root {
  /* Color Palette - Premium Dark Theme */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1f1f1f;

  --accent-primary: #3b82f6;
  /* Trust blue */
  --accent-secondary: #8b5cf6;
  /* Creative purple */
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container-width: 1200px;
  --nav-height: 80px;

  /* Transition */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.15rem; /* Super-density Sitewise */
}

p {
  margin-bottom: 0.35rem; /* Super-density Sitewise */
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  /* Ensure full width availability */
}

/* =========================================================================
   # TYPOGRAPHY & UTILITIES
   ========================================================================= */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

/* Section Connectedness: Smooth transitions between background variants */
section {
  transition: background 0.4s ease;
}

section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.bg-connected {
  padding-top: 0.5rem !important; /* Tightened gap for absolute density */
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================================
   # BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* =========================================================================
   # HEADER & NAVIGATION
   ========================================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-base);
}

header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001;
}

.logo span {
  font-weight: 400;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links > li > a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--text-primary);
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-base);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* =========================================================================
   # NAV DROPDOWN
   ========================================================================= */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-wrapper > a {
    display: flex;
    align-items: center;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: rgba(15, 15, 20, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  list-style: none;
  z-index: 1000;
}

/* Hover logic for Desktop */
@media (min-width: 992px) {
  .nav-dropdown-wrapper:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-dropdown-wrapper:hover .dropdown-icon {
    transform: rotate(180deg);
  }
}

.nav-dropdown.mega-menu {
  min-width: 320px;
  padding: 1rem;
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.mega-item {
  display: flex !important;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem !important;
  border-radius: 8px;
  border-bottom: none !important;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.mega-item::after {
  display: none !important;
}

.mega-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-primary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mega-item:hover .mega-icon,
.mega-item.active .mega-icon {
  background: var(--accent-primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.mega-content {
  display: flex;
  flex-direction: column;
}

.mega-title {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  transition: color 0.3s;
}

.mega-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.mega-item:hover,
.mega-item.active {
  background: rgba(255,255,255,0.02) !important;
  padding-left: 1rem !important; /* Keep padding stable */
}

.mega-item:hover .mega-title,
.mega-item.active .mega-title {
  color: var(--accent-primary);
}

.dropdown-icon {
  transition: transform 0.3s ease;
}

/* Responsive Handling */
@media (max-width: 991px) {
  .nav-dropdown {
    position: static;
    opacity: 0;
    max-height: 0;
    visibility: hidden;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    border-left: 1px solid var(--glass-border);
    border-radius: 0;
    margin-left: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .nav-dropdown.open {
    opacity: 1;
    visibility: visible;
    max-height: 400px;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  .dropdown-trigger.open-mobile .dropdown-icon {
    transform: rotate(180deg);
  }
}

/* =========================================================================
   # HOME HERO SECTION
   ========================================================================= */
.hero {
  min-height: 80vh; /* Reduced from 85vh */
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 0 60px; /* Reduced from 120px 0 80px */
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem; /* Reduced from 4rem for tighter density (ss2) */
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background blob effects */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-primary);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: var(--accent-secondary);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem; /* Tighter padding (ss1) */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--accent-primary);
  margin-bottom: 1.25rem; /* Reduced from 1.5rem (ss1) */
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Trust Bar Wrapper [ss1] */
.trust-bar {
  padding: 4rem 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 5;
}

/* Dual Marquee / Social Proof (Reverse Direction [ss1]) */
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-row {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: scroll 60s linear infinite;
  gap: 4rem;
  width: max-content;
}

.marquee-row.reverse .marquee-content {
  animation-direction: reverse !important;
}

.marquee-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.marquee-item::after {
  content: '•';
  color: var(--accent-primary);
  opacity: 0.5;
}

.hero-stats {
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 1.5rem !important;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  
  .h-stat {
    align-items: center !important;
  }
}

/* =========================================================================
   # ALPHA-BETA FUNNEL VISUALS (ss5)
   ========================================================================= */
.viz-funnel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
  position: relative;
  padding-left: 1rem;
}

.funnel-step {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
}

.funnel-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--step-color, var(--accent-primary));
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

/* Specific Node Glows */
.funnel-step:nth-child(1) { --step-color: #a855f7; --step-color-rgb: 168, 85, 247; } /* Beta */
.funnel-step:nth-child(3) { --step-color: #3b82f6; --step-color-rgb: 59, 130, 246; } /* Bridge */
.funnel-step:nth-child(5) { --step-color: #10b981; --step-color-rgb: 16, 185, 129; } /* Alpha */

.funnel-step:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--step-color) !important;
  transform: translateX(12px) scale(1.02);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(var(--step-color-rgb), 0.1);
}

.funnel-step:hover::before {
  opacity: 1;
}

.funnel-step h4 {
  font-weight: 800;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
  color: #fff;
}

.funnel-step p {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.funnel-step .step-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(var(--step-color-rgb), 0.1) !important;
  border: 1px solid rgba(var(--step-color-rgb), 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.funnel-step:hover .step-icon {
  transform: rotate(-5deg) scale(1.1);
  background: var(--step-color) !important;
  color: #fff !important;
}

.step-arrow {
  margin-left: 3.5rem;
  color: var(--text-muted);
  font-size: 1.2rem;
  opacity: 0.3;
  animation: pulseArrow 2s infinite ease-in-out;
}

@keyframes pulseArrow {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(5px); }
}

/* =========================================================================
   # FAQ ACCORDION (Point 6)
   ========================================================================= */
.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-base);
}

.faq-header {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #fff;
  padding: 1rem 0 !important; /* Re-adding minimal padding for focus */
  border-bottom: 1px solid rgba(255,255,255,0.05); /* Separator line */
}

.faq-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-item.active .faq-body {
  max-height: 1000px;
  padding: 1rem 0 2rem; /* Clean vertical vertical flow */
  opacity: 1;
}

/* Ensure FAQ items are spaced regardless of global density */
.faq-item {
  margin-bottom: 1.5rem !important;
}

/* Enquiry Form Alignment in Body */
.enquiry-body-section {
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* Ensure trust numbers are always center-aligned on mobile */
@media (max-width: 480px) {
  .trust-bar-content {
    flex-direction: column !important;
    gap: 2rem;
  }
}

.trust-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  display: block;
}

.trust-label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-top: 0.5rem;
}

/* =========================================================================
   # SERVICES / EXPERTISE CARDS
   ========================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem 2rem 2rem;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition-base);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-card-content {
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9375rem;
}

.service-link:hover {
  color: var(--accent-primary);
}

.service-link i {
  transition: transform var(--transition-fast);
}

.service-link:hover i {
  transform: translateX(4px);
}

/* =========================================================================
   # INNER PAGE HERO (For Service Pages)
   ========================================================================= */
.inner-hero {
  padding: 5rem 0 4rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.inner-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

/* Connect Hero to first section */
.inner-hero + section,
.inner-hero + .content-block {
  margin-top: 0; /* Removed negative margin to keep decent gap */
  padding-top: 4rem;
  position: relative;
  z-index: 2;
}

.inner-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.inner-hero h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

.inner-hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Content Blocks for Services */
.content-block {
  padding: 4rem 0;
  position: relative;
}

/* Section Stitching: Reduces gap between adjacent colored blocks */
.content-block + .content-block {
  padding-top: 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-grid.reverse .content-text {
  order: 2;
}

.content-grid.reverse .content-image {
  order: 1;
}

.content-image img {
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.content-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.content-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

.check-list {
  list-style: none;
  margin-top: 2rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.check-list li i {
  color: var(--accent-primary);
  margin-top: 0.25rem;
}

/* =========================================================================
   # CONTACT SECTION & FORM
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-info-text h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-info-text p,
.contact-info-text a {
  color: var(--text-secondary);
  font-size: 1rem;
}

.contact-info-text a:hover {
  color: var(--text-primary);
}

.contact-form {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* =========================================================================
   # CTA SECTION
   ========================================================================= */
/* =========================================================================
   # PREMIUM HERO REDESIGN COMPONENTS
   ========================================================================= */
.mesh-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 4/5;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(2deg);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: -50px;
  /* Shifted up to use empty space */
}

@media (max-width: 768px) {
  .hero-img-wrapper {
    margin-top: 0;
    /* Reset negative margin on mobile to prevent overlap */
    max-width: 320px;
  }
}

.hero-img-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.5s ease;
}

.hero-img-wrapper:hover img {
  filter: grayscale(0%) contrast(1);
}

.hero-stat-card {
  position: absolute;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 20px;
  z-index: 5;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

.stat-card-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.stat-card-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}


@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 6rem;
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 2;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Service Page Hero Mobile Fixes */
  .service-page .inner-hero {
    padding-top: 10rem; /* Fixed: Added enough padding to clear the 80px (5rem) header on mobile */
    padding-bottom: 4rem;
  }

  .service-page .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .service-page .hero-text-side {
    order: 1;
  }

  .service-page .hero-visual {
    order: 2;
    margin-bottom: 2rem;
  }

  .service-page .hero-cta-stats {
    order: 3;
    width: 100%;
    padding: 0 1rem;
  }

}

/* Footer Mobile 2-Column Fix */
@media (max-width: 768px) {
  .footer-columns-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    margin-bottom: 3rem;
  }

  .footer-about {
    grid-column: 1 / -1 !important;
    margin-bottom: 3rem;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem !important;
  /* Tighten menu gaping as requested */
}

.cta-section {
  padding: 2rem 0; /* Tightened CTA */
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

/* =========================================================================
   # FOOTER
   ========================================================================= */
footer {
  background: var(--bg-primary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-about p {
  color: var(--text-secondary);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.social-links a:hover {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================================================================
   # UTILITIES & ANIMATIONS
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   # RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  .content-grid {
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .content-grid.reverse .content-text {
    order: 1;
  }

  .content-grid.reverse .content-image {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about p {
    margin-left: auto;
    margin-right: auto;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Tighten Mobile Menu Gaps */
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem !important;
}

/* Sticky Mobile CTA Bar */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cta-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  gap: 8px;
  transition: all 0.3s ease;
}

.cta-item.whatsapp {
  color: #25d366;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-item.call {
  color: #3b82f6;
}

.cta-item i {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: grid;
  }

  body {
    padding-bottom: 65px;
    /* Prevent content being hidden behind sticky bar */
  }
}

/* =========================================================================
@media (max-width: 768px) {
  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-grid,
  .content-grid,
  .contact-grid {
    gap: 3rem !important;
  }

  .hero-img-wrapper {
    margin-top: 0 !important;
    max-width: 280px !important;
    margin-bottom: 2rem;
  }

  section {
    overflow-x: hidden !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .inner-hero {
    padding: 6rem 0 -3rem !important;
  }

  p {
    font-size: 1rem !important;
  }
}

/* Responsive Grid Utility */
.responsive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .responsive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .responsive-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  h2 {
    font-size: 2.22rem !important;
  }

  h3 {
    font-size: 1.6rem !important;
  }

  /* Tighten sections even more on mobile */
  .section-padding {
    padding: 3.5rem 0 !important;
  }
}

/* Site-wide Overflow Prevention */
body,
html {
  overflow-x: hidden !important;
  position: relative;
  width: 100%;
}

/* Hero Buttons Mobile Symmetery Fix */
@media (max-width: 576px) {
  .hero-btns {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    margin-bottom: 2.5rem !important;
  }
  
  .hero-btns .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.9rem 1rem !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* =========================================================================
   # ANIMATION REVEAL UTILITIES & LAYOUT FIXES
   ========================================================================= */
.reveal-text, .reveal-card, .reveal-visual {
  /* opacity and transform handled dynamically by GSAP */
  will-change: transform, opacity;
}