/* ===============================
   Base Styles
   =============================== */
:root {
  --bg-gradient: linear-gradient(180deg, #0b0f2e 0%, #1a1040 50%, #2b1c56 100%);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-bg-hover: rgba(255, 255, 255, 0.08);
  --text-color: #fff;
  --subtext-color: #94a3b8;
  --accent-blue: #29b3f0;
  --max-width: 1100px;
}

[data-theme="light"] {
  --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  --card-bg: #ffffff;
  --card-bg-hover: #f1f5f9;
  --text-color: #0f172a;
  --subtext-color: #475569;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-gradient);
  color: var(--text-color);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

html, body {
  transition: background-color 0.4s ease, color 0.3s ease;
}

h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 2px dashed var(--accent-blue);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===============================
   Navbar
   =============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 12, 24, 0.4);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 100px;
  position: relative;
}

/* === Nav logo alignment fix === */
.logo-container {
  display: flex;
  align-items: center;
  gap: 5px;          /* reduce spacing between logo + text */
}

.logo-container img,
.logo-icon {
  margin: 0;         /* remove any unintended margin */
  padding: 0;        /* remove extra padding */
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent-blue);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: 3px solid var(--accent-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  transition: background-color 0.4s ease, color 0.3s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background-color: rgba(41,179,240,0.15);
}

[data-theme="light"] .theme-toggle {
  border-color: #d946ef;
  color: #d946ef;
}

[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .theme-toggle:focus-visible {
  background-color: rgba(217,70,239,0.15);
}

.hamburger {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 769px) {
  .hamburger { display: none; }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    flex-direction: column;
    align-items: flex-start;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .main-nav.open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
}

.btn-cta {
  background: var(--accent-blue);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.btn-cta:hover {
  background: #1c9edc;
}

/* ===============================
   Hero
   =============================== */
.hero {
  position: relative;
  padding: 5rem 1rem;
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 4s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero .container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.hero-content {
  max-width: 700px;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  background: linear-gradient(270deg, #29b3f0, #d946ef, #29b3f0); /* looping gradient */
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* required for Safari/Chrome */
  color: transparent;
  animation: gradientTextMove 8s ease infinite;
}

@keyframes gradientTextMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
}

.hero .subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--subtext-color);
}

.cta-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
}

/* ===============================
   Services
   =============================== */
 /* Service Cards Styling */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  position: relative;
  background: var(--card-bg);
  transition: background 0.3s ease;
}

.service-card:hover {
  background: var(--card-bg-hover);
}

.service-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--subtext-color);
}

/* ===============================
   About
   =============================== */
.about {
  background: none;
  padding: 4rem 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.stat-label {
  color: var(--subtext-color);
}

/* ===============================
   FAQ
   =============================== */
.faq {
  padding: 4rem 1rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
}

.faq-question {
  display: flex;
  justify-content: center;   /* center text + chevron together */
  align-items: center;
  gap: 0.5rem;               /* space between text and chevron */
  padding: 1rem 0;
  cursor: pointer;
  text-align: center;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding-top: 0.5rem;
  color: var(--subtext-color);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* ===============================
   Testimonials
   =============================== */
.testimonial-carousel {
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--card-bg);
}

/* ===============================
   Contact
   =============================== */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
}

.honeypot {
  display: none;
}

.form-success {
  margin-top: 1rem;
  color: var(--accent-blue);
}

/* ===============================
   Footer
   =============================== */
.footer {
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
}

/* ===============================
   Hero CTA Adjustments (injected)
   =============================== */
.hero .cta-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;              /* Increased spacing between buttons */
  margin-top: 1.5rem;
}

.hero .cta-buttons .btn {
  font-size: 1.05rem;       /* Slightly larger text */
  font-weight: 600;         /* Stronger emphasis */
  padding: 0.85rem 2rem;    /* Roomier buttons */
  letter-spacing: 0.5px;    /* Improve readability */
  text-transform: uppercase;
}

.hero .subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--subtext-color, #94a3b8);
  margin: 1rem 0;
  text-align: left;
  line-height: 1.6;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;                /* Spread out icons + text more */
  font-size: 1.05rem;
  justify-content: flex-start;
}

.hero-benefits li i {
  font-size: 1.4rem;
  color: var(--accent-blue, #29b3f0);

}

/* Center all top-level section titles and add a decorative line underneath */
section > h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding-bottom: 0.5rem;
}
section > h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), #d946ef);
    border-radius: 1.5px;
}
