/* ROOT & THEME */
:root {
  /* Brand */
  --primary: #2563eb;
  --secondary: #7c3aed;
  --gradient: linear-gradient(135deg, #2563eb, #7c3aed, #9333ea);
  /* Radius */
  --radius-pill: 1000px;
  --radius-md: 16px;
  --radius-sm: 10px;
  /* Spacing */
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  /* Page layout — horizontal gutter only on .container; sections: vertical padding only */
  --page-gutter: 20px;
  --section-pad-y: 80px;
  --section-pad-y-md: 56px;
  --section-pad-y-sm: 40px;
  /* Transition */
  --transition: all 0.25s ease;
}
/* DARK MODE */
:root.dark {
  --bg: #0b0f19;
  --bg-secondary: #070b14;
  --surface: #111827;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(124, 58, 237, 0.5);
}
/* LIGHT MODE */
:root.light {
  --bg: #f8fafc;
  --bg-secondary: #eef2f7;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: #7c3aed4d;
}
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  overflow-x: clip;
}
body.nav-open {
  overflow: hidden;
}

main {
  overflow-x: clip;
}
a{
  text-decoration: none;
}
/* CONTAINER — sole source of left/right page gutter (reuse on all pages) */
.container,
.nav-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

@media (max-width: 768px) {
  :root {
    --page-gutter: 12px;
    --section-pad-y: 56px;
    --section-pad-y-md: 48px;
    --section-pad-y-sm: 36px;
  }
}

@media (max-width: 480px) {
  :root {
    --page-gutter: 10px;
    --section-pad-y-sm: 32px;
  }
}
/* nevbar */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
/*    navbar         */
#mainHeader {
  position: fixed;
  top: 0;
  width: 100%;
  transition: var(--transition);
  z-index: 1000;
  /* backdrop-filter: blur(60px); */
  background: var(--surface);
}
#mainHeader.hide {
  transform: translateY(-100%);
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-container{
  background: var(--surface);
}
.logo {
  font-size: var(--space-md);
  font-weight: var(--space-lg);
}
.logo img {
  font-size: var(--space-md);
  padding: 12px;
  transition: var(--transition);
}
.logo img:hover {
  transform: translateY(-3px);
}
.navbar {
  display: flex;
  align-items: center;
  text-align: center;
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 30px;
}
.nav-menu li {
  text-transform: capitalize;
  list-style: none;
  transition: var(--transition);
  text-decoration: none;
}
.nav-item a {
  color: var(--text);
  font-size: var(--space-md);
  text-decoration: none;
}
.nav-link {
  font-weight: 600;
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--text-muted);
  border-bottom: 2px dashed var(--primary);
}
.nav-link.active {
  color: var(--text-muted);
  border-bottom: 2px dashed var(--primary);
  transition: var(--transition);
  scroll-behavior: smooth;
}
.nav-link__icon {
  display: none;
}
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  margin: 0;
  flex-shrink: 0;
  z-index: 1002;
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0;
  border: none;
  border-radius: 2px;
  background-color: var(--text, #0f172a);
  -webkit-transition: transform 0.3s ease, opacity 0.3s ease;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active .bar-1 {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar-2 {
  opacity: 0;
}
.hamburger.active .bar-3 {
  transform: translateY(-8px) rotate(-45deg);
}
/* this section for the theme */
.theme-toggle-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--gradient);
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--bg);
}
.theme-toggle-btn svg {
  fill: currentColor;
}
/* Mobile / tablet nav — hamburger + slide-in menu */
@media (max-width: 1024px) {
  .header__container {
    gap: 8px;
  }

  .logo {
    flex-shrink: 0;
  }

  .logo img {
    height: 56px;
    padding: 8px;
  }

  .navbar {
    margin-left: auto;
    flex-shrink: 0;
  }

  .dropdown {
    flex-shrink: 0;
    z-index: 1002;
    position: relative;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 88px var(--page-gutter) 40px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(14px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-100%);
    transition:
      transform 0.35s ease,
      opacity 0.35s ease,
      visibility 0.35s ease;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
    max-width: 420px;
    text-align: left;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--surface);
    box-shadow: none;
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease,
      z-index 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-menu li:not(:first-child) .nav-link {
    border-top: none;
  }

  .nav-menu li:first-child .nav-link {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .nav-menu li:last-child .nav-link {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .nav-menu li:only-child .nav-link {
    border-radius: var(--radius-md);
  }

  .nav-link__main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }

  .nav-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    transition:
      background 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;
  }

  .nav-link__label {
    flex: 1;
    min-width: 0;
  }

  .nav-link::after {
    content: "→";
    flex-shrink: 0;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .nav-menu li:not(:first-child) .nav-link:hover,
  .nav-menu li:not(:first-child) .nav-link.active {
    margin-top: -1px;
    border-top: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border));
  }

  .nav-menu li:not(:first-child) .nav-link.active {
    border-top-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  }

  .nav-link:hover {
    position: relative;
    z-index: 1;
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  }

  .nav-link:hover .nav-link__icon {
    color: var(--bg);
    background: var(--gradient);
    transform: scale(1.05);
  }

  .nav-link:hover::after {
    color: var(--primary);
    transform: translateX(3px);
  }

  .nav-link.active {
    position: relative;
    z-index: 1;
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  }

  .nav-link.active .nav-link__icon {
    color: var(--bg);
    background: var(--gradient);
  }

  .nav-link.active::after {
    color: var(--primary);
  }

  .nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 48px;
  }

  .dropdown-menu {
    right: 10px;
    top: 60px;
    width: 160px;
  }
}
/*BUTTON*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}
/* Responsive Button */
@media (max-width: 640px) {
  .btn {
    padding: 12px 22px;
    font-size: 14px;
  }
}
/*INPUT*/
.input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}
/* Hover */
.input:hover {
  border-color: var(--border-hover);
  box-shadow: 0 5px 20px rgba(124, 58, 237, 0.15);
}
/* Focus */
.input:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/*CARD*/
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  transition: var(--transition);
}
/* Hover */
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
}
/* Responsive Card */
@media (max-width: 640px) {
  .card {
    padding: var(--space-md);
  }
}
/*TEXT*/
h1 {
  font-size: 3rem;
  font-weight: 700;
}
p {
  color: var(--text-muted);
  line-height: 1.7;
}
/* Responsive Typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2.2rem;
  }
}

/*UTILITIES*/
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}
/*Cards Grid System*/
.cards-grid {
  display: grid;
  gap: 24px;
  /* Mobile First → 1 column */
  grid-template-columns: 1fr;
}

/*Tablet (≥768px) → 2 cards*/
@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/*Laptop (≥1024px) → 3 cards*/
@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
/*Desktop (≥1280px) → 4 cards*/
@media (min-width: 1280px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}
/* footer section */
#site-footer {
  margin-top: 56px;
  padding-top: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer {
  position: relative;
  background: var(--bg-secondary);
  padding: 56px 0 30px;
  margin-top: 56px;
  z-index: 1;
  box-shadow: 0 -16px 40px -12px rgba(0, 0, 0, 0.35);
}

#site-footer .footer {
  margin-top: 0;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0.9;
}

:root.light .footer {
  box-shadow: 0 -12px 32px -12px rgba(15, 23, 42, 0.12);
}
.footer_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}
.logo_footer {
  display: flex;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}
.footer_brand p {
  font-size: 14px;
  margin-bottom: 20px;
}
.footer_brand img {
  width: 250px;
  height: auto;
  transition: var(--transition);
}
.footer_brand img:hover {
  transform: scale(1.1);
}
.footer__links h4 {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
  font-size: 18px;
}
.footer__links h4::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--gradient);
}
.footer__links h4::before {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 8px;
  height: 3px;
  background: black;
  z-index: 1;
  animation: after 2s linear infinite;
}
@keyframes after {
  0% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(30px);
  }
  100% {
    transform: translateX(70px);
  }
}
.footer__links ul {
  list-style: none;
}
.footer__links li {
  margin-bottom: 12px;
}
.footer__links a {
  color: var(--texy);
  transition: var(--transition);
  font-size: 14px;
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--text-muted);
  border-bottom: 2px dashed var(--primary);
}
.footer__contact {
  margin-right: 50px;
}
.footer__contact p {
  margin-bottom: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__contact i {
  color: var(--primary);
  width: 20px;
}
.socials {
  display: flex;
  gap: 16px;
}
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--bg);
  border-radius: 50%;
  transition: var(--transition);
  text-decoration: none;
}
.socials a:hover {
  color: var(--text);
  transform: translateY(-2px);
}
.socials img {
  width: 30px;
  height: 30px;
  background: transparent;
}
.socials a:hover img {
  color: var(--text);
}
.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.footer__bottom p {
  font-size: 13px;
}

/* To Top */
.to-top{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .3s ease;
  z-index: 999;
}
.to-top svg{
  fill: var(--bg);
}
.to-top:hover{
  transform: translateY(-5px);
}
.to-top.active{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* small scren  */
@media (max-width: 480px) {
  .footer {
    padding: 40px 0;
  }

  #site-footer {
    margin-top: 40px;
  }

  .footer_grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left;
}

  .footer_brand img {
    width: 100%;
    max-width: 220px;
    margin: auto;
}

  .footer__contact {
    margin-right: 0;
  }
  .footer__contact p {
    justify-content: left;
    flex-wrap: wrap;
    text-align: center;
  }
  .footer__links h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer__links h4::before {
    left: 0;
  }
}
@media (max-width: 768px) {
  .footer_grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }
  .footer_brand img {
    width: 100%;
    max-width: 250px;
}
  .socials {
    justify-content: left;
  }
  .footer__contact {
    margin-right: 0;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .footer_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .footer__contact {
    margin-right: 0;
  }
}
@media (min-width: 1025px) {
  .footer_grid {
    grid-template-columns: repeat(4, 1fr);
}
}

/* Shared services UI */
.services-preview-more {
  text-align: center;
  margin-top: var(--space-lg);
}
.service-card .card_icon i {
  font-size: 2.25rem;
  color: var(--secondary);
}
.services-cta-block {
  text-align: center;
  padding: var(--space-lg) 0;
}
.services-cta-block h2 {
  margin-bottom: var(--space-md);
}
.services-cta-block p {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
}
.service-chip:hover {
  border-color: var(--border-hover);
  color: var(--primary);
}

.btn--sm { padding: 8px 18px; font-size: 1.05rem; border-radius: var(--radius-sm, 6px); }

/* FAQ Section */
.faq-section {
  padding-block: var(--space-2xl);
  background: var(--surface);
  position: relative;
  z-index: 1;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: color-mix(in srgb, var(--surface) 50%, var(--bg) 50%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}
