:root {
  --color-bg: #0F172A; /* Deep trust-building blue/slate */
  --color-surface: #1E293B;
  --color-primary: #3B82F6; /* Confidence blue */
  --color-secondary: #0ea5e9; /* Light blue accent */
  --color-accent: #F97316; /* High-converting orange */
  --color-accent-hover: #EA580C;
  --color-text-main: #F8FAFC;
  --color-text-muted: #94A3B8;
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  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;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #fff;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text-main);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Navigation & Mega Menu Core */
.mega-menu-wrapper {
  position: static; /* Required for full-width mega menu */
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-surface);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 9999;
  padding: 2rem 5%;
}

/* Bridge the gap for Mega Menu hover */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: transparent;
}


.mega-menu-wrapper:hover .mega-menu {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.mega-column {
  flex: 1;
  max-width: 300px;
}

.mega-title {
  color: var(--color-secondary);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.mega-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-links li {
  margin-bottom: 0.5rem;
}

.mega-links a {
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  display: block;
}

.mega-links a:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

.mobile-toggle, .mobile-caret {
  display: none;
}

.mobile-cta-link {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-web-design {
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/web_design_hero.png');
}

.hero-social-media {
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/social_media_hero.png');
}

.hero-google-maps {
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/maps_hero.png');
}

.hero-geo-ai {
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/geo_hero.png');
}

.hero-authority {
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/authority_hero.png');
}

.hero-digital-marketing {
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/digital_marketing_hero.png');
}

.hero-seo-services {
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/seo_services_hero.png');
}

.hero-website-optimization {
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/website_optimization_hero.png');
}

.hero-local-seo {
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/local_seo_hero.png');
}

.hero-ecommerce-marketing {
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/ecommerce_marketing_hero.png');
}

.hero-search-engine-marketing {
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/search_engine_marketing_hero.png');
}

.hero-local-citations {
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/local_citations_hero.png');
}

.hero-ecommerce-seo {
  background-image: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 100%), url('../images/ecommerce_seo_hero.png');
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: fadeUp 1s ease-out;
}

.hero-form-wrapper {
  animation: fadeUp 1s ease-out 0.2s backwards;
}

.hero-form-box {
  background: var(--color-surface);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.hero-form-box h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero-form-box p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(15,23,42,0.5);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(15,23,42,0.8);
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--color-secondary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Stats Bar */
.stats-section {
  position: relative;
  margin-top: -60px;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-surface);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-text-main);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

/* Why Choose Us */
.features {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-muted);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.feature-card {
  flex: 1 1 300px;
  max-width: 380px;
  background: var(--color-surface);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.02);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.1);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
}

.feature-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: #09101f;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Long Form Content */
.content-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.content-section.alt-bg {
  background: var(--color-surface);
}

.text-block {
  max-width: 800px;
  margin: 0 auto;
}

.text-block p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--color-text-main);
  line-height: 1.8;
}

.text-block h3 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  color: #fff;
}

/* CTA Breaks */
.cta-break {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(15,23,42,0.95)), url('../images/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.cta-break h3 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-break p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inline Images */
.content-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  margin: 2.5rem 0;
  border: 1px solid rgba(255,255,255,0.05);
}

/* FAQ Accordion */
.faq-accordion details {
  background: var(--color-surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-accordion details[open] {
  border-color: var(--color-primary);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.faq-accordion summary {
  padding: 1.5rem;
  font-size: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-accordion details[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
}

.faq-content p {
  margin: 0;
  font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero h1 { font-size: 3rem; }
  .stats-grid { grid-template-columns: 1fr; padding: 1.5rem; }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-item { margin-bottom: 2rem; }
  .stat-item:last-child { margin-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  
  .hero h1 { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}



/* Mobile Navigation Accordion */
@media (max-width: 992px) {
  .header-container {
    position: relative;
  }
  
  .desktop-cta {
    display: none !important;
  }
  
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10001;
  }
  
  .mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
  }
  
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-surface);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10000;
  }
  
  #main-nav.active {
    display: block;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }
  
  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .nav-links > li > a {
    padding: 1rem 1.5rem;
    display: block;
  }
  
  .mobile-cta-link {
    display: block;
    padding: 1.5rem;
  }
  
  .mega-menu-wrapper {
    position: relative;
  }
  
  .mega-menu-wrapper:hover .mega-menu {
    display: none; /* Disable desktop hover on mobile */
  }
  
  .mega-menu {
    position: static;
    display: none;
    flex-direction: column;
    padding: 0;
    background: rgba(0,0,0,0.2);
    box-shadow: none;
    border: none;
    width: 100%;
  }
  
  .mega-menu.active {
    display: flex;
  }
  
  .mega-column {
    max-width: 100%;
    padding: 0;
  }
  
  .mega-title {
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .mobile-caret {
    display: inline-block;
    transition: transform 0.3s ease;
  }
  
  .mega-title.active .mobile-caret {
    transform: rotate(180deg);
  }
  
  .mobile-accordion-content {
    display: none;
    padding: 0.5rem 0;
    background: rgba(0,0,0,0.3);
  }
  
  .mobile-accordion-content.active {
    display: block;
  }
  
  .mega-links a {
    padding: 0.75rem 2rem;
  }
}
