:root {
    --bg-color: #06080D;
    --accent-color: #F0A500;
    --accent-glow: rgba(240, 165, 0, 0.5);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-strong: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    --section-padding-desktop: 8rem 6rem;
    --section-padding-mobile: 5rem 1.5rem;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-speed: 0.3s;
}

/* ─── Base ─────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Start visible — JS adds .js-ready then .loaded for the fade-in */
    opacity: 1;
    transition: opacity 1s var(--ease-out);
}

/* JS sets this class immediately, then loaded fades in */
body.js-ready { opacity: 0; }
body.loaded   { opacity: 1; }

::selection {
    background-color: rgba(240, 165, 0, 0.25);
    color: var(--accent-color);
}

h1, h2, h3, h4,
.brand-name, .featured-title, .section-title,
.stat-big-number, .quote, .cert-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) var(--ease-out);
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

.container { max-width: 1400px; margin: 0 auto; width: 100%; }

.section-padding { padding: var(--section-padding-desktop); }

@media (max-width: 768px) {
    .section-padding { padding: var(--section-padding-mobile); }
}

/* ─── Liquid Glass ──────────────────────────────────────── */
.liquid-glass, .liquid-glass-strong {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1.5rem;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.liquid-glass-strong {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.2), 0 20px 50px rgba(0,0,0,0.6);
}

.liquid-glass::before, .liquid-glass-strong::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent 40%, transparent 60%, rgba(255,255,255,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    90%       { opacity: 0.9; }
    92%       { opacity: 1; }
    94%       { opacity: 0.9; }
}

@keyframes pulse-amber {
    0%   { box-shadow: 0 0 0 0 rgba(240,165,0,0.4); }
    70%  { box-shadow: 0 0 0 15px rgba(240,165,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(240,165,0,0); }
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.flicker     { animation: flicker 3s infinite; }
.pulse-amber { animation: pulse-amber 2s infinite; }
.float       { animation: float 4s ease-in-out infinite; }

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    transition: all 0.8s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ─── Scroll Progress ───────────────────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: var(--accent-color);
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    z-index: 10000;
}

/* ─── Navbar ────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 1.5rem; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
    transition: background 0.3s;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
}

.zap-icon {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zap-icon svg { width: 22px; height: 22px; flex-shrink: 0; }

.brand-name { font-size: 1.5rem; letter-spacing: -0.02em; }

.nav-center.pill { border-radius: 9999px; padding: 0.5rem 1rem; }

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover { color: var(--accent-color); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-block;
    border: none;
    font-family: var(--font-body);
}

.btn-solid { background: var(--accent-color); color: var(--bg-color); }
.btn-solid:hover { background: #fff; transform: translateY(-2px); }

.btn-glass-strong {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.pill { border-radius: 9999px; }

/* ─── Mobile Menu Toggle ────────────────────────────────── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
    display: block;
}

@media (max-width: 1024px) {
    .nav-center { display: none; }
    .mobile-menu-toggle { display: flex; }
    .navbar .btn-solid { display: none; }
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(240,165,0,0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-overlay-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--bg-color) 100%);
    z-index: -1;
}

.hero-content { text-align: center; z-index: 1; }

.label {
    display: inline-block;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 8rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-stats {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-stats {
        position: relative;
        bottom: 0; left: 0;
        transform: none;
        flex-direction: column;
        margin-top: 4rem;
        padding: 0 1.5rem;
    }
}

/* ─── Trust Bar ─────────────────────────────────────────── */
.trust-bar {
    padding: 1.5rem 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.marquee-container { overflow: hidden; white-space: nowrap; }

.marquee {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.4);
    margin: 0 2rem;
}

.marquee .separator { color: var(--accent-color); margin: 0; }

/* ─── Services ──────────────────────────────────────────── */
.services-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.featured-card {
    height: 650px;
    position: relative;
    overflow: hidden;
}

.featured-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s var(--ease-out);
}

.featured-card:hover .featured-bg { transform: scale(1.04); }

.featured-content {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    z-index: 1;
}

.featured-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,8,13,0.8) 0%, transparent 50%);
}

.label-amber {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.featured-title { font-size: 3rem; }

.section-title { font-size: 3.5rem; margin-bottom: 1.5rem; }
.section-title.centered { text-align: center; }

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 2.5rem;
    transition: transform 0.3s var(--ease-out);
}

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

/* SVG icon containers */
.service-icon {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}
.service-icon svg { width: 2rem; height: 2rem; }

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 600;
}

.service-desc { color: var(--text-secondary); font-size: 0.95rem; }

@media (max-width: 1200px) {
    .services-layout { grid-template-columns: 1fr; }
    .featured-card { height: 400px; }
}

/* ─── Stats Row ─────────────────────────────────────────── */
.stats-row {
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.stat-item {
    padding: 4rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border-color);
}
.stat-item:last-child { border-right: none; }

.stat-big-number {
    font-size: 6rem;
    color: var(--accent-color);
    display: block;
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-small-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item { border-bottom: 1px solid var(--border-color); }
    .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { border-right: none; }
    .stat-item:nth-child(3) { border-bottom: 1px solid var(--border-color); }
}

/* ─── Timeline ──────────────────────────────────────────── */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-content { width: 85%; padding: 2.5rem; }

.timeline-icon {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--accent-color);
}
.timeline-icon svg { width: 1.75rem; height: 1.75rem; }

.pulse-node {
    position: absolute;
    left: 50%;
    top: 2.5rem;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--accent-color);
    animation: pulse-amber 2s infinite;
}

@media (max-width: 768px) {
    .timeline-line { left: 20px; }
    .timeline-item { justify-content: flex-start; padding-left: 50px; padding-right: 0; }
    .timeline-item.right { padding-left: 50px; }
    .timeline-content { width: 100%; }
    .pulse-node { left: 20px; }
}

/* ─── Projects ──────────────────────────────────────────── */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.view-all { color: var(--accent-color); font-weight: 600; font-size: 1.1rem; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.bento-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
}

.bento-item.tall { grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }

.bento-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s var(--ease-out);
}

.bento-item:hover .bento-img { transform: scale(1.05); }

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,8,13,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.bento-label { padding: 0.6rem 1.2rem; font-size: 0.85rem; font-weight: 500; }

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .bento-item.tall, .bento-item.wide { grid-row: auto; grid-column: auto; }
}

/* ─── Testimonials ──────────────────────────────────────── */
.testimonials { position: relative; overflow: hidden; }

.ambient-orb {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: var(--accent-color);
    filter: blur(120px);
    opacity: 0.08;
    border-radius: 50%;
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.stars { color: var(--accent-color); margin-bottom: 1.5rem; letter-spacing: 2px; }

.quote { font-size: 1.5rem; margin-bottom: 2rem; flex-grow: 1; }

.divider { height: 1px; background: var(--border-color); margin-bottom: 1.5rem; }

.author { font-size: 0.9rem; color: var(--text-secondary); font-style: normal; }

@media (max-width: 1024px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

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

.faq-item { border-radius: 1rem; }

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

.chevron { transition: transform 0.3s var(--ease-out); flex-shrink: 0; }
.faq-item.active .chevron { transform: rotate(180deg); }

.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out); }

.faq-inner { padding: 0 2rem 2rem; color: var(--text-secondary); }

/* ─── Contact ───────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.info-blocks {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-block {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-color);
}
.info-icon svg { width: 1.3rem; height: 1.3rem; }

.info-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.info-value { font-weight: 600; }

.form-card { padding: 3rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: white;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s;
}

.form-group select option { background: #1a1a2e; color: white; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent-color); }

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.full-width { width: 100%; }
.hidden { display: none; }

.success-content { text-align: center; padding: 2rem 0; }

.success-icon {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
.success-icon svg { width: 48px; height: 48px; }

@media (max-width: 1024px) {
    .contact-layout { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 600px) {
    .info-blocks { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-container {
    padding: 0;
    margin-bottom: 2rem;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
}
.footer-brand .logo-container::before { display: none; }

.footer-contact { margin-bottom: 2rem; color: var(--text-secondary); }

.subscribe-form { display: flex; gap: 0.5rem; max-width: 400px; }

.subscribe-form input {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: white;
    font-family: var(--font-body);
    outline: none;
}

.subscribe-form input:focus { border-color: var(--accent-color); }

.footer-links h4 {
    font-family: var(--font-body);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links ul a { color: var(--text-secondary); font-size: 0.95rem; }
.footer-links ul a:hover { color: var(--accent-color); }

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright { font-size: 0.9rem; color: var(--text-secondary); }
.cert-text { color: var(--accent-color); font-size: 1.1rem; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* ─── Mobile Menu (injected by JS) ─────────────────────── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out);
    border-radius: 0;
}

.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-nav-links { text-align: center; }

.mobile-nav-links li {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out);
}

.mobile-menu.active .mobile-nav-links li { opacity: 1; transform: translateY(0); }
.mobile-menu.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 3rem;
    color: white;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { transform: translateY(-8px) rotate(-45deg); }
