@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,600;0,800;0,900;1,800&display=swap");

@layer base, layout, components, interactive;

@layer base {
    :root {
        --bg-dark: #050505;
        --bg-light: #f4f4f6;
        --bg-grey: #e9e9ec;
        --text-dark: #111;
        --text-light: #fff;
        --accent: #ff6b35;
        --gradient: linear-gradient(135deg, #1a659e, #004e89, #ff6b35);
    }
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    html {
        scroll-behavior: smooth;
    }
    body {
        font-family: "Inter", sans-serif;
        background-color: var(--bg-dark);
        color: var(--text-light);
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
    }
    em {
        font-style: italic;
        color: transparent;
        -webkit-text-stroke: 1.5px currentColor;
    }
}

@layer layout {
    .container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 5%;
    }
    .hero {
        height: 100vh;
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
        background-color: var(--bg-dark);
    }
    .intro-section {
        background-color: var(--bg-light);
        --section-bg: var(--bg-light);
        color: var(--text-dark);
        padding: 8rem 0;
        position: relative;
    }
    .typography-section {
        width: 100%;
        text-align: center;
        background-color: var(--bg-light);
        --section-bg: var(--bg-light);
        color: var(--text-dark);
        padding: 2rem 0 10rem 0;
        position: relative;
        overflow: hidden;
    }

    .typography-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        background-image:
            linear-gradient(
                rgba(244, 244, 246, 0.92),
                rgba(244, 244, 246, 0.92)
            ),
            url("fingerprint.jpg");
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        z-index: 0;
        border-radius: 0 40% 40% 0;
    }

    .typography-section .container {
        position: relative;
        z-index: 2;
    }
    .services-section {
        background-color: var(--bg-light);
        --section-bg: var(--bg-light);
        color: var(--text-dark);
        padding: 5rem 0 8rem 0;
        position: relative;
    }
    .process-section {
        background-color: var(--bg-dark);
        --section-bg: var(--bg-dark);
        color: var(--text-light);
        padding: 8rem 0;
        position: relative;
    }
    .portfolio-section {
        background-color: var(--bg-grey);
        --section-bg: var(--bg-grey);
        color: var(--text-dark);
        padding: 8rem 0 15rem 0; /* Important pour laisser de la place à l'empilement */
        position: relative;
    }
    .pricing-section {
        background-color: var(--bg-light);
        --section-bg: var(--bg-light);
        color: var(--text-dark);
        padding: 8rem 0;
        position: relative;
    }
    .expert-section {
        background-color: var(--bg-dark);
        --section-bg: var(--bg-dark);
        color: var(--text-light);
        padding: 8rem 0;
        position: relative;
    }
    .faq-section {
        background-color: var(--bg-grey);
        --section-bg: var(--bg-grey);
        padding: 8rem 0;
        color: var(--text-dark);
        position: relative;
    }
    .contact-section {
        background-color: var(--bg-light);
        --section-bg: var(--bg-light);
        color: var(--text-dark);
        padding: 8rem 0;
        position: relative;
    }
    .footer {
        background-color: var(--bg-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 4rem 0 2rem 0;
    }
}

@layer components {
    /* Navbar fixe et intelligente */
    .nav-bar {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-block: 2rem;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        transition:
            transform 0.4s ease,
            background-color 0.4s ease,
            padding 0.4s ease;
    }
    .nav-bar.scrolled {
        background-color: rgba(5, 5, 5, 0.85);
        backdrop-filter: blur(10px);
        padding-block: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-bar.nav-hidden {
        transform: translateY(-100%);
    }

    .logo {
        font-size: 2rem;
        font-weight: 900;
        letter-spacing: -2px;
    }
    .logo span {
        color: var(--accent);
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
    .nav-btn {
        background: transparent;
        color: var(--text-light);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0.6rem 1.5rem;
        border-radius: 50px;
        text-decoration: none;
        font-size: 0.9rem;
        transition:
            background-color 0.3s ease,
            color 0.3s ease,
            opacity 0.3s ease;
    }
    .nav-btn:hover {
        background: var(--text-light);
        color: var(--bg-dark);
    }

    .hamburger {
        display: none;
        flex-direction: column;
        gap: 8px;
        background: transparent;
        border: none;
        z-index: 100;
        cursor: pointer;
    }
    .hamburger .line {
        width: 35px;
        height: 2px;
        background-color: var(--text-light);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .hero-center {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    .hero-content {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: space-between;
        gap: 2rem;
        width: 100%;
        position: relative;
        z-index: 2;
        pointer-events: none;
    }
    .hero-text {
        pointer-events: auto;
    }
    .bg-text {
        position: absolute;
        font-size: 28vw;
        font-weight: 900;
        color: transparent;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 0;
        user-select: none;
        pointer-events: none;
    }

    .tagline {
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 2px;
    }
    .typography-section .tagline {
        color: #666;
        margin-bottom: 2rem;
    }
    .services-section .tagline,
    .portfolio-section .tagline {
        color: #666;
        margin-bottom: 1rem;
    }
    .process-section .tagline {
        color: var(--accent);
        margin-bottom: 1rem;
    }
    .humain-maid-p {
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-align: center;
    }
    .hero-text h1 {
        font-size: clamp(3rem, 8vw, 7rem);
        font-weight: 900;
        line-height: 0.9;
        letter-spacing: -3px;
        text-transform: uppercase;
        margin-top: 1rem;
    }

    /* Intro & Typography */
    .intro-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 800;
        max-width: 100%;
        line-height: 1.1;
        letter-spacing: -1px;
        margin-bottom: 2rem;
    }
    .intro-text {
        font-size: 1.2rem;
        color: #555;
        max-width: 100%;
        line-height: 1.6;
        margin-bottom: 4rem;
    }
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        border-top: 1px solid #ddd;
        padding-top: 2rem;
    }
    .stat-item h4 {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #888;
    }
    .stat-item p {
        font-size: 1.2rem;
        font-weight: 800;
        margin-top: 0.5rem;
    }
    .big-text {
        width: 100%;
        text-align: center;
        font-size: clamp(3rem, 8vw, 7rem);
        font-weight: 900;
        line-height: 0.9;
        letter-spacing: -3px;
        white-space: nowrap;
    }
    .big-text.outline {
        color: transparent;
        -webkit-text-stroke: 2px var(--text-dark);
    }

    /* Marquee */
    .marquee-section {
        background-color: var(--bg-dark);
        color: var(--text-light);
        padding: 3rem 0;
        overflow: hidden;
        display: flex;
        white-space: nowrap;
    }
    .marquee-content {
        display: flex;
        animation: scrollText 20s linear infinite;
    }
    .marquee-content h2 {
        font-size: clamp(2rem, 5vw, 4rem);
        font-weight: 900;
        letter-spacing: -2px;
        padding: 0 2rem;
        color: transparent;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    }
    .marquee-content h2 span {
        color: var(--text-light);
        -webkit-text-stroke: 0;
    }
    @keyframes scrollText {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }

    /* Services & Process */
    .services-header h2 {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        letter-spacing: -1px;
    }
    .process-section h2 {
        color: var(--text-light);
    }
    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 3rem;
    }
    .service-card {
        background: #fff;
        padding: 3rem 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
        border: 1px solid #eee;
        transition: border-color 0.3s ease;
    }
    .service-card:hover {
        border-color: var(--text-dark);
    }
    .service-card h3 {
        font-size: 1.3rem;
        font-weight: 800;
        margin-bottom: 1rem;
    }
    .service-card p {
        font-size: 0.95rem;
        color: #666;
        line-height: 1.6;
    }

    /* SECTION STATISTIQUES */
    .stats-section {
        background-color: var(--bg-dark);
        padding: 4rem 0 8rem 0;
        position: relative;
    }
    .stats-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 3rem;
        text-align: center;
    }
    .stat-box {
        padding: 3rem 2rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.02) 0%,
            transparent 100%
        );
        border-radius: 12px;
        transition:
            transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            border-color 0.4s ease;
    }
    .stat-box:hover {
        transform: translateY(-10px);
        border-color: var(--accent);
    }
    .stat-number {
        display: inline-block;
        font-size: clamp(4rem, 6vw, 5.5rem);
        font-weight: 900;
        color: var(--accent);
        line-height: 1;
        margin-bottom: 0.5rem;
        font-variant-numeric: tabular-nums;
    }
    .stat-suffix {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--text-light);
        vertical-align: top;
        margin-left: 2px;
    }
    .stat-label {
        font-size: 0.95rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.6);
        text-transform: uppercase;
        letter-spacing: 2px;
        line-height: 1.5;
        margin-top: 1rem;
    }

    .process-grid {
        margin-top: 4rem;
    }
    .process-section .service-card {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--text-light);
    }
    .process-section .service-card:hover {
        border-color: var(--accent);
    }
    .process-number {
        color: var(--accent);
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .process-desc {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    /* ==========================================================================
     PORTFOLIO (CARTES EMPILABLES MINIMALISTES)
     ========================================================================== */
    .portfolio-stack {
        height: 250vh;
        position: relative;
        margin-top: 4rem;
    }

    .project-card {
        position: sticky;
        height: 85vh;
        border-radius: 20px;
        background-color: var(--bg-dark);
        border: 2px solid rgba(255, 255, 255, 0.15);
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
        transform-origin: top center;
        color: var(--text-light);
        transition: transform 0.3s ease;
    }

    .project-card:hover {
        transform: scale(1.02);
    }

    .card-1 {
        top: 100px;
        z-index: 1;
    }
    .card-2 {
        top: 130px;
        z-index: 2;
    }
    .card-3 {
        top: 160px;
        z-index: 3;
    }

    /* Le grand conteneur d'image */
    .card-image-container {
        flex: 1;
        width: 100%;
        border-radius: 20px;
        background-color: #111;
        background-size: cover;
        background-position: top center;
        background-repeat: no-repeat;
        border: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 1.5rem;
    }

    /* Attribution de tes images */
    .project-carent {
        background-image: url("carent.png");
        @media (max-width: 1069px) {
            background-image: url("carent-mobile.png");
        }
    }
    .project-roofex {
        background-image: url("roofex.png");
    }
    .project-terranova {
        background-image: url("terranova.png");
    }

    /* Le bas de la carte (Titre à gauche, Texte à droite) */
    .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem 0.5rem 1rem;
        gap: 2rem;
    }

    .card-title {
        font-size: clamp(2rem, 4vw, 3.5rem);
        font-weight: 900;
        letter-spacing: -1px;
        white-space: nowrap;
    }

    .card-description {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.7);
        text-align: right;
        max-width: 60%;
        line-height: 1.5;
    }

    /* Pricing Section */
    .pricing-header-main {
        text-align: center;
        margin-bottom: 4rem;
    }
    .pricing-subtitle {
        color: #555;
        margin-top: 1rem;
        max-width: 600px;
        margin-inline: auto;
    }
    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        align-items: center;
    }
    .pricing-card {
        background: #fff;
        border: 2px solid var(--text-dark);
        padding: 3rem 2rem;
        display: flex;
        flex-direction: column;
        position: relative;
        transition:
            transform 0.3s ease,
            box-shadow 0.3s ease;
    }
    .pricing-card:hover {
        transform: translate(-5px, -5px);
        box-shadow: 10px 10px 0px var(--text-dark);
    }
    .pricing-card.featured {
        background: var(--bg-dark);
        color: var(--text-light);
        padding: 4rem 2rem;
        box-shadow: 12px 12px 0px var(--accent);
        border-color: var(--bg-dark);
    }
    .pricing-card.featured:hover {
        transform: translate(-5px, -5px);
        box-shadow: 16px 16px 0px var(--accent);
    }
    .featured-badge {
        position: absolute;
        top: 0;
        right: 2rem;
        transform: translateY(-50%);
        background: var(--accent);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 0.5rem 1rem;
    }
    .pricing-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
    .pricing-card.featured .pricing-header {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    .pricing-header h3 {
        font-size: 1.5rem;
        font-weight: 800;
        margin-bottom: 1rem;
    }
    .pricing-card.featured h3 {
        color: var(--accent);
    }
    .price {
        font-size: 2.5rem;
        font-weight: 900;
        letter-spacing: -1px;
        margin-bottom: 1rem;
    }
    .price span {
        font-size: 1rem;
        font-weight: 600;
        color: #666;
        display: block;
        letter-spacing: 0;
    }
    .pricing-card.featured .price span {
        color: rgba(255, 255, 255, 0.6);
    }
    .pricing-header p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #555;
    }
    .pricing-card.featured .pricing-header p {
        color: rgba(255, 255, 255, 0.7);
    }
    .pricing-features {
        list-style: none;
        margin-bottom: 3rem;
        flex-grow: 1;
    }
    .pricing-features li {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        padding-left: 1.5rem;
        position: relative;
    }
    .pricing-features li::before {
        content: "→";
        position: absolute;
        left: 0;
        color: var(--accent);
        font-weight: bold;
    }
    .pricing-btn {
        display: block;
        text-align: center;
        background: transparent;
        color: var(--text-dark);
        border: 2px solid var(--text-dark);
        padding: 1rem;
        font-weight: 800;
        text-transform: uppercase;
        text-decoration: none;
        transition: 0.2s;
    }
    .pricing-btn:hover {
        background: var(--text-dark);
        color: #fff;
    }
    .pricing-card.featured .pricing-btn {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
    }
    .pricing-card.featured .pricing-btn:hover {
        background: #fff;
        color: var(--bg-dark);
        border-color: #fff;
    }

    /* FAQ Section */
    .faq-container {
        max-width: 800px;
        margin: 0 auto;
    }
    .faq-header {
        text-align: center;
        margin-bottom: 4rem;
    }
    .faq-list {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .faq-item {
        background: #fff;
        padding: 2rem;
        border-left: 4px solid var(--accent);
    }
    .faq-item h3 {
        margin-bottom: 1rem;
    }
    .faq-item p {
        color: #555;
        line-height: 1.6;
    }

    /* Contact Form */
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    .contact-info h2 {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
        font-weight: 900;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    .brutalist-form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        background: #fff;
        padding: 3rem;
        border: 2px solid var(--text-dark);
        box-shadow: 10px 10px 0px var(--text-dark);
    }
    .brutalist-form label {
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .brutalist-form input,
    .brutalist-form textarea {
        width: 100%;
        padding: 1rem;
        border: 1px solid #ccc;
        font-family: inherit;
        font-size: 1rem;
        transition: 0.2s;
    }
    .brutalist-form input:focus,
    .brutalist-form textarea:focus {
        outline: none;
        border-color: var(--accent);
    }
    .brutalist-form button {
        background: var(--text-dark);
        color: #fff;
        border: none;
        padding: 1.2rem;
        font-weight: 800;
        text-transform: uppercase;
        cursor: pointer;
        transition: 0.2s;
    }
    .brutalist-form button:hover {
        background: var(--accent);
        transform: translate(-2px, -2px);
        box-shadow: 4px 4px 0px var(--text-dark);
    }

    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
    .footer-brand p,
    .footer-links p {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.9rem;
        margin-top: 1rem;
    }
    .footer-links p {
        text-align: right;
    }
    em {
        color: #1a659e;
    }

    /* Règle Mobile globale */
    @media (max-width: 1067px) {
        .hero-content {
            flex-direction: column;
            text-align: center;
        }
        .contact-grid {
            grid-template-columns: 1fr !important;
        }
        .footer-content {
            flex-direction: column;
            align-items: flex-start;
            gap: 2rem;
        }
        .footer-links p {
            text-align: left;
        }

        .hamburger {
            display: flex;
        }
        .nav-links {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: var(--bg-dark);
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 3rem;
            transform: translateY(-100%);
            transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
            z-index: 99;
        }
        .nav-links.nav-active {
            transform: translateY(0);
        }
        .nav-btn {
            font-size: 1.8rem;
            font-weight: 800;
            border: none;
            padding: 0;
        }
        .hamburger.toggle .line:nth-child(1) {
            transform: translateY(10px) rotate(45deg);
        }
        .hamburger.toggle .line:nth-child(2) {
            transform: translateY(-10px) rotate(-45deg);
        }

        /* Ajustements mobile pour les Sticky Cards Minimalistes */
        .portfolio-stack {
            height: auto;
            display: flex;
            flex-direction: column;
            gap: 3rem;
        }
        .project-card {
            position: relative;
            height: auto;
            top: 0 !important;
            padding: 1rem;
        }
        .card-image-container {
            aspect-ratio: 4 / 3;
            flex: none;
            margin-bottom: 1rem;
        }
        .card-footer {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
            padding: 0 0.5rem;
        }
        .card-description {
            text-align: left;
            max-width: 100%;
            font-size: 0.95rem;
        }
    }

    /* TÉMOIGNAGES (STYLE GOOGLE) */
    .reviews-marquee {
        width: 100%;
        overflow: hidden;
        position: relative;
        padding: 1rem 0 3rem 0;
        mask-image: linear-gradient(
            to right,
            transparent,
            black 10%,
            black 90%,
            transparent
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent,
            black 10%,
            black 90%,
            transparent
        );
    }
    .reviews-track {
        display: flex;
        gap: 2rem;
        width: max-content;
        animation: scrollReviews 70s linear infinite;
    }
    .reviews-marquee:hover .reviews-track {
        animation-play-state: paused;
    }
    .review-card {
        background-color: var(--bg-white, #ffffff);
        width: 350px;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        color: var(--text-dark, #111);
        flex-shrink: 0;
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
    }
    .review-card:hover {
        transform: translateY(-5px);
    }
    .review-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        position: relative;
    }
    .review-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 1.2rem;
    }
    .review-meta h4 {
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 0.1rem;
    }
    .review-meta span {
        font-size: 0.8rem;
        color: #777;
    }
    .google-icon {
        position: absolute;
        right: 0;
        top: 0;
        width: 24px;
        height: 24px;
        background-color: #4285f4;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 0.8rem;
    }
    .review-stars {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        letter-spacing: 2px;
    }
    .review-text {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #444;
    }
    @keyframes scrollReviews {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
    @media (max-width: 768px) {
        .review-card {
            width: 300px;
            padding: 1.2rem;
        }
        .reviews-marquee {
            mask-image: none;
            -webkit-mask-image: none;
        }
    }
}

@layer interactive {
    .loader-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--bg-dark);
        z-index: 10000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.8s ease-in-out;
    }
    .loader-screen.hidden {
        transform: translateY(-100vh);
        pointer-events: none;
    }
    .loader-text {
        display: flex;
        justify-content: space-between;
        width: 300px;
        font-size: 1.5rem;
        font-weight: 900;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    .loader-percentage {
        color: var(--accent);
        font-family: monospace;
    }
    .loader-bar-container {
        width: 300px;
        height: 2px;
        background-color: rgba(255, 255, 255, 0.1);
        overflow: hidden;
    }
    .loader-bar {
        width: 0%;
        height: 100%;
        background-color: var(--accent);
        transition: width 0.1s linear;
    }

    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
    .delay-1 {
        transition-delay: 0.15s;
    }
    .delay-2 {
        transition-delay: 0.3s;
    }

    #hero-canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
    }

    @media (pointer: fine) {
        body,
        a,
        button,
        input,
        textarea {
            cursor: none;
        }
    }
    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 20px;
        height: 20px;
        background-color: var(--accent);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition:
            width 0.3s ease,
            height 0.3s ease,
            background-color 0.3s ease;
        mix-blend-mode: difference;
    }
    .custom-cursor.hovered {
        width: 30px;
        height: 30px;
        background-color: var(--text-light);
    }

    .dud {
        color: var(--accent);
    }

    .scroll-curve-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 40px;
        transform: translateY(-99%);
        pointer-events: none;
        z-index: 4;
    }

    .scroll-curve-container svg {
        width: 100%;
        height: 100%;
        fill: var(--section-bg);
        transform: scaleY(var(--curve-scale, 1));
        transform-origin: bottom;
        will-change: transform;
    }
}
