/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background: #070617; /* deep near-black */
    color: #e6eef6;
}

:root {
  --bg: #070617;
  --panel: #0f1724;
  --muted: #94a3b8;
  --accent-green: #00ff88;
  --accent-purple: #8b5cf6;
  --glass: rgba(255,255,255,0.04);
}

.bg-dark-brown { background-color: var(--panel); }
.bg-terracotta { background-color: var(--accent-purple); }
.text-terracotta { color: var(--accent-green); }
.bg-pastel-blue { background-color: rgba(255,255,255,0.02); }
.bg-blue { background-color: var(--accent-purple); }

/* Contact section specific override for .bg-primary-blue to improve contrast */
#contact.bg-primary-blue,
.bg-primary-blue {
  background: linear-gradient(180deg, rgba(139,92,246,0.06), rgba(0,255,136,0.03)), var(--panel);
  color: var(--muted);
}

#contact.bg-primary-blue .container { color: #e6eef6; }
#contact.bg-primary-blue .btn.btn-light { background: rgba(255,255,255,0.96); color:#061322; }
#contact.bg-primary-blue .btn.btn-outline-light { border-color: rgba(255,255,255,0.12); color: #e6eef6; }

/* Contact section button styles */
#contact .btn.btn-light.text-dark {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
  color: #061322 !important;
  border: none !important;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(139,92,246,0.12), 0 2px 8px rgba(0,255,136,0.04) inset;
  margin-right: 0.6rem;
}
#contact .btn.btn-light.text-dark:hover { transform: translateY(-3px); filter: brightness(1.03); }

#contact .btn.btn-outline-light {
  background: transparent;
  color: #e6eef6;
  border: 1px solid rgba(139,92,246,0.28);
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
#contact .btn.btn-outline-light:hover {
  box-shadow: 0 8px 28px rgba(139,92,246,0.12);
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  #contact .btn { display: block; width: 100%; margin: 0.35rem 0; }
}

/* Mobile: center hero contact button and add spacing from image */
@media (max-width: 767.98px) {
  .hero-section .btn {
    display: inline-block;
    margin: 1rem auto 0 !important;
    width: auto;
    text-align: center;
  }
  .hero-section .col-lg-5.text-center img {
    margin-top: 1.1rem;
    margin-bottom: 0.6rem;
    width: auto;
    max-width: 420px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-section .col-lg-7 { padding-bottom: 0.5rem; text-align: center; }
}

/* Tablet: apply similar centering and spacing for medium screens */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section .btn {
    display: inline-block;
    margin: 1rem auto 0 !important;
    width: auto;
    text-align: center;
  }
  .hero-section .col-lg-5.text-center img {
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    max-height: 360px;
    width: auto;
    max-width: 420px;
    height: auto;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-section .col-lg-7 { padding-bottom: 0.5rem; text-align: center; }
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.btn-primary {
  border: none;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
  color: #061322;
  box-shadow: 0 8px 30px rgba(139,92,246,0.08);
}

.btn-primary:hover { filter: brightness(1.05); transform: translateY(-2px); }

/* Hero section specific styling */
.hero-section {
  background-color: var(--panel);
}

/* Ensure form controls have high contrast */
.form-control {
  background-color: rgba(255,255,255,0.03);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.04);
}

/* Footer link hover */
a.text-light:hover { color: var(--accent-green) !important; text-decoration: underline; }
.nav-link { color: rgba(255,255,255,0.9); }
.nav-link:hover { color: var(--accent-green); }
.card img,
.bg-light img,
.container img {
  display: block;
  width: 100%;
  height: auto;
}
/* Font safety overrides */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.btn,
input,
textarea,
select {
  font-family: var(--font-sans);
}
/* WP Generator feature helpers */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
  z-index: 9999;
  transition: width 120ms ease-out;
}

/* Neon gradient headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--accent-purple); /* fallback for older browsers */
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 6px 28px rgba(0,0,0,0.65);
}

/* Stronger styling for hero/main headings */
.hero-section h1, .hero-section .fw-bold {
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 10px 40px rgba(0,0,0,0.7), 0 0 12px rgba(139,92,246,0.08);
}

/* Larger first letter for hero heading */
.hero-section h1.display-4::first-letter,
.hero-section .display-4.fw-bold::first-letter {
  font-size: 1.6em;
  font-weight: 900;
  line-height: 1;
  margin-right: 0.08em;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Modern neon-styled hero contact button */
.hero-section .btn.btn-light {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
  color: #061322 !important;
  border: none !important;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(139,92,246,0.12), 0 2px 8px rgba(0,255,136,0.04) inset;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.hero-section .btn.btn-light:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 18px 46px rgba(139,92,246,0.16), 0 4px 12px rgba(0,255,136,0.06) inset;
}
.hero-section .btn.btn-outline-light {
  border-radius: 999px;
  border-color: rgba(255,255,255,0.08);
  color: #e6eef6;
}

/* Feature icons under hero */
.feature-grid { gap: 1rem 1.25rem; }
.feature { min-width: 160px; }
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(139,92,246,0.12), rgba(0,255,136,0.04));
  color: #e6eef6;
  box-shadow: 0 6px 18px rgba(11,12,18,0.6);
}
.feature .icon svg { display:block; width:22px; height:22px; color: #fff; }
.feature .feature-text strong { display:block; color: #ffffff; font-weight:700; }
.feature .feature-text .text-muted { color: #ffffff; font-weight:400; text-transform:none; letter-spacing:0; font-size:0.85rem; opacity:0.9; }
/* Ensure any .small.text-muted inside feature is white (override Bootstrap .text-muted) */
.feature .feature-text .small, .feature .feature-text .small.text-muted { color: #ffffff !important; opacity: 0.95; }

@media (max-width: 575.98px) {
  .feature { min-width: 140px; }
  .feature-grid { justify-content: center; }
}

/* Navbar brand styled like gradient headings; bigger first letter as logo */
.navbar-brand {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  display: inline-block;
  text-decoration: none;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.navbar-brand::first-letter {
  font-size: 1.45em;
  line-height: 1;
  margin-right: 2px;
}

/* Fix layout issues in Services section without changing HTML */
#services .row.g-4 { row-gap: 1rem; column-gap: 1rem; align-items: stretch; }
#services .row.align-items-center { align-items: stretch !important; }

/* Keep each column self-contained and avoid content overlap */
#services .col-md-6 {
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#services .col-md-6 h5 { margin: 0 0 0.25rem 0; color: inherit; }
#services .col-md-6 p { margin: 0 0 0.5rem 0; color: var(--muted); }

/* Ensure image column stays independent and centered */
#services .col-md-6.text-center { align-items: center; }
#services .col-md-6.text-center img {
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

@media (max-width: 767.98px) {
  #services .col-md-6 { padding: 0.5rem 0; }
  #services .col-md-6.text-center img { max-width: 100%; max-height: 280px; }
}

/* Ensure text left / image right on desktop */
@media (min-width: 768px) {
  #services .col-md-6 { text-align: left; }
  #services .col-md-6.text-center { text-align: right; }
  /* push image to the right edge of its column */
  #services .col-md-6.text-center img { margin-left: auto; margin-right: 0; }
}
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 9998;
}
.scroll-top.is-visible {
  opacity: 0.95;
  transform: translateY(0);
}
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

