/* ====== Axion Inspired Theme ====== */
:root {
    --bg-dark: #000000;
    --bg-secondary: #1C1C1C;
    --text-primary: #FFFFFF;
    --text-secondary: #A9A4C2;
    --accent-gradient: linear-gradient(90deg, #3C72FF, #00E5FF);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-primary: 'Poppins', sans-serif;
    --nav-height: 80px;
    --bg:#0a0c0f; --bg2:#0f1117; --bg3:#141720; --surface:#181c26;
    --border:#1e2435; --border2:#252c40;
    --green:#00ff88; --green-dim:#00cc6a; --cyan:#00d4ff;
    --purple:#7c6aff; --orange:#ff6b35; --yellow:#ffd166; --red:#ff4d6d;
    --text:#c8d0e0; --text-dim:#7a8299; --text-muted:#4a5170;
    --mono:'JetBrains Mono',monospace; --sans:'Inter',sans-serif;
}

/* Light Theme */
[data-theme="light"] {
    --bg-dark: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --text-primary: #000000;
    --text-secondary: #666666;
    --border-color: rgba(0, 0, 0, 0.1);
}

/* ====== General & Reset Styles ====== */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-primary); margin: 0; padding-top: 80px; background-color: var(--bg-dark); color: var(--text-primary); line-height: 1.7; font-size: 16px; overflow-x: hidden; transition: background-color 0.3s ease, color 0.3s ease; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 70px 0; position: relative; }
h1, h2, h3, h4 { font-weight: 600; margin: 0 0 1rem 0; }
h1 {font-size: 1rem;}
h2 { font-size: clamp(2rem, 5vw, 3rem); text-align: center; margin-bottom: 60px; }
p { color: var(--text-secondary); margin: 0 0 1rem 0; }
.animated-section { opacity: 0; transform: translateY(30px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.animated-section.is-visible { opacity: 1; transform: translateY(0); }

.cta-button { display: inline-block; background: var(--accent-gradient); color: white; padding: 12px 28px; text-decoration: none; border-radius: 5px; font-weight: 600; transition: all 0.3s; border: none; cursor: pointer; }
.cta-button:hover { filter: brightness(1.2); transform: translateY(-2px); }
.cta-button.secondary { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--border-color); }

/* ====== Hero Section ====== */
.hero-section { height: 80vh; display: flex; align-items: center; text-align: center; padding: 6px 20px; position: relative; background-image: url('/static/images/video-fallback.jpg'); background-size: cover; background-position: center; }
.hero-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.6; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, transparent, var(--bg-dark) 80%); z-index: -1; }
.hero-content h1 { font-size: clamp(3rem, 7vw, 5rem); line-height: 1.2; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 40px; }
.hero-cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
    .index-hero h1{
        font-size: 3.5rem;
    }
/* ====== Scrolling Card Carousel ====== */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-320px * 6)); }
}
.carousel-section { padding: 40px 0; overflow: hidden; position: relative; }
.carousel-section::before, .carousel-section::after { content: ''; position: absolute; top: 0; height: 100%; width: 100px; z-index: 2; }
.carousel-section::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.carousel-section::after { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }
.carousel-wrapper { display: flex; gap: 20px; width: calc(320px * 12); animation: scroll 30s linear infinite; }
.carousel-wrapper:hover { animation-play-state: paused; }
.carousel-card { flex-shrink: 0; width: 300px; height: 400px; border-radius: 15px; overflow: hidden; }
.carousel-card img { width: 100%; height: 100%; object-fit: cover; }

/* ====== AI Solutions Section ====== */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.solution-item { text-align: center; }
.solution-icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; background-color: var(--bg-secondary); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; }
.solution-icon svg { width: 32px; height: 32px; color: var(--text-primary); }

/* ====== Features Section ====== */
.feature-row { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: center; margin-bottom: 80px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-image img { width: 100%; border-radius: 15px; }
.feature-content ul { list-style: none; padding: 0; margin: 20px 0; }
.feature-content li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.feature-content li::before { content: '✓'; color: #00E5FF; position: absolute; left: 0; font-weight: bold; }

/* ====== Stats Section ====== */
.stats-section { background-size: cover; background-position: center; position: relative; }
.stats-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.7); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; text-align: center; position: relative; z-index: 1; }
.stat-item .stat-number { font-size: 3.5rem; font-weight: 600; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-item p { margin-top: 10px; }

/* ====== FAQ & Footer ====== */
.faq-container details { background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 5px; margin-bottom: 10px; }
.faq-container summary { padding: 20px; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq-container summary::after { content: '+'; position: absolute; right: 20px; font-size: 1.5rem; }
.faq-container details[open] summary { color: #00E5FF; }
.faq-container details[open] summary::after { content: '-'; }
.site-footer { background-color: var(--bg-secondary); padding: 60px 0 20px 0; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; text-align: center; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--border-color); }
.social-icons { display: flex; gap: 20px; }
.social-icons a { color: var(--text-secondary); transition: color 0.3s ease; }
.social-icons a:hover { color: var(--text-primary); }
.social-icons svg { width: 24px; height: 24px; fill: currentColor; }

/* ====== Contact Section & Form ====== */
#contact { text-align: center; }
#contact p { max-width: 500px; margin-left: auto; margin-right: auto; }
#contact-form-wrapper { max-width: 500px; margin: 30px auto 0 auto; }
.form-group { margin-bottom: 20px; }
input[type="text"], input[type="email"], textarea { width: 100%; padding: 15px; border: 1px solid var(--border-color); background-color: var(--bg-secondary); color: var(--text-primary); border-radius: 5px; font-size: 1rem; font-family: var(--font-primary); }
textarea { min-height: 150px; resize: vertical; }
.thank-you-message { padding: 40px; border: 1px solid var(--border-color); border-radius: 10px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ====== Service Page ====== */
.page-header { padding: 80px 0; text-align: center; background: var(--bg-secondary); }
.page-header h1 { font-size: 3.5rem; margin-bottom: 10px; }
.page-header .breadcrumb { color: var(--text-secondary); }
.page-header .breadcrumb span { color: #3C72FF; }

.service-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.service-card-item { border-radius: 15px; overflow: hidden; position: relative; border: 1px solid var(--border-color); min-height: 380px; }
.card-bg-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0.5; transition: opacity 0.3s, transform 0.3s; }
.service-card-item:hover .card-bg-image { opacity: 0.7; transform: scale(1.05); }
.card-content { background: linear-gradient(to top, rgba(15, 11, 33, 0.9), transparent); padding: 30px; padding-top: 50px; position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
[data-theme="light"] .card-content { background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent); }
.card-content h2 { font-size: 2.2rem; margin-bottom: 10px;  color: aqua; }
.card-content h3 { font-size: 1.6rem; }
.card-content ul { list-style: none; padding: 0; margin: 20px 0; }
.card-content li { padding-left: 25px; position: relative; margin-bottom: 8px; }
.card-content li::before { content: '✓'; color: #00E5FF; position: absolute; left: 0; }
.arrow-button { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--accent-gradient); color: white; text-decoration: none; font-size: 1.5rem; margin-top: 20px; }

/* ====== Steps Section ====== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: center; }
.step-number { width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.2rem; }

/* ====== Why Choose Section ====== */
.why-choose-grid { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: center; background-color: var(--bg-secondary); padding: 50px; border-radius: 15px; }
.why-choose-content ul { list-style: none; padding: 0; margin-top: 30px; }
.why-choose-content li { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.why-choose-content .icon { flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; background-color: var(--bg-dark); border: 1px solid var(--border-color); }
.why-choose-image img { width: 100%; border-radius: 10px; }

/* ====== Testimonials Section ====== */
.testimonials-section { background-color: var(--bg-secondary); text-align: center; }
.testimonial-content { max-width: 800px; margin: 0 auto; }
.quote-icon { width: 100px; height: 60px; margin: 0 auto 30px; border-radius: 40%; background-color: var(--bg-dark); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 3rem; line-height: 1; font-family: serif; color: var(--text-secondary); }
.testimonial-content h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.4; margin-bottom: 30px; }
.author-name { font-weight: 600; color: var(--text-primary); margin-bottom: 0.25rem; }
.author-title { color: var(--text-secondary); }

/* ====== Client Logos ====== */
.client-logos { margin-top: 80px; text-align: center; }
.client-logos h4 { color: var(--text-secondary); font-weight: 500; margin-bottom: 40px; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 40px; align-items: center; }
.logo-grid img { max-width: 100%; height: auto; filter: grayscale(1) brightness(0.7); opacity: 0.7; transition: all 0.3s ease; }
.logo-grid img:hover { filter: none; opacity: 1; }

/* ====== Contact Page ====== */
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 60px; }
.contact-info-item { text-align: center; }
.contact-icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; background-color: var(--bg-secondary); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; }
.contact-icon svg { width: 32px; height: 32px; stroke: var(--text-primary); }

.contact-form-section { display: grid; grid-template-columns: 1fr; gap: 50px; }
.contact-form-wrapper { background-color: var(--bg-secondary); padding: 40px; border-radius: 15px; border: 1px solid var(--border-color); }

/* ====== About Page ====== */
.about-hero { text-align: center; padding: 60px 0; }
.about-hero p { max-width: 700px; margin: 0 auto; font-size: 1.1rem; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 60px; }
.value-item { text-align: center; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 60px; }
.team-member { border-radius: 15px; overflow: hidden; border: 1px solid var(--border-color); }
.team-member img { width: 100%; height: 410px; object-fit: cover; }
.team-info { padding: 20px; background-color: var(--bg-secondary); text-align: center; }
.team-info h3 { margin-bottom: 5px; }
.team-info p { margin: 0; }

/* ====== Media Queries ====== */
@media (min-width: 768px) {
    .feature-row { grid-template-columns: 1fr 1fr; }
    .feature-row.reverse .feature-content { order: 2; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .why-choose-grid { grid-template-columns: 1fr 1fr; }
    .contact-form-section { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .hero-cta-buttons { flex-direction: column; align-items: center; }
    .hero-cta-buttons .cta-button { width: 100%; max-width: 300px; text-align: center; }
    .service-cards-grid { grid-template-columns: 1fr; }
    section {padding: 60px 0; }
    .index-hero-margin {margin-top: 5rem;}
    .index-hero h1{
        font-size: 2.2rem;
    }
}
#loading {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
}


.htmx-request #loading,
.htmx-request .htmx-indicator {
    opacity: 1 !important;
}

.htmx-indicator {
  pointer-events: none;     
  z-index: 9999;      
  opacity: 0;                
  transition: opacity 0.3s;
}


.htmx-request .htmx-indicator {
  opacity: 1;
  pointer-events: none;     
}

/* ====== Navigation ====== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  width: 100%;
  background: var(--nav-bg, #111);
  color: var(--nav-color, #fff);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.main-nav.scrolled {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

[data-theme="light"] .main-nav.scrolled {
  background: rgba(255, 255, 255, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0.75rem 1rem;
}

/* Logo */
.nav-logo { font-family:var(--mono); font-size:0.85rem; color:var(--green); letter-spacing:0.1em; text-decoration:none; }
.nav-logo span { color:var(--text-dim); }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  z-index: 1001;
}

/* Links */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent, #3c72ff);
}

/* Right side controls */
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--nav-icon-color);
  fill: var(--nav-icon-color);
}

/* Burger Menu */
.burger-menu {
  display: none; 
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 25px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  gap: 6px;
}


.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  margin: 2px 0;
  border-radius: 2px;
  background-color: var(--nav-icon-color);
  outline: 1.8px solid var(--burger-outline-color);
  transition: background-color 0.3s ease, outline-color 0.3s ease;
}




.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}


/* Theme variables */
html[data-theme="light"] {
  --nav-icon-color: #000;
  --burger-outline-color: #000;
}

html[data-theme="dark"] {
  --nav-icon-color: #fff;
  --burger-outline-color: #fff;
}


/* ====== Mobile Overlay ====== */
@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px; /* directly below nav bar */
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--nav-icon-color, --text-secondary);
    padding: 20px;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
  }

  .nav-links.mobile-active {
    display: flex;
    justify-content: center; /* center everything */
    align-items: center;
    height: auto;
  }

  .nav-links a {
    font-size: 1.2rem;
  }
}

/* ====== Desktop ====== */
@media (min-width: 768px) {
  .burger-menu { display: none; }
  .nav-links {
    display: flex !important;
    align-items: center;
    gap: 30px;
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .nav-links a {
    color: var(--text-secondary);
  }
  .nav-links a:hover {
    color: var(--text-primary);
  }
}
html[data-theme="light"] {
  --nav-icon-color: #000;
  --nav-bg: #e9e0e0; /* softer white */
  --footer-bg: #d9cfcf; /* slightly darker footer */
}

html[data-theme="dark"] {
  --nav-icon-color: #eee4e4;
  --nav-bg: #111;
  --footer-bg: #0a0a0a;
}


.theme-toggle svg {
  stroke: var(--nav-icon-color);
  fill: var(--nav-icon-color);
}
html[data-theme="light"] {
  --nav-bg: #e9dfdf;
  --bg-light: #e3d4d4;
  --text-primary: #000;
}
footer {
  background-color: var(--footer-bg);
  color: var(--text-primary);
}
html[data-theme="light"] {
  --footer-bg: #d5c9c9;
}

html[data-theme="dark"] {
  --footer-bg: #0a0a0a;
}
/* Theme variables */
html[data-theme="light"] {
  --overlay-bg: #ffffff;
  --menu-text: #000000;
  --active-link: #3c72ff;
}

html[data-theme="dark"] {
  --overlay-bg: #000000;
  --menu-text: #ffffff;
  --active-link: #3c72ff;
}

/* Mobile overlay menu */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px; /* below navbar */
    left: 0;
    right: 0;
    height: calc(100vh - 80px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--overlay-bg);
    color: var(--menu-text);
    padding: 20px;
    gap: 20px;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .nav-links.mobile-active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
    color: var(--menu-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .nav-links a.active {
    color: var(--active-link);
  }

  .nav-links a:hover {
    color: var(--active-link);
  }
}
@media (min-width: 768px) {
  .nav-links a {
    color: var(--menu-text);
  }

  .nav-links a.active,
  .nav-links a:hover {
    color: var(--active-link);
  }
}
@media (max-width: 767px) {
    .animated-service-section {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: opacity 0.7s ease-out, transform 0.4s ease-out;
    }
}
/* ======================================================
   ADDITIONS TO style.css
   Append these rules to the bottom of your existing style.css
   ====================================================== */

/* ── Form labels ─────────────────────────────────────── */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-primary);
}

/* ── Form error block returned by Flask ──────────────── */
.form-error-block {
    background: rgba(255, 77, 77, .1);
    border: 1px solid rgba(255, 77, 77, .35);
    border-radius: 10px;
    padding: 20px 24px;
    color: var(--text-primary);
}
.form-error-block ul {
    margin: 10px 0 0 20px;
    padding: 0;
}
.form-error-block li {
    margin-bottom: 6px;
    color: #ff7070;
}

/* ── Service-interest select ─────────────────────────── */
select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-primary);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
select:focus {
    outline: 2px solid #3C72FF;
    outline-offset: 2px;
}

/* ── Thank-you confirmation block ────────────────────── */
.thank-you-message svg {
    display: block;
    margin: 0 auto 20px;
}

/* ── Contact office cards ────────────────────────────── */
.contact-office-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3C72FF;
    font-weight: 600;
}
/* Reduce gap between offices and contact form sections */
.offices-section {
    padding-bottom: 30px !important;
}

.contact-section {
    padding-top: 30px !important;
}

/* Reduce heading paragraph spacing */
.offices-section > .container > p,
.contact-section > .container > p {
    margin-bottom: 35px !important;
}

/* Better form/map alignment */
.contact-form-section {
    margin-top: 20px;
}