:root {
    --site-bg: #08111f;
    --site-surface: rgba(9, 18, 32, 0.76);
    --site-surface-strong: rgba(10, 20, 34, 0.92);
    --site-card: rgba(255, 255, 255, 0.055);
    --site-card-hover: rgba(255, 255, 255, 0.085);
    --site-border: rgba(255, 255, 255, 0.12);
    --site-border-strong: rgba(115, 185, 255, 0.32);
    --site-text: #f5f7fb;
    --site-text-muted: #a4b3c8;
    --site-heading: #ffffff;
    --site-accent: #7dd3fc;
    --site-accent-strong: #38bdf8;
    --site-accent-soft: rgba(125, 211, 252, 0.14);
    --site-shadow: 0 24px 60px rgba(3, 10, 20, 0.34);
    --site-radius: 24px;
    --site-radius-md: 18px;
    --site-radius-sm: 14px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body.futuristic-theme {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.08), transparent 28%),
        linear-gradient(180deg, #07101d 0%, #091423 52%, #07111e 100%) !important;
    color: var(--site-text) !important;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body.futuristic-theme::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 16, 29, 0.32) 0%, rgba(7, 16, 29, 0.78) 56%, rgba(7, 16, 29, 0.94) 100%),
        linear-gradient(90deg, rgba(125, 211, 252, 0.04), transparent 38%, transparent 62%, rgba(45, 212, 191, 0.04));
    pointer-events: none;
    z-index: -1;
}

.video-background {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(3, 8, 16, 0.98), rgba(8, 17, 31, 0.92));
}

.video-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 11, 19, 0.48) 0%, rgba(6, 11, 19, 0.88) 58%, rgba(6, 11, 19, 0.94) 100%),
        radial-gradient(circle at center, rgba(125, 211, 252, 0.05), transparent 46%);
    z-index: 1;
}

.video-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
    opacity: 0.35;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.16;
    filter: saturate(0.72) brightness(0.48) contrast(1.05) blur(1.5px);
    transform: scale(1.04);
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.video-background.video-ready video {
    opacity: 0.18;
}

.video-background.video-soft video {
    opacity: 0.13;
    filter: saturate(0.65) brightness(0.42) contrast(1.02) blur(2px);
}

body.futuristic-theme .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 16, 29, 0.72) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(2, 6, 14, 0.18);
}

body.futuristic-theme .navbar-container {
    max-width: 1220px;
    padding: 0.9rem 2rem;
}

body.futuristic-theme .navbar-logo img {
    height: clamp(70px, 8vw, 108px);
    max-width: 100%;
    filter: none;
}

body.futuristic-theme .navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

body.futuristic-theme .navbar-menu a {
    color: var(--site-text-muted);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 500;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

body.futuristic-theme .navbar-menu a:hover,
body.futuristic-theme .navbar-menu a.active {
    color: var(--site-text);
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
    transform: translateY(-1px);
    border-bottom: none;
}

body.futuristic-theme .container {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    margin: 0 auto;
    padding: 2rem;
}

body.futuristic-theme main {
    min-height: 72vh;
}

body.futuristic-theme h1,
body.futuristic-theme h2,
body.futuristic-theme h3,
body.futuristic-theme h4 {
    color: var(--site-heading);
    letter-spacing: -0.03em;
}

body.futuristic-theme h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.98;
    margin-bottom: 1.25rem;
}

body.futuristic-theme h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.05;
}

body.futuristic-theme p,
body.futuristic-theme li,
body.futuristic-theme .blog-meta,
body.futuristic-theme .footer p {
    color: var(--site-text-muted);
}

body.futuristic-theme a {
    color: var(--site-accent);
}

body.futuristic-theme a:hover {
    color: #c8eeff;
    text-decoration: none;
}

body.futuristic-theme .hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem;
    border-radius: 32px;
    background:
        linear-gradient(145deg, rgba(10, 20, 34, 0.9), rgba(8, 17, 31, 0.72)),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--site-shadow);
}

body.futuristic-theme .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(125, 211, 252, 0.18), transparent 24%),
        radial-gradient(circle at 85% 20%, rgba(45, 212, 191, 0.08), transparent 18%);
    pointer-events: none;
}

body.futuristic-theme .hero > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.09);
    color: #d5efff;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 860px;
}

.hero-lead {
    max-width: 780px;
    margin: 0 auto 2rem;
    font-size: 1.12rem;
    line-height: 1.78;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero-proof span {
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7e6f5;
    font-size: 0.95rem;
}

.hero-cta,
.main-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

body.futuristic-theme .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #f8fbff 0%, #d6eefc 100%);
    color: #0b1727;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 16px 32px rgba(2, 8, 20, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

body.futuristic-theme .btn:hover {
    transform: translateY(-2px);
    color: #08111f;
    box-shadow: 0 20px 40px rgba(2, 8, 20, 0.28);
}

body.futuristic-theme .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--site-text);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

body.futuristic-theme .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--site-text);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-heading p {
    margin-bottom: 0;
    font-size: 1.02rem;
}

body.futuristic-theme .cards-grid {
    gap: 1.25rem;
}

body.futuristic-theme .card,
body.futuristic-theme .service-card,
body.futuristic-theme .blog-post,
body.futuristic-theme .post,
body.futuristic-theme .about-intro,
body.futuristic-theme .surface-card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-md);
    box-shadow: var(--site-shadow);
    backdrop-filter: blur(14px);
}

body.futuristic-theme .card,
body.futuristic-theme .service-card,
body.futuristic-theme .surface-card {
    padding: 1.75rem;
}

body.futuristic-theme .card:hover,
body.futuristic-theme .service-card:hover,
body.futuristic-theme .blog-post:hover {
    transform: translateY(-4px);
    background: rgba(12, 23, 38, 0.88);
    border-color: var(--site-border-strong);
    box-shadow: 0 28px 70px rgba(2, 8, 20, 0.32);
}

body.futuristic-theme .service-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
        var(--site-surface);
}

body.futuristic-theme .service-top {
    align-items: flex-start;
}

body.futuristic-theme .service-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.16), rgba(45, 212, 191, 0.08));
    border: 1px solid rgba(125, 211, 252, 0.18);
    color: #cfefff;
    font-size: 1.4rem;
    flex-shrink: 0;
}

body.futuristic-theme .service-card h3 {
    margin-bottom: 0.35rem;
}

body.futuristic-theme .service-card p {
    margin-bottom: 0;
}

body.futuristic-theme .service-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    width: 100%;
}

body.futuristic-theme .service-list li {
    padding: 0.7rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-stack {
    display: grid;
    gap: 1.25rem;
}

.compact-section {
    gap: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    padding: 1.35rem 1.4rem;
    border-radius: var(--site-radius-sm);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.stat-value {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--site-heading);
    font-size: 1.55rem;
    font-weight: 700;
}

.cta-section {
    padding: 2.75rem;
    border-radius: 28px;
    text-align: center;
    background:
        linear-gradient(160deg, rgba(9, 18, 32, 0.95), rgba(13, 25, 41, 0.86)),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--site-shadow);
}

.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.portfolio-filter .btn {
    min-width: 0;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portfolio-card img,
.portfolio-placeholder {
    width: 100%;
    height: 220px;
    border-radius: var(--site-radius-sm);
    object-fit: contain;
    object-position: center;
    background: rgba(4, 10, 18, 0.72);
}

.portfolio-card img {
    display: block;
    padding: 0.35rem;
}

.portfolio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    color: var(--site-text-muted);
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--site-accent-soft);
    color: #d8f3ff;
    font-size: 0.84rem;
    font-weight: 600;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.case-study-meta {
    padding: 1rem 1.1rem;
    border-radius: var(--site-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-study-meta strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--site-heading);
    font-size: 0.92rem;
}

.case-study-meta p {
    margin-bottom: 0;
}

.case-study-points {
    margin: 0;
    padding-left: 1rem;
}

.case-study-points li + li {
    margin-top: 0.35rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.info-card {
    padding: 1.5rem;
}

.process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card {
    position: relative;
}

.process-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: rgba(125, 211, 252, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.22);
    color: #d8f3ff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.contact-grid {
    align-items: start;
}

.contact-panel {
    height: fit-content;
}

.contact-list,
.faq-list {
    display: grid;
    gap: 1rem;
}

.contact-item,
.faq-item {
    padding: 1.2rem 1.25rem;
    border-radius: var(--site-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item h3,
.faq-item h3 {
    margin-bottom: 0.35rem;
}

.contact-services {
    margin: 0;
    padding-left: 1rem;
}

.contact-services li + li {
    margin-top: 0.35rem;
}

.contact-captcha {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-captcha-badge {
    font-weight: 700;
    font-size: 1rem;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--site-text);
}

body.futuristic-theme .post {
    padding: 2rem;
}

body.futuristic-theme .post img,
body.futuristic-theme .blog-post img,
body.futuristic-theme .about-image img {
    border-radius: var(--site-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.futuristic-theme .about-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
    padding: 0.4rem;
    background: rgba(4, 10, 18, 0.72);
}

body.futuristic-theme .post .blog-meta {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

body.futuristic-theme input[type="text"],
body.futuristic-theme input[type="email"],
body.futuristic-theme input[type="number"],
body.futuristic-theme input[type="password"],
body.futuristic-theme textarea,
body.futuristic-theme select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--site-text);
    border-radius: 14px;
}

body.futuristic-theme input:focus,
body.futuristic-theme textarea:focus,
body.futuristic-theme select:focus {
    border-color: rgba(125, 211, 252, 0.48);
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.12);
}

body.futuristic-theme .footer {
    margin-top: 4rem;
    background: rgba(6, 12, 22, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.futuristic-theme .legal-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 28px;
    background: var(--site-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--site-shadow);
}

body.futuristic-theme .legal-page section + section {
    margin-top: 2rem;
}

body.futuristic-theme .legal-page h2 {
    margin-bottom: 0.85rem;
}

body.futuristic-theme .legal-page ul {
    margin-top: 0.75rem;
}

body.futuristic-theme .legal-page li + li {
    margin-top: 0.45rem;
}

body.futuristic-theme .legal-page .last-updated {
    color: var(--site-text-muted);
}

.page-intro {
    max-width: 700px;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    body.futuristic-theme .container {
        padding: 1rem;
    }

    body.futuristic-theme .navbar-container {
        padding: 0.85rem 1rem;
    }

    body.futuristic-theme .hero {
        padding: 2.25rem 1.3rem;
        border-radius: 24px;
    }

    .stats-grid,
    .info-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .hero-lead {
        font-size: 1rem;
    }

    body.futuristic-theme .post,
    body.futuristic-theme .card,
    body.futuristic-theme .service-card,
    body.futuristic-theme .surface-card,
    .cta-section {
        padding: 1.35rem;
    }

    body.futuristic-theme .navbar-toggle {
        display: flex !important;
        width: 48px;
        height: 48px;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
    }

    body.futuristic-theme .navbar-toggle span {
        width: 20px;
        height: 2px;
        margin: 3px 0;
        background-color: var(--site-text);
    }

    body.futuristic-theme .navbar-menu {
        display: none !important;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        padding: 0.75rem;
        border-radius: 18px;
        flex-direction: column;
        align-items: stretch;
        background: rgba(7, 16, 29, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 24px 50px rgba(2, 8, 20, 0.35);
    }

    body.futuristic-theme .navbar-menu.active {
        display: flex !important;
    }

    body.futuristic-theme .navbar-menu li {
        width: 100%;
    }

    body.futuristic-theme .navbar-menu a {
        display: block;
        width: 100%;
        border-radius: 12px;
    }

    .hero-cta,
    .main-cta,
    .portfolio-filter,
    .contact-captcha {
        flex-direction: column;
    }

    .hero-cta .btn,
    .main-cta .btn,
    .portfolio-filter .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .video-background video {
        object-position: 62% center;
        opacity: 0.1;
        filter: saturate(0.6) brightness(0.4) contrast(1) blur(2px);
    }
}

@media (max-width: 640px) {
    .video-background video {
        display: none;
    }

    .video-background::after {
        background-size: 44px 44px;
    }

    body.futuristic-theme h1 {
        font-size: 2.2rem;
    }
}
