/*
--- DATA VAULT 2084 THEME ---
--- STYLESHEET ---
*/

/* ---------------------------------- */
/* --- 1. GLOBAL & ROOT VARIABLES --- */
/* ---------------------------------- */
:root {
    --primary-color: #e50914;
    /* Crimson Red */
    --primary-color-glow: rgba(229, 9, 20, 0.7);
    --secondary-color: #f5f5f5;
    /* Soft White */
    --background-color: #0d0d10;
    /* Darkest Graphite */
    --surface-color: #1a1a1d;
    /* Graphite Surface */
    --surface-light: #2c2c31;
    --border-color: rgba(229, 9, 20, 0.25);
    --text-color: #cccccc;
    /* Light gray for body text */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

/* --- Basic Reset & Setup --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
    border: 2px solid var(--background-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-glow);
}

/* --- General Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Layout Helpers --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* -------------------- */
/* --- 2. PRELOADER --- */
/* -------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.loader-logo {
    width: 100px;
    height: auto;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-text {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin: 20px 0;
    font-size: 1rem;
    position: relative;
    text-transform: uppercase;
}

.loader-text::before,
.loader-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    overflow: hidden;
}

.loader-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--primary-color);
    animation: glitch-text-1 2.5s infinite linear reverse;
}

.loader-text::after {
    left: -2px;
    text-shadow: 1px 0 #00e5ff;
    animation: glitch-text-2 2.5s infinite linear reverse;
}

.loader-bar-container {
    width: 200px;
    height: 4px;
    background-color: var(--surface-light);
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.loader-bar {
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    animation: loading-bar 2s ease-out forwards;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes loading-bar {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* ---------------------------------- */
/* --- 3. HEADER & NAVIGATION BAR --- */
/* ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.header.scrolled {
    background-color: rgba(13, 13, 16, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.nav-logo img {
    height: 50px;
    filter: drop-shadow(0 0 5px var(--primary-color-glow));
     filter: brightness(1)invert(1);
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all var(--transition-speed) ease-in-out;
}

/* -------------------------- */
/* --- 4. BUTTONS & FORMS --- */
/* -------------------------- */
.btn {
    padding: 12px 28px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    z-index: 1;
}

/* Glitch Button Style */
.btn-primary-glitch {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary-glitch {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary-glitch:hover {
    color: var(--background-color);
}

.btn-primary-glitch,
.btn-secondary-glitch {
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-primary-glitch .text,
.btn-secondary-glitch .text {
    display: block;
    position: relative;
    z-index: 2;
}

.btn-primary-glitch:hover,
.btn-secondary-glitch:hover {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch-btn 500ms infinite;
}

.btn-primary-glitch:hover .glitch-layer,
.btn-secondary-glitch:hover .glitch-layer {
    display: block;
}

.glitch-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--btn-color, var(--primary-color));
    display: none;
}

.btn-secondary-glitch .glitch-layer {
    background: var(--secondary-color);
}

.btn-primary-glitch:hover .glitch-layer:nth-child(1) {
    animation: glitch-btn-1 500ms infinite;
}

.btn-primary-glitch:hover .glitch-layer:nth-child(2) {
    animation: glitch-btn-2 500ms infinite;
}

.btn-primary-glitch:hover .glitch-layer:nth-child(3) {
    animation: glitch-btn-3 500ms infinite;
}

.btn-secondary-glitch:hover .glitch-layer:nth-child(1) {
    animation: glitch-btn-1 500ms infinite;
}

.btn-secondary-glitch:hover .glitch-layer:nth-child(2) {
    animation: glitch-btn-2 500ms infinite;
}

.btn-secondary-glitch:hover .glitch-layer:nth-child(3) {
    animation: glitch-btn-3 500ms infinite;
}

@keyframes glitch-btn {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }

    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }

    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--background-color);
    border: 1px solid var(--surface-light);
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color-glow);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* --------------------- */
/* --- 5. HERO SECTION --- */
/* --------------------- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas,
.page-header-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    z-index: 2;
    margin: 0 auto;
    max-width: 800px;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--primary-color-glow);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--secondary-color);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    border-radius: 60px;
    position: relative;
}

.mouse span {
    width: 6px;
    height: 6px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    border-radius: 50%;
    opacity: 1;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    to {
        opacity: 0;
        top: 30px;
    }
}

/* --- Glitch Text Effect --- */
.glitch-text {
    position: relative;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-color);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-text-1 1s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00e5ff, 2px 2px var(--primary-color);
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    animation: glitch-text-2 1s infinite linear alternate-reverse;
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    10% {
        transform: skew(-3deg);
    }

    20% {
        transform: skew(0deg);
    }

    70% {
        transform: skew(0deg);
    }

    80% {
        transform: skew(2deg);
    }

    90% {
        transform: skew(0deg);
    }

    100% {
        transform: skew(0deg);
    }
}

@keyframes glitch-text-1 {
    0% {
        clip-path: polygon(0 2%, 100% 2%, 100% 33%, 0 33%);
    }

    5% {
        clip-path: polygon(0 78%, 100% 78%, 100% 100%, 0 100%);
    }

    10% {
        clip-path: polygon(0 44%, 100% 44%, 100% 55%, 0 55%);
    }

    /* ... more steps for chaotic effect ... */
    100% {
        clip-path: polygon(0 60%, 100% 60%, 100% 70%, 0 70%);
    }
}

@keyframes glitch-text-2 {
    0% {
        clip-path: polygon(0 67%, 100% 67%, 100% 71%, 0 71%);
    }

    10% {
        clip-path: polygon(0 15%, 100% 15%, 100% 33%, 0 33%);
    }

    /* ... more steps ... */
    100% {
        clip-path: polygon(0 40%, 100% 40%, 100% 80%, 0 80%);
    }
}

/* -------------------------------- */
/* --- 6. GENERIC & PAGE SECTIONS --- */
/* -------------------------------- */
.section-header .subtitle {
    font-size: 0.9rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-header .section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.page-header-section {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    background: var(--surface-color);
    overflow: hidden;
}

.page-header-section .container {
    position: relative;
    z-index: 2;
}

.page-header-section h1 {
    font-size: 3.5rem;
}

.page-header-section p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--surface-color);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card::before,
.service-card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.service-card::before {
    top: 0;
    left: 0;
}

.service-card::after {
    bottom: 0;
    right: 0;
}

.service-card-border::before,
.service-card-border::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 0;
    background-color: var(--primary-color);
    transition: height 0.4s ease;
}

.service-card-border::before {
    top: 0;
    right: 0;
}

.service-card-border::after {
    bottom: 0;
    left: 0;
}

.service-card:hover::before,
.service-card:hover::after {
    width: 100%;
}

.service-card:hover .service-card-border::before,
.service-card:hover .service-card-border::after {
    height: 100%;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--primary-color-glow);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.service-link {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.service-link i {
    margin-left: 8px;
    transition: transform var(--transition-speed);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* --- About Section --- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.about-features {
    margin: 2rem 0;
    padding-left: 0;
}

.about-features li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.about-features i {
    color: var(--primary-color);
    margin-right: 15px;
}

/* 3D Visual Box */
.about-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.visual-3d-box {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-box 20s infinite linear;
}

.box-face {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid var(--primary-color);
    background: rgba(229, 9, 20, 0.1);
    box-shadow: inset 0 0 50px var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.box-face.front {
    transform: rotateY(0deg) translateZ(125px);
}

.box-face.back {
    transform: rotateY(180deg) translateZ(125px);
}

.box-face.right {
    transform: rotateY(90deg) translateZ(125px);
}

.box-face.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.box-face.top {
    transform: rotateX(90deg) translateZ(125px);
}

.box-face.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

.box-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}


@keyframes rotate-box {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--surface-color);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 20px;
    /* Space between slides if multiple are shown */
}

.testimonial-card {
    background: var(--background-color);
    padding: 40px;
    border-left: 5px solid var(--primary-color);
}

.testimonial-quote-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin: 20px 0;
    color: var(--secondary-color);
}

.author-name {
    font-size: 1.2rem;
}

.author-title {
    color: var(--text-color);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.slider-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(rgba(13, 13, 16, 0.9), rgba(13, 13, 16, 0.9)),
        url('data:image/svg+xml;utf8,<svg width="100" height="100" transform="scale(3)" opacity="0.05" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="p" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M50 0 L100 25 L100 75 L50 100 L0 75 L0 25 Z M50 50 L0 25 M50 50 L0 75 M50 50 L100 25 M50 50 L100 75 M0 50 L50 25 M50 75 L0 50" stroke="%23e50914" fill="none" stroke-width="2"></path></pattern></defs><rect width="100%" height="100%" fill="url(%23p)"></rect></svg>');
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.btn.massive {
    font-size: 1.2rem;
    padding: 18px 40px;
}

/* --- Contact Page --- */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
    background: var(--surface-color);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.contact-info-block,
.contact-form-block {
    padding: 30px;
    border: 1px solid var(--surface-light);
}

.contact-info-header,
.form-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.contact-info-header h3,
.form-header h3 {
    font-size: 1.8rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.info-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    text-transform: capitalize;
    color: var(--secondary-color);
}

.info-text p,
.info-text a {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
}

.btn.full-width {
    width: 100%;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--surface-color);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px var(--primary-color-glow);
    position: relative;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* --- Legal Pages --- */
.legal-content-wrapper {
    background: var(--surface-color);
    padding: 50px;
    border-left: 3px solid var(--primary-color);
}

.legal-content-wrapper h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin: 1.5rem 0;
}

.legal-content-wrapper li {
    margin-bottom: 0.5rem;
}

/* ---------------- */
/* --- 7. FOOTER --- */
/* ---------------- */
.footer {
    background-color: var(--surface-color);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.footer-logo img {
    height: 50px;
     filter: brightness(1)invert(1);
}

.footer-about p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--text-color);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--surface-light);
    transition: all var(--transition-speed);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-transform: capitalize;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links ul a,
.footer-contact ul a {
    font-size: 0.95rem;
    color: var(--text-color);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--surface-light);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--text-color);
}

.footer-legal .separator {
    margin: 0 10px;
}

/* ------------------------ */
/* --- 8. RESPONSIVENESS --- */
/* ------------------------ */
@media (max-width: 992px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .header-actions .btn {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100vh;
        background-color: var(--background-color);
        transition: left 0.4s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-visual {
        margin-top: 50px;
    }

    .about-content {
        order: 1;
    }

    .about-features {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .section-header .section-title {
        font-size: 2.2rem;
    }

    .page-header-section h1 {
        font-size: 2.8rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-main {
        text-align: center;
    }

    .footer-social,
    .footer h3::after {
        margin: 0 auto 20px auto;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .legal-content-wrapper {
        padding: 30px 20px;
    }

    .btn.massive {
        font-size: 1rem;
        padding: 15px 30px;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}