
@charset "utf-8";

 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --darker-bg: #222;
            --card-bg: rgba(229, 231, 235, 0.03);
            --border-color: rgba(229, 231, 235, 0.2);
            --text-primary: #ffffff;
            --text-secondary: #CCCCCC;
            --primary: #FF0033;
            --tertiary: #2979FF;
            --secondary: #9C27B0;
            --glow-primary: rgba(255, 23, 68, 0.7);

            --sport-accent: #FF6D00;       
            --auto-accent: #FFC400;       
            --immobilier-accent: #00E676;
        }

       html {
        overflow-y: scroll; 
        scrollbar-gutter: stable; 
        scroll-behavior: smooth;
        }

        body {
            font-family: 'JetBrains Mono', 'Fira Code', monospace;
            background: black;
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
        }

        p{
            font-family: "Exo 2", sans-serif;
        }

        /* Enhanced Cyberpunk Background */
        .cyber-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--darker-bg);
            overflow: hidden;
            z-index: -5;
        }

        /* Animated gradient background */
        .cyber-gradient {
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
           background: 
                radial-gradient(circle at 20% 30%, rgba(215, 38, 56, 0.15) 0%, transparent 50%),   /* rouge principal plus dense */
                radial-gradient(circle at 80% 70%, rgba(240, 48, 66, 0.12) 0%, transparent 50%),   /* rouge vif adouci */
                radial-gradient(circle at 40% 80%, rgba(255, 90, 90, 0.1) 0%, transparent 50%),    /* rouge doux */
                radial-gradient(circle at 60% 20%, rgba(255, 115, 50, 0.15) 0%, transparent 50%),  /* accent orange */
                linear-gradient(to bottom right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.85));        /* voile sombre final */

            animation: gradientRotate 30s linear infinite;
            filter: blur(40px);
        }

        @keyframes gradientRotate {
            0% { transform: rotate(0deg) scale(1); }
            50% { transform: rotate(180deg) scale(1.2); }
            100% { transform: rotate(360deg) scale(1); }
        }

        /* Matrix rain effect */
        .matrix-rain {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            opacity: 0.15;
        }

        /* Animated grid overlay */
        .grid-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
        }

        .grid-lines {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: gridMove 20s linear infinite;
        }

        .grid-glow {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(255, 0, 255, 0.03) 2px, transparent 2px),
                linear-gradient(90deg, rgba(255, 0, 255, 0.03) 2px, transparent 2px);
            background-size: 100px 100px;
            animation: gridMove 30s linear infinite reverse;
        }

        @keyframes gridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(50px, 50px); }
        }

        /* Floating particles */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -3;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--primary);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--tertiary);
            animation: float 20s infinite;
            opacity: 0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .particle:nth-child(odd) {
            background: var(--secondary);
            box-shadow: 0 0 10px var(--secondary);
            animation-duration: 25s;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) translateX(0);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100vh) translateX(100px);
                opacity: 0;
            }
        }

        /* Glowing orbs */
        .orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.5;
            animation: orbFloat 20s ease-in-out infinite;
            pointer-events: none;
            z-index: -4;
        }

        .orb1 {
            width: 300px;
            height: 300px;
            background: var(--primary);
            top: 10%;
            left: -150px;
            animation-delay: 0s;
        }

        .orb2 {
            width: 400px;
            height: 400px;
            background: var(--secondary);
            bottom: 10%;
            right: -200px;
            animation-delay: 5s;
        }

        .orb3 {
            width: 250px;
            height: 250px;
            background: var(--tertiary);
            top: 50%;
            left: 50%;
            animation-delay: 10s;
        }

        @keyframes orbFloat {
            0%, 100% {
                transform: translate(0, 0) scale(1);
            }
            33% {
                transform: translate(100px, -50px) scale(1.1);
            }
            66% {
                transform: translate(-50px, 100px) scale(0.9);
            }
        }

        /* Scanlines effect */
        .scanlines {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .scanlines::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                transparent 0%,
                rgba(0, 255, 255, 0.03) 50%,
                transparent 100%
            );
            background-size: 100% 4px;
            animation: scanline 8s linear infinite;
        }

        .scanlines::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
            pointer-events: none;
        }

        /* Noise texture overlay */
        .noise-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.03;
            z-index: -1;
            pointer-events: none;
            background-image: 
                repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
                repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(0, 255, 255, 0.02) 2px, rgba(0, 255, 255, 0.02) 4px);
        }

        @keyframes scanline {
            0% { transform: translateY(-100%); }
            100% { transform: translateY(100%); }
        }

        /* Animation keyframes for mobile menu */
        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }


        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 20px 50px;
            background: rgba(10, 10, 10, 0.8);
            backdrop-filter: blur(10px);
            z-index: 1000;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(255, 94, 0, 0.1);
        }

        nav.scrolled {
            padding: 15px 50px;
            background: rgba(10, 10, 10, 0.95);
            box-shadow: 0 5px 30px rgba(255, 94, 0, 0.2);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-link {
            display: flex;
            align-items: center;
            text-decoration: none;
            gap: 10px;
        }

        .logo-svg {
            width: 40px;
            height: 40px;
        }

        .logo-text {
            font-family: 'Orbitron', monospace;
            font-size: 24px;
            font-weight: 900;
            background: linear-gradient(45deg, var(--primary), var(--tertiary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: glow 2s ease-in-out infinite;
            text-shadow: 0 0 30px var(--glow-primary);
        }

        @keyframes glow {
            0%, 100% { 
                filter: brightness(1);
                text-shadow: 0 0 30px var(--glow-primary);
            }
            50% { 
                filter: brightness(1.5);
                text-shadow: 0 0 40px rgba(255, 94, 0, 0.8);
            }
        }

        .nav-links {
            display: flex;
            font-family: 'Orbitron', monospace;
            gap: 30px;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: #ffffff;
            position: relative;
            transition: all 0.3s ease;
            padding: 8px 16px;
            font-weight: 800;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.7;
        }

        .nav-links a.active {
            opacity: 1;
            color: var(--primary);
        }

        .nav-links a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 1px solid transparent;
            transition: all 0.3s ease;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--tertiary));
            box-shadow: 0 0 20px var(--primary);
            transition: width 0.3s ease;
            box-shadow: 0 0 10px var(--glow-primary);
        }

         .nav-links a.active::after {
            background: var(--primary) !important;
        }


        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        /* Mobile menu */
        .menu-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 4px;
        }

        .menu-toggle span {
            width: 25px;
            height: 2px;
            background: var(--primary);
            transition: all 0.3s ease;
        }

        .menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }


        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            padding: 80px 20px 20px;
        }

         .hero video {
            opacity: .3;
            z-index: -1000;
        }


          .hero-content {
            text-align: center;
            max-width: 1200px;
            animation: fade-in-up 1s ease-out;
            z-index: 10;
            width: 100%;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* Text Rotator Styles */
        .text-rotator {
            position: relative;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
        }

        .text-set {
            position: absolute;
            width: 100%;
            opacity: 0;
            display: none;
        }

        .text-set.active {
            opacity: 1;
            display: block;
        }

        .char {
            display: inline-block;
            opacity: 0;
            transform: translateY(50px);
            animation: charFlyIn 0.5s ease-out forwards;
        }

        @keyframes charFlyIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .char.out {
            animation: charFlyOut 0.3s ease-in forwards;
        }

        @keyframes charFlyOut {
            to {
                opacity: 0;
                transform: translateY(-30px) rotateX(90deg);
            }
        }

        .subtitle {
            font-size: 1.2rem;
             font-weight: 800;
            font-family: 'Orbitron', monospace;
            transform: translateY(-30px);
            opacity: 0;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
            font-weight: 300;
        }

        .subtitle.visible {
            animation: subtitleFade 0.8s ease-out 0.5s forwards;
        }

        @keyframes subtitleFade {
            to {
                opacity: 0.6;
            }
        }

        @keyframes fade-in-up {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .glitch-text {
            font-family: 'Orbitron', monospace;
            font-size: 4rem;
            font-weight: 900;
            position: relative;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
        }

        .glitch-text::before,
        .glitch-text::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .glitch-text::before {
            animation: glitch-1 0.5s infinite;
            color: var(--primary);
            z-index: -1;
            text-shadow: -2px 0 var(--primary);
        }

        .glitch-text::after {
            animation: glitch-2 0.5s infinite;
            color: var(--tertiary);
            z-index: -1;
            text-shadow: 2px 0 var(--tertiary)F;
        }

        @keyframes glitch-1 {
            0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
            20% { clip-path: inset(33% 0 33% 0); transform: translate(-2px); }
            40% { clip-path: inset(66% 0 0 0); transform: translate(2px); }
            60% { clip-path: inset(0 0 66% 0); transform: translate(1px); }
            80% { clip-path: inset(25% 0 50% 0); transform: translate(-1px); }
        }

        @keyframes glitch-2 {
            0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
            20% { clip-path: inset(50% 0 25% 0); transform: translate(2px); }
            40% { clip-path: inset(0 0 75% 0); transform: translate(-2px); }
            60% { clip-path: inset(75% 0 0 0); transform: translate(-1px); }
            80% { clip-path: inset(40% 0 40% 0); transform: translate(1px); }
        }

        .subtitle {
            font-size: 1.5rem;
            margin-top: 20px;
            margin-bottom: 100px;
            opacity: 0.6;
            animation: fade-in 1s ease-out 0.5s both;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
            font-weight: 300;
        }

        @keyframes fade-in {
            from { opacity: 0; }
            to { opacity: 0.6; }
        }

    @media screen and (max-width: 540px) {
        section {
            .glitch-text {
            font-size: 2.3rem;
            margin-bottom: 30px;
        }
         .subtitle {
            font-size: 1rem;
            margin-bottom: 80px;
        }
        }}

        .section-header {
            text-align: center;
            margin-bottom: 5rem;
        }

        .section-title {
            font-size: 3rem;
            font-weight: 800;
            font-family: 'Orbitron', monospace;
            color: var(--primary);
            letter-spacing: 2px;
            margin-bottom: 1rem;
            position: relative;
            text-shadow: 0 0 20px var(--glow-primary);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--tertiary));
            box-shadow: 0 0 20px var(--primary);
        }

        .section-subtitle {
            font-size: 1.2rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

       .btn-primary {
        position: relative;
        display: inline-block;
        padding: 1rem 3rem;
        color: white;
        border: none;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 700;
        letter-spacing: 2px;
        overflow: hidden;
        cursor: pointer;
        margin: 10px;
        background: linear-gradient(135deg, var(--primary), var(--tertiary));
        z-index: 0;
        transition: transform 0.4s ease, box-shadow 0.5s ease;
        }

        .btn-primary::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--tertiary), var(--primary));
        opacity: 0; 
        transition: opacity 1s ease; 
        border-radius: inherit;
        z-index: -1;
        }

        .btn-primary:hover {
        transform: translateY(-4px);
        box-shadow:
            0 0 15px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(255, 255, 255, 0.4),
            0 0 60px rgba(255, 255, 255, 0.25),
            0 0 100px rgba(255, 255, 255, 0.15);
        }

        .btn-primary:hover::before {
        opacity: 1;
        }

        .btn-secondary {
        position: relative;
        display: inline-block;
        padding: 1rem 3rem;
        color: white;
        font-weight: 700;
        letter-spacing: 2px;
        text-decoration: none;
        border-radius: 10px;
        cursor: pointer;
        margin: 10px;
        overflow: hidden;
        background: var(--darker-bg);
        z-index: 0;

        transition: transform 0.3s ease, box-shadow 0.6s ease;
        }

        .btn-secondary::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 2px; 
        background: linear-gradient(135deg, var(--primary), var(--tertiary));
        -webkit-mask: 
            linear-gradient(#fff 0 0) content-box, 
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: destination-out;
                mask-composite: exclude; 
        z-index: 1;
        }
        .btn-secondary::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 2px; 
        background: linear-gradient(135deg, var(--tertiary), var(--primary));
        opacity: 0; 
        transition: opacity 1s ease;
        -webkit-mask: 
            linear-gradient(#fff 0 0) content-box, 
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: destination-out;
                mask-composite: exclude;
        z-index: 1;
        }

        .btn-secondary span {
        position: relative;
        z-index: 2;
        }

        .btn-secondary:hover {
        transform: translateY(-4px);
        box-shadow:
            0 0 15px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(255, 255, 255, 0.4),
            0 0 60px rgba(255, 255, 255, 0.25),
            0 0 100px rgba(255, 255, 255, 0.15);
        }

        .btn-secondary:hover::after {
        opacity: 1; 
        }

         /* Loader */
        .page-loader {
        position: fixed;
        background: #000;
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        z-index: 9998;
        }

        .loader {
        position: absolute;
        border-left: 2px solid #ffffff;
        border-top: 2px solid rgba(255, 255, 255, 0.2);
        border-right: 2px solid rgba(255, 255, 255, 0.2);
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        height: 46px;
        width: 46px;
        left: 50%;
        top: 50%;
        margin: -23px 0 0 -23px;
        text-indent: -9999em;
        font-size: 10px;
        z-index: 9999;
        -webkit-animation: load 0.8s infinite linear;
        -moz-animation: load 0.8s infinite linear;
        animation: load 0.8s infinite linear;
        }

        .loader,
        .loader:after {
        border-radius: 50%;
        width: 46px;
        height: 46px;
        }

        @-webkit-keyframes load {
        0% {
            -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
        }
        100% {
            -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
        }
        }

        @keyframes load {
        0% {
            -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
        }
        100% {
            -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
        }
        }

        /* Vidéo présentation */

        #video {
        padding-top: 5%;
        background-color: rgba(0, 0, 0, 0.7);
        text-align: center;
        width: 100%;
        }

        #video iframe {
            width: 80%;
            max-width: 1200px;
            aspect-ratio: 16 / 9; /* garde le ratio 16:9 automatiquement */
            border: 0;
            margin-top: 2%;
        }

        /* Services */

        #services {
        padding: 5%;
        background-color: rgba(0, 0, 0, 0.7);
        text-align: center;
        }

        #services h2{
        margin-bottom: 50px;
        }

        .row {
        display: flex;
        flex-wrap: wrap;
        }

        .column {
        width: 100%;
        padding: 0 1em 1em 1em;
        text-align: center;
        }

        .card {
        width: 100%;
        height: 100%;
        padding: 2em 1.5em;
        background-color: var(--darker-bg);
        background-size: 100% 200%;
        background-position: 0 2.5%;
        border-radius: 5px;
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
        cursor: pointer;
        transition: ease-in-out .3s;
        }

        .card:hover {
        background-color: var(--primary);
        }

        .card:hover .icon-wrapper {
        background-color: #1a1a24;
        color: var(--primary);
        }

        .card:hover h3 {
        color: #f0f0f0;
        }

        .card:hover p {
        color: #f0f0f0;
        }

        h3 {
        font-size: 20px;
        font-weight: 600;
        color: #f0f0f0;
        margin: 1em 0;
        }

        p {
         color:   var(--text-secondary);
        font-size: 15px;
        line-height: 1.6;
        letter-spacing: 0.03em;
        }

        .icon-wrapper {
        background-color: var(--primary);
        position: relative;
        margin: auto;
        font-size: 30px;
        height: 2.5em;
        width: 2.5em;
        color: #1a1a24;
        border-radius: 50%;
        display: grid;
        place-items: center;
        transition: 0.2s;
        }

        @media screen and (min-width: 768px) {
        section {
            padding: 0 2em;
        }
        .column {
            flex: 0 50%;
            max-width: 50%;
        }
        }
        @media screen and (min-width: 992px) {
        section {
            padding: 1em 3em;
        }
        .column {
            flex: 0 0 33.33%;
            max-width: 33.33%;
        }
        }

                
        /* About Section */
        .about {
            padding: 100px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .about h2{
            text-align: center;
            margin-bottom: 50px;
        }

        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-text p {
            line-height: 1.8;
            margin: 30px;
            font-size: 1.1rem;
        }

        .about-visual {
            position: relative;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .about-graphic {
            width: 300px;
            height: 300px;
            position: relative;
            animation: float 6s ease-in-out infinite;
            border: 2px solid rgba(123, 47, 247, 0.4);
            border-radius: 10px;
        }

        .about-graphic::before,
        .about-graphic::after {
            content: '';
            position: absolute;
            border: 2px solid var(--primary);
            border-radius: 10px;
            box-shadow: 0 0 30px var(--glow-primary);
        }

        .about-graphic::before {
            width: 100%;
            height: 100%;
            animation: rotate 20s linear infinite;
        }

        .about-graphic::after {
            width: 80%;
            height: 80%;
            top: 10%;
            left: 10%;
            border-color: var(--tertiary);
            background-image: url(images/moi.jpg);
            background-size: cover;
            background-position: center;
            animation: rotate-swing 3s ease-in-out infinite;
            box-shadow: 0 0 30px rgba(0, 178, 255, 0.5);
        }

        @keyframes rotate-swing {
        0%   { transform: rotate(0deg); }
        50%  { transform: rotate(2deg); }
        100% { transform: rotate(0deg); }
        }

        @keyframes float {
            0%, 100% { 
                transform: translateY(0);
                box-shadow: 0 0 30px rgba(123, 47, 247, 0.3);
            }
            50% { 
                transform: translateY(-10px);
                box-shadow: 0 10px 40px rgba(123, 47, 247, 0.7);
            }
        }

        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        
        /* Portfolio */

        #portfolio{
            display: grid;
            grid-template-columns: 1fr;
            width: 100%;
            align-items: center;
            justify-content: center;
            place-items: center;
        }

        #portfolio .btn-primary {
            position: relative;
            text-align: center;
            align-items: center;
            margin: 0;
            width: 300px;
        }

        #carousel {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            overflow: hidden;
            position: relative;
        }

        #carousel h2{
            text-align: center;
            margin-bottom: 80px;
        }

        @keyframes gridMove {
            0% {
                background-position: 0px 0px;
                opacity: 0.5;
            }
            50% {
                opacity: 0.2;
            }
            100% {
                background-position: 40px 40px;
                opacity: 0.5;
            }
        }

        .carousel-container {
            width: 90%;
            max-width: 1100px;
            position: relative;
            perspective: 2000px;
            padding: 3rem 0;
            z-index: 10;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.75s cubic-bezier(0.21, 0.61, 0.35, 1);
            transform-style: preserve-3d;
        }

        .carousel-card {
            min-width: 320px;
            max-width: 320px;
            margin: 0 25px;
            background: linear-gradient(
                135deg,
                rgba(30, 41, 59, 0.85),
                rgba(15, 23, 42, 0.9)
            );
            border-radius: 1.2rem;
            overflow: hidden;
            backdrop-filter: blur(10px);
            box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.2);
            transition: all 0.6s cubic-bezier(0.21, 0.61, 0.35, 1);
            transform-origin: center center;
            position: relative;
            border: 1px solid rgba(94, 234, 212, 0.2);
        }

        /* Holographic border effect */
        .carousel-card::before {
            content: "";
            position: absolute;
            inset: -2px;
            background: linear-gradient(
                45deg,
                transparent 0%,
                var(--primary) 25%,
                var(--secondary) 50%,
                var(--tertiary) 75%,
                transparent 100%
            );
            z-index: -1;
            border-radius: 1.3rem;
            filter: blur(8px);
            opacity: 0;
            transition: opacity 0.5s ease;
            animation: borderGlow 6s linear infinite;
        }

        @keyframes borderGlow {
            0% {
                background-position: 0% 50%;
                opacity: 0.3;
            }
            50% {
                background-position: 100% 50%;
                opacity: 0.5;
            }
            100% {
                background-position: 0% 50%;
                opacity: 0.3;
            }
        }

        .carousel-card.is-active::before {
            opacity: 1;
            background-size: 300% 300%;
        }

        .carousel-card:not(.is-active) {
            transform: scale(0.8) rotateY(35deg) translateZ(-100px);
            opacity: 0.45;
            filter: saturate(0.6) brightness(0.7);
            transition: ease-in-out.3;
        }

        .carousel-card.is-prev {
            transform-origin: right center;
            transform: scale(0.75) rotateY(45deg) translateX(-80px) translateZ(-150px);
            transition: ease-in-out.3;
        }

        .carousel-card.is-next {
            transform-origin: left center;
            transform: scale(0.75) rotateY(-45deg) translateX(80px) translateZ(-150px);
        }

        .carousel-card.is-active {
            transform: scale(1) rotateY(0) translateZ(0);
            opacity: 1;
            z-index: 20;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px var(--g),
                inset 0 0 20px rgba(56, 189, 248, 0.1);
            filter: saturate(1.2) brightness(1.1);
            transition: ease-in-out.3;
        }

        .card-image-container {
            position: relative;
            height: 200px;
            overflow: hidden;
            border-bottom: 1px solid rgba(94, 234, 212, 0.3);
        }

        .card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 1.5s ease;
        }

        .carousel-card.is-active .card-image {
            transform: scale(1.05);
            transition: ease-in-out.3;
        }

        /* HUD overlay effect on images */
        .card-image-container::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(120deg, rgba(56, 189, 248, 0.1), transparent 70%),
                radial-gradient(circle at 80% 20%, rgba(94, 234, 212, 0.15), transparent 50%);
            pointer-events: none;
        }

        /* Scan line effect */
        .card-image-container::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: repeating-linear-gradient(
                0deg,
                rgba(6, 182, 212, 0.05) 0px,
                rgba(6, 182, 212, 0.05) 1px,
                transparent 1px,
                transparent 4px
            );
            pointer-events: none;
            opacity: 0.5;
            z-index: 5;
        }

        .card-content {
            padding: 1.75rem;
            color: #f1f5f9;
        }

        .card-title {
            font-family: "Orbitron", sans-serif;
            margin-bottom: 0.75rem;
            letter-spacing: 1px;
            position: relative;
            display: inline-block;
        }

        /* Text glow effect */
        .card-title::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            color: transparent;
            -webkit-text-stroke: 0.5px;
            filter: blur(3px);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .carousel-card.is-active .card-title::after {
            opacity: 0.8;
        }

        .card-description {
            font-size: 0.9rem;
            line-height: 1.6;
            color: rgba(241, 245, 249, 0.8);
            font-weight: 300;
        }

        /* HUD-style progress bar */
        .card-progress {
            height: 3px;
            background: rgba(56, 189, 248, 0.15);
            margin-top: 1.25rem;
            position: relative;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-value {
            position: absolute;
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 4px;
            width: 75%;
        }

        .card-stats {
            display: flex;
            justify-content: space-between;
            margin-top: 0.5rem;
            font-size: 0.7rem;
            color: rgba(241, 245, 249, 0.6);
        }

        .carousel-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(12, 74, 110, 0.3);
            color: var(--tertiary);
            border: 1px solid rgba(14, 165, 233, 0.4);
            border-radius: 50%;
            width: 48px;
            height: 48px;
            padding: 2px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 20;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
        }

        .carousel-button:hover {
            background-color: rgba(14, 165, 233, 0.3);
            color: #e0f2fe;
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
        }

        .carousel-button:active {
            transform: translateY(-50%) scale(0.95);
        }

        .carousel-button::before {
            content: "";
            position: absolute;
            inset: -2px;
            background: radial-gradient(circle, var(--primary), transparent 70%);
            border-radius: 50%;
            opacity: 0;
            z-index: -1;
            transition: opacity 0.3s ease;
        }

        .carousel-button:hover::before {
            opacity: 0.7;
            animation: pulseGlow 2s infinite;
        }

        @keyframes pulseGlow {
            0% {
                transform: scale(1);
                opacity: 0.7;
            }
            50% {
                transform: scale(1.2);
                opacity: 0.3;
            }
            100% {
                transform: scale(1);
                opacity: 0.7;
            }
        }

        .carousel-button.prev {
            left: -24px;
        }

        .carousel-button.next {
            right: -24px;
        }

        .carousel-indicators {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 2rem;
        }

        .indicator {
            width: 24px;
            height: 4px;
            background: rgba(56, 189, 248, 0.2);
            border-radius: 2px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .indicator.active {
            background: var(--tertiary);
            box-shadow: 0 0 10px var(--tertiary);
        }

        .tech-details {
            position: absolute;
            display: flex;
            cursor: default;
            bottom: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: rgba(15, 23, 42, 0.1);
            backdrop-filter: blur(2px);
            padding: 0.75rem;
            opacity: 0;
            transition: ease-in-out 0.2s;
            z-index: 25;
            pointer-events: none;
        }

        .carousel-card.is-active{
            box-shadow: 0 0 30px rgba(41, 121, 255, 0.3);
        }


        .carousel-card.is-active:hover .tech-details{
            opacity: 1;
            cursor: pointer;
            pointer-events: all;
            transition: ease-in-out .2;
        }

        .tech-details a {
            display: flex;
            margin: auto;
            transition: ease-in-out .2;
        }

        .tech-details img {
            margin: auto;
            width: 80px;
            height: 80px;
        }

        .is-far-next {
            transform: scale(0.8) rotateY(-45deg) translateZ(-100px) !important;
        }

        .video-modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.85);
        justify-content: center;
        align-items: center;
        z-index: 9999;
        }

        .video-modal.active {
        display: flex;
        animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
        }

        .video-popup {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.8);
        justify-content: center;
        align-items: center;
        z-index: 1000;
        }

        .video-popup.active {
        display: flex;
        }

        .popup-content {
        position: relative;
        width: 90%;
        max-width: 800px;
        }

        .popup-content iframe {
        width: 100%;
        height: 450px;
        }

        .close-btn {
        position: absolute;
        top: -10px;
        right: -10px;
        font-size: 30px;
        color: #fff;
        cursor: pointer;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        padding: 5px 10px;
        }

        .play-btn {
        transition: all 0.3s ease;
        cursor: pointer;
        }

        .play-btn:hover {
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
                drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
        transform: scale(1.05);
        }

        .mfp-fade.mfp-bg {
        opacity: 0;
        transition: opacity 0.3s ease-out;
        }
        .mfp-fade.mfp-bg.mfp-ready {
        opacity: 0.8; 
        }
        .mfp-fade.mfp-bg.mfp-removing {
        opacity: 0; 
        }
        .mfp-fade.mfp-wrap {
        opacity: 0;
        transition: opacity 0.3s ease-out;
        }
        .mfp-fade.mfp-wrap.mfp-ready {
        opacity: 1; 
        }
        .mfp-fade.mfp-wrap.mfp-removing {
        opacity: 0; 
        }
        .mfp-fade.mfp-bg {
        opacity: 0;
        transition: opacity 0.3s ease-out;
        }
        .mfp-fade.mfp-bg.mfp-ready {
        opacity: 0.8; 
        }
        .mfp-fade.mfp-bg.mfp-removing {
        opacity: 0; 
        }
        .mfp-fade.mfp-wrap {
        opacity: 0;
        transition: opacity 0.3s ease-out;
        }
        .mfp-fade.mfp-wrap.mfp-ready {
        opacity: 1;
        }
        .mfp-fade.mfp-wrap.mfp-removing {
        opacity: 0; 
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .carousel-button {
                width: 40px;
                height: 40px;
            }

            .carousel-button.prev {
                left: 5px;
            }

            .carousel-button.next {
                right: 5px;
            }

            .carousel-card {
                min-width: 260px;
                max-width: 260px;
                margin: 0 15px;
            }

            .carousel-card:not(.is-active) {
                transform: scale(0.85) rotateY(25deg);
            }

            .carousel-card.is-prev {
                transform: scale(0.8) rotateY(30deg) translateX(-40px);
            }

            .carousel-card.is-next {
                transform: scale(0.8) rotateY(-30deg) translateX(40px);
            }

            .card-image-container {
                height: 160px;
            }
        }

        /* Gallery */

      #gallery {
        position: relative;
        z-index: 1;
        min-height: 110vh;
        padding: 90px 6% 120px 6%; 
        display: flex;
        flex-direction: column;
        align-items: center;
        }


        #gallery::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image: url('images/background.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0.3; 
            z-index: -1; 
        }

        #gallery::after {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(
                circle at center,
                rgba(0, 0, 0, 0) 60%,
                rgba(0, 0, 0, 0.8) 100%
            );
            mix-blend-mode: multiply;
            z-index: -1;
            pointer-events: none;
        }

        #gallery h2 {
        text-align: center;
        margin-bottom: 50px;
        }

        .gallery {
        display: flex;
        justify-content: center;
        align-items: center;
        }

        .film-frame {
        position: relative;
        width: 400px;
        height: 360px;
        }
     
    .film-roll {
         position: relative;
         overflow: hidden;
         transform-style: preserve-3d; 
         top: 0;
         left: 0;
         width: 400px;
         height: 364px;
         overflow: hidden; 
         z-index: 1; 
    }


    .film {
        width: 100%;
        height: 355px;
        background: linear-gradient(to bottom, #2c2c2c, #000000);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
        text-align: center;
        transform: translateY(0);
         box-shadow: 
        inset 8px 0 20px rgba(0,0,0,0.8),   
        inset -8px 0 20px rgba(0,0,0,0.8), 
        inset 0 8px 20px rgba(0,0,0,0.8),   
        inset 0 -8px 20px rgba(0,0,0,0.8);  
     }

    .popup-youtube {
         text-decoration: none;
     }

    .film-roll .film1 .film-image {
        width: 100%;
        aspect-ratio: 16 / 9;   
        overflow: hidden;      
        position: relative;
    }

    .film-roll .film1 .film-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;       
        display: block;
    }

    .film-roll .film2 .film-image {
    width: 100%;
    aspect-ratio: 16 / 9;   
    overflow: hidden;        
    position: relative;
    }

    .film-roll .film2 .film-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;      
        display: block;
    }

   .nofilm {
    filter: none !important;
    }


    .film-lightleak {
        position: absolute;
        top: 0;
        left: -50%; 
        width: 200%; 
        height: 100%;
        pointer-events: none;
        background: linear-gradient(
            120deg,
            rgba(255, 0, 50, 0.15) 0%,
            rgba(255, 200, 50, 0.2) 50%,
            rgba(255, 0, 50, 0.15) 100%
        );
        filter: blur(80px);
        mix-blend-mode: screen; 
        animation: lightleak-move 6s ease-in-out infinite;
    }

    @keyframes lightleak-move {
        0% { transform: translateX(-100%); }
        50% { transform: translateX(50%); }
        100% { transform: translateX(-100%); }
    }


        .film-image {
        position: relative;
        overflow: hidden;
        }

        .film-image img {
        width: 100%;
        display: block;
        filter: grayscale(60%) contrast(1.2) brightness(1.1);
        }

       .film-image::after {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: repeating-linear-gradient(
                rgba(255,255,255,0.05) 0px,
                rgba(255,255,255,0.05) 1px,
                rgba(0,0,0,0.05) 2px
            );
            animation: film-scan 0.5s linear infinite;
        }

        .film2-blur {
            position: absolute;
            inset: 0; 
            background: rgba(0,0,0,0.1); 
            backdrop-filter: blur(4px); 
            z-index: 5; 
            pointer-events: none; 
            border-radius: 4px; 
        }

        .film-separator {
            width: 100%;
            height: 12px;
            background: black;
            position: relative;
            margin: 0 auto;
        }

        .film-separator::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 10px;
            right: 10px;
            height: 6px;
            transform: translateY(-50%);
            background: repeating-linear-gradient(
                to right,
                transparent 0px,
                transparent 10px,
                #333 10px,
                #333 12px
            );
            border-radius: 2px;
        }

        .film-text {
            background: rgba(0, 0, 0, 0.2); 
            color: #f5f5f5; 
            padding: 10px 15px;
            height: 100px;
            font-family: 'Courier New', Courier, monospace; 
            text-align: left;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.7); 
            border-radius: 4px;
        }

        .film-title {
            font-size: 1.2rem;
            font-weight: bold;
            margin: 0 0 4px 0;
            letter-spacing: 1px;
        }

        .film-description {
            font-size: 0.9rem;
            line-height: 1.4;
            color: #e0e0e0;
        }

        .film-roll .film-image.transition {
            transform: translateX(-10%) scale(1.05);
            filter: blur(4px);
            opacity: 0.7;
            pointer-events: none; 
        }

        .film-roll .film2,
        .film-roll .film1 {
            pointer-events: auto; 
        }


      .play-button {
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        cursor: pointer;
        z-index: 10;
        border-radius: 50%; 
        overflow: hidden;   
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .play-button img {
        top: 50px;
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 50%; 
        }

        .play-button:hover {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 
            0 0 10px 3px rgba(255,255,255,0.6),
            0 0 20px 10px rgba(255,255,255,0.4),
            0 0 30px 15px rgba(255,255,255,0.2);
        }

        .film-roll:hover .film,
        .film-roll.active .film {
        transform: translateY(-348px) rotateX(3deg) rotateY(1deg);
         transition: transform 0.5s ease, filter 0.5s ease;
        
        }

        .left-filmborder,
        .right-filmborder {
        position: absolute;
        top: 0;
        width: 60px;
        height: 398px;
        border-bottom: 20px solid black;
        border-top: 10px solid black;
        border-left: 10px solid black;
        border-right: 10px solid black;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        overflow: hidden;
        z-index: 2; 
         box-shadow: inset 2px 0 8px rgba(0,0,0,0.7),
                inset -2px 0 8px rgba(255,255,255,0.1);
        }

        .left-filmborder {
        left: -60px;
        }

        .right-filmborder {
        right: -60px;
        }

        .film-containertop,
        .film-containerbottom {
        position: absolute;
        background: black;
        width: 520px;
        height: 20px;
        border-radius: 10px;
        z-index: 3;
        }

        .film-containertop {
        top: -12px;
        left: -60px;
        }

       .film-containerbottom {
            position: absolute;
            bottom: -38px; 
            left: -10px;
            width: 420px;
            height: 60px; 
            background: black;
            border-radius: 0px;
            z-index: 3;
            display: flex;     
            justify-content: center; 
            align-items: center;     
        }

        .film-bottom-text {
            font-family: 'Orbitron', monospace;
            font-weight: 900;
            font-size: 1.5rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #111; 
            text-shadow:
                1px 1px 1px rgba(255,255,255,0.15),
                -1px -1px 2px rgba(0,0,0,0.8);
            -webkit-text-fill-color: transparent;
            position: relative;
        }

        .film-bottom-text::before {
            content: attr(data-text);
            position: absolute;
            top: 1px;
            left: 1px;
            color: rgba(0,0,0,0.6); 
            z-index: -1;
            -webkit-text-fill-color: transparent;
        }


        .holes-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        }

        .hole0,
        .hole1 {
        width: 45px;
        height: 34px;
        border-radius: 10px;
        outline: 12px solid black;
        margin-bottom: 13px;
        }

      .film-thumbnails {
        transform: translateX(-58px);
        width: 130%;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 50px; 
        position: relative; 
        z-index: 1;
    }


        .film-thumbnails .thumb {
            width: 162px; 
            position: relative;
            height: 90px;
            border: 3px solid rgba(255, 255, 255, 0.01);
            border-radius: 6px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            flex-shrink: 0;
            position: relative;
            background: #111; 
        }

        .film-thumbnails .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: inline-block;
        }

       .film-thumbnails .thumb::after {
            content: attr(data-title);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.6);
            color: white;
            font-size: 12px; 
            padding: 6px 12px;
            white-space: nowrap;
            text-align: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            display: flex;
            align-items: center;  
            justify-content: center; 
            height: 100%; 
            width: 100%;  
            box-sizing: border-box; /
            }

        .film-thumbnails .thumb:hover::after {
        opacity: 1;
        }

        .film-thumbnails .thumb:hover {
            transform: translateY(-5px) scale(1.05) rotateZ(1deg);
            box-shadow: 0 10px 30px var(--glow-primary);
            z-index: 5;
        }

        .film-thumbnails .thumb.active {
            border-color: var(--primary);
            box-shadow: 0 0 20px var(--glow-primary);

        }

        .film-thumbnails .thumb.filtered-out {
        opacity: 0;
        transform: scale(0.7);
        pointer-events: none;
        }

        .film-thumbnails .thumb[style*="display: none"] {
        opacity: 0;
        }

        .film-wrapper {
            display: flex;
            gap: 20px;
        }

        .gallery-wrapper {
        display: flex;
        justify-content: center; 
        width: 100%;
        }

        .gallery-main {
            display: flex;
            align-items: flex-start;
            justify-content: center; 
            gap: 100px; 
        }

        .film-filters {
        display: flex;
        flex-direction: column;
        gap: 15px;
        position: relative;
        transform: translate(-40px, 10px);
        z-index: 10;
        }

        .film-frame-wrapper {
            display: flex;
            justify-content: center;
        }

       .filter-btn {
        display: inline-block;
        font-size: 13px;
        letter-spacing: 5px;
        text-align: center;
        position: relative;
        min-width: 100px;
        margin: 8px;
        background: none;
        border: none;
        cursor: pointer;
        color: white;
        border-radius: 10px;
        padding: 5px 15px;
        box-sizing: content-box;
        border: 2px solid transparent;
        line-height: 30px;
        transition: 0.4s ease;
        text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
        filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.7));
        }

        .filter-btn:before,
        .filter-btn span:before,
        .filter-btn:after,
        .filter-btn span:after {
        display: block;
        content: "";
        width: 15px;
        height: 15px;
        position: absolute;
        transition: all 0.4s ease;
        }

        .filter-btn:before {
        top: -2px;
        left: -2px;
        border-top: 2px solid black;
        border-left: 2px solid black;
        border-top-left-radius: 8px;
        }

        .filter-btn:after {
        top: -2px;
        right: -2px;
        border-top: 2px solid black;
        border-right: 2px solid black;
        border-top-right-radius: 8px;
        }

        .filter-btn span:before {
        bottom: -2px;
        left: -2px;
        border-bottom: 2px solid black;
        border-left: 2px solid black;
        border-bottom-left-radius: 8px;
        }

        .filter-btn span:after {
        bottom: -2px;
        right: -2px;
        border-bottom: 2px solid black;
        border-right: 2px solid black;
        border-bottom-right-radius: 8px;
        }

        /* ---- Hover (tertiary) ---- */
        .filter-btn:hover {
        color: var(--tertiary);
        text-shadow: 0 0 6px var(--tertiary), 0 0 12px var(--tertiary);
        filter: drop-shadow(0 0 10px var(--tertiary));
        }

        .filter-btn:hover:before,
        .filter-btn:hover:after,
        .filter-btn:hover span:before,
        .filter-btn:hover span:after {
        border-color: var(--tertiary);
        width: 100%;
        height: 100%;
        border-radius: 10px;
        }

        /* ---- Active (primary) ---- */
        .filter-btn.active {
        color: var(--primary);
        text-shadow: 0 0 6px var(--primary), 0 0 12px var(--primary);
        filter: drop-shadow(0 0 10px var(--primary));
        }

        .filter-btn.active:before,
        .filter-btn.active:after,
        .filter-btn.active span:before,
        .filter-btn.active span:after {
        border-color: var(--primary);
        width: 100%;
        height: 100%;
        border-radius: 10px;
        }


        .film-content {
            display: flex;
            flex-direction: column; 
            gap: 30px; 
        }


                /* Responsivité */
        @media (max-width: 890px) {

        #gallery {
            height: auto !important;
            overflow: visible !important;
            margin-top: 60px;
            padding: 5%;
            min-height: 150vh;
        }

        .gallery-main {
            flex-direction: column; 
            align-items: center;
            gap: 20px;
        }

        .film-frame-wrapper {
            width: 90%;
            max-width: 400px;
            position: static !important;
        }

        .film-filters {
            flex-direction: row;       
            justify-content: center;   
            position: static !important;
            transform: none !important;
            margin-top: 35px;
            margin-bottom: 20px;
            gap: 0px;
        }

        .film-thumbnails {
            flex-wrap: wrap;
            justify-content: center;
            position: static !important;
            margin-top: 20px;
            margin-bottom: 40px;
            gap: 15px;
        }

        .filter-btn {
            margin: 0px -12px;  
            transform: scale(0.7); 
            padding:  5px 10px;
            }
        }

        @media (max-width: 540px) {
            .gallery-main {
            transform: scale(0.7);
        }

        #gallery h2{
            margin-top: 10px;
            margin-bottom: -60px;
        }
        }

        @media (max-width: 385px) {
            .gallery-main {
            transform: scale(0.6);
        }
        }



        /* Section 4:  Timeline */
        .timeline {
            padding: 100px 0;
            position: relative;
        }
        .timeline-container {
            max-width: 1100px;
            margin: 0 auto;
            position: relative;
            padding: 0 20px;
        }
        .timeline-line {
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(180deg, var(--primary), var(--tertiary));
            transform: translateX(-50%);
            border-radius: 2px;
            box-shadow: 0 0 20px rgba(215, 38, 56, 0.3);
        }
        .timeline-item {
            display: flex;
            justify-content: flex-end;
            padding-right: 60px;
            position: relative;
            margin-bottom: 60px;
        }
        .timeline-item:nth-child(even) {
            justify-content: flex-start;
            padding-left: 60px;
            padding-right: 0;
        }
        .timeline-content {
            max-width: 450px;
            padding: 30px 40px;
            position: relative;
            transform: perspective(1000px) rotateY(-5deg);
            transition: all 0.4s ease;
            background: rgba(215, 38, 56, 0.08);
            backdrop-filter: blur(25px);
            border: 1px solid rgba(215, 38, 56, 0.15);
            border-radius: 25px;
            z-index: 2;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        .timeline-item:nth-child(even) .timeline-content {
            transform: perspective(1000px) rotateY(5deg);
        }
        .timeline-content:hover {
            transform: perspective(1000px) rotateY(0deg) translateZ(20px);
            box-shadow: 0 25px 60px rgba(215, 38, 56, 0.2), 0 0 0 1px rgba(215, 38, 56, 0.2);
            border-color: rgba(215, 38, 56, 0.3);
        }
        .timeline-dot {
            position: absolute;
            left: 50%;
            top: 60px;
            transform: translateX(-50%);
            width: 24px;
            height: 24px;
            background: linear-gradient(135deg, var(--primary), var(--tertiary));;
            border-radius: 50%;
            box-shadow: 0 0 25px rgba(215, 38, 56, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3);
            z-index: 1;
        }
        .timeline-year {
            font-size: 1.8rem;
            color: var(--primary);
            margin-left: 340px;
            font-weight: bold;
            text-shadow: 0 0 20px rgba(255, 105, 0, 0.5); 
        }
        .timeline-content h4 {
            font-size: 1.5rem;
            font-family: 'Orbitron', monospace;
            color: #ffffff;
            margin-bottom: 20px;
            transform: translateY(-20px);
            font-weight: 600;
        }
        .timeline-content p {
            color: var(--text-secondary);
            line-height: 1.7;
            font-size: 1rem;
            transform: translateY(-20px);
        }
                
        /* Contact Section */
        .contact {
            padding: 60px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .contact h2{
            text-align: center;
            margin-top: 50px;
            margin-bottom: 60px;
        }

        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
        }

        .contact-form {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(41, 121, 255, 0.2);
            border-radius: 10px;
            padding: 40px;
            backdrop-filter: blur(10px);
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 500;
            text-transform: uppercase;
            font-size: 0.9rem;
            letter-spacing: 1px;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            font-size: 1rem;
            border-radius: 5px;
            transition: all 0.3s ease;
            font-family: 'Rajdhani', sans-serif;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 20px var(--glow-primary);
            background: rgba(255, 255, 255, 0.08);
        }

        .form-group textarea {
            min-height: 120px;
            resize: vertical;
        }

        .submit-btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(45deg, var(--primary), var(--tertiary));
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 1.1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Orbitron', monospace;
             transition: all 0.5s ease;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
        }

        .submit-btn span {
            display: inline-block;
            transition: opacity 0.3s ease;
        }

        .contact-info {
            padding: 40px;
        }

        .contact-info h3 {
            font-family: 'Orbitron', monospace;
            font-size: 2rem;
            margin-bottom: 30px;
        }

        .info-item {
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .info-item i {
            width: 50px;
            height: 50px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            transition: ease-in-out.3s;
        }

        .info-details p {
            opacity: 0.8;
        }

        .social-media {
        margin-top: 40px;
        }

        .social-media h4 {
        color: var(--primary);
        font-size: 1.5rem;
        margin-bottom: 20px;
        font-family: 'Orbitron', monospace;
        text-transform: uppercase;
        letter-spacing: 2px;
        }

        .social-icons {
        display: flex;
        gap: 25px;
        }

        .social-link {
        width: 50px;
        height: 50px;
        background-color: var(--tertiary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.8rem;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 0 10px rgba(255, 23, 68, 0.3);
        }

        .social-link:hover {
        background-color: var(--secondary);
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 0 20px rgba(123, 47, 247, 0.7);
        transition: all 0.3s ease;
        }

        @media (max-width: 768px) {
        .social-link {
            width: 55px;
            height: 55px;
            font-size: 1.4rem;
        }

        .social-icons {
            gap: 18px;
        }
        }

        .success-glitch {
        position: fixed;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, var(--couleur-principal), var(--couleur-secondaire));
        color: #fff;
        padding: 15px 25px;
        border-radius: 8px;
        font-family: 'Orbitron', monospace;
        font-size: 1rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        animation: glitchFade 3s ease forwards;
        box-shadow: 0 0 15px rgba(255, 23, 68, 0.5);
        z-index: 1000;
        }

        @keyframes glitchFade {
        0% { opacity: 0; transform: translateX(-50%) scale(0.8); }
        10%, 90% { opacity: 1; transform: translateX(-50%) scale(1); }
        100% { opacity: 0; transform: translateX(-50%) scale(1); }
        }

            .animated-message {
        font-family: 'Orbitron', monospace;
        color: var(--couleur-principal, #FF1744);
        font-size: 1.2rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-top: 20px;
        white-space: pre; /* pour respecter les espaces */
        overflow: hidden;
        border-right: 2px solid var(--couleur-principal, #FF1744);
        width: fit-content;
        }

        /* Animation du curseur clignotant */
        @keyframes blinkCursor {
            0%, 100% { border-color: transparent; }
            50% { border-color: var(--couleur-principal, #FF1744); }
        }

        .animated-message.blink {
            animation: blinkCursor 0.7s infinite;
        }

        @keyframes gradientAnimation {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
        }

        .gradient-btn {
        background: linear-gradient(45deg, #FF1744, #2979FF, #FFAB00, #FF1744);
        background-size: 300% 300%;
        animation: gradientAnimation 3s ease infinite;
        }

         /* Footer */
        footer {
            background: rgba(0, 0, 0, 0.8);
            border-top: 1px solid rgba(255, 94, 0, 0.2);
            padding: 40px 20px;
            text-align: center;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 20px;
        }

        .footer-links a {
            color: var(--primary);
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .footer-links a:hover {
            color: var(--tertiary);
            text-shadow: 0 0 10px currentColor;
        }

        .copyright {
            opacity: 0.6;
            font-size: 0.9rem;
        }

        .copyright a {
            color: var(--primary);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .copyright a:hover {
            color: var(--tertiary);
            text-shadow: 0 0 10px currentColor;
        }


        /* Mobile Responsive */
        @media (max-width: 890px) {

            nav {
                padding: 15px 20px;
            }

            .nav-links {
                position: fixed;
                top: 70px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 70px);
                background: rgba(10, 10, 10, 0.95);
                flex-direction: column;
                align-items: center;
                justify-content: start;
                padding-top: 50px;
                transition: left 0.3s ease;
            }

            .nav-links.active {
                left: 0;
            }

             .menu-toggle {
                display: flex;
            }

             nav.scrolled {
            padding: 10px;
            background: rgba(10, 10, 10, 0.95);
            box-shadow: 0 5px 30px rgba(255, 94, 0, 0.2);
             }

            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn-primary, .btn-secondary {
                transform: scale(0.7);
                margin: 0px;
            }

             .btn-primary:hover, .btn-secondary:hover{
                transform: translateY(-3px) scale(0.7);
            }

            .section-title {
                font-size: 2rem;
            }
            
            .btn-primary, .btn-secondary {
                width: 100%;
                max-width: 300px;
            }
            
            .pricing-grid {
                grid-template-columns: 1fr;
            }
            
            .pricing-card.featured {
                transform: none;
            }

            #timeline{
                transform: scale(0.7);
            }

             .timeline-content {
            
             width: 100%;
             font-size: 0.8em;
            padding: 40px 30px;
            position: relative;
            transform: none;
             }
            .timeline-year {
            font-size: 0;
            }

            .contact{
            max-width: 100%;
            width: 100%;
            margin: 0;     
            padding: 40px 15px; 
         }

            .contact-container {
            transform: scale(0.7) translate(0px,-180px);
            display: grid;
            grid-template-columns: 1fr ;
            gap: 30px;
            padding: 0;
            left: 0;
        }

        .contact-form,
        .contact-info {
            padding: 20px;
        }

         .contact h2{
            transform: translateY(60px);
         }

          .about-visual {
            transform: scale(1.2) translateY(-30px);
        }
    }
      @media (max-width: 380px) {
        .contact{
            text-align: left;
            max-width: 100%;
            width: 100%;
            margin: 0;     
            padding: 40px 15px; 
        }

         .contact-container {
        transform: scale(0.7) translate(-50px,-180px);
         }

         .contact h2{
            transform: translateY(60px);
         }

      }

        /* Scroll animations */
        .fade-up {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s ease;
        }

        .fade-up.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Data streams */
        .data-streams {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -3;
            pointer-events: none;
        }

        .data-stream {
            position: absolute;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--primary), transparent);
            opacity: 0;
            animation: dataFlow 3s ease-in-out infinite;
        }

        .data-stream:nth-child(odd) {
            background: linear-gradient(90deg, transparent, var(--secondary), transparent);
            animation-duration: 4s;
        }

        @keyframes dataFlow {
            0% {
                width: 0;
                opacity: 0;
                transform: translateX(0);
            }
            50% {
                width: 300px;
                opacity: 0.8;
            }
            100% {
                width: 0;
                opacity: 0;
                transform: translateX(100vw);
            }
        }

        /* Performance optimization for mobile */
        @media (max-width: 768px) {
            .matrix-rain {
                display: none;
            }
            
            .particles {
                opacity: 0.5;
            }
            
            .particle {
                animation-duration: 30s !important;
            }
            
            .orb {
                filter: blur(100px);
                opacity: 0.3;
            }
            
            .scanlines::before {
                animation: none;
                transform: translateY(0);
            }
            
            .data-streams {
                display: none;
            }
            
            .noise-overlay {
                display: none;
            }

            
            .about-content,
            .contact-container {
                grid-template-columns: 1fr;
            }

            .about-graphic {
                width: 40vw;
                height: 40vw;
            }
        }

        /* Reduced motion for accessibility */
        @media (prefers-reduced-motion: reduce) {
            .cyber-gradient,
            .grid-lines,
            .grid-glow,
            .particle,
            .orb,
            .matrix-column,
            .scanlines::before,
            .data-stream {
                animation: none !important;
            }
        }
