@property --fade {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

@property --fade-side {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

/* Variables de couleurs */
:root {
    --bg-color: #050505;
    --bg-purple-halo: rgba(35, 35, 35, 0.3);
    --bg-cyan-halo: rgba(100, 100, 100, 0.2);
    --text-color: #e0e0e0;
    --accent-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.2);
    --bg-btn-color: #e0e0e0;
    --glow: 0 0 10px rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: pan-y;
    -webkit-touch-callout: none;
}

html, body {
    width: 100%;
    overflow: hidden;
    touch-action: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        url("../assets/svg/noise-fine.svg"),
        url("../assets/svg/noise-medium.svg"),
        url("../assets/svg/noise-grain.svg");
    background-repeat: repeat;
    background-size:
        100px 100px,
        200px 200px,
        400px 400px;
    opacity: 0.5;
    mix-blend-mode: screen;
    filter: contrast(1.2);
    pointer-events: none;
    z-index: 2;
}

body {
    position: relative;
    background: var(--bg-color);

    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;

    -ms-overflow-style: none;
    scrollbar-width: none;
}

body > * {
    position: relative;
    z-index: 3;
}

.page {
    height: 100dvh; 
    width: 100%;
}

.lineDash {
    height: 0.35em;
    width: auto;
    display: inline-block;
    margin: 0 1vw;
    vertical-align: middle;
}

.lineDashInvert {
    height: 0.35em;
    width: auto;
    display: inline-block;
    margin: 0 1vw;
    transform: scaleX(-1);
    vertical-align: middle;
}

/* ==========================================
   1. HERO SECTION (FIRST PAGE)
   ========================================== */

.heros {
    background:
    radial-gradient(
      ellipse at center,
      rgba(255,255,255,0.04) 0%,
      rgba(0,0,0,0.75) 65%,
      rgba(0,0,0,0.95) 100%
    );
    mix-blend-mode: screen;
    filter: contrast(1.2);
    overflow: hidden;
}

.planet {
    position: absolute;
    bottom: -55vh;
    left: 50%;
    transform: translateX(-50%);
    width: 130vw;
    height: 70vh;
    border-radius: 50%;
    background-color: var(--bg-color);
    overflow: visible;
}

.planet::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: transparent;
    box-shadow:
        0 0 0 2px rgba(255,255,255,1),
        0 0 10vh rgba(255,100,255,0.4),
        0 0 20vh rgba(128,0,255,0.3),
        0 0 40vh rgba(0,255,255,0.3);
    pointer-events: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 100px;
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.title span {
    display: block;
    font-size: 1rem;
    font-weight: normal;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-talk {
    border: 1px solid var(--accent-color);
    padding: 8px 15px;
    border-radius: 4px;
}

.hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: min(6vw, 4.5rem);
    letter-spacing: min(8px, 0.4vw);
    margin-bottom: 10px;
    text-shadow: var(--glow);
    white-space: nowrap;
}

.hero p {
    white-space: nowrap;
}

h2 {
    white-space: nowrap;
}

.subtitle {
    font-size: min(3vw, 1rem);
    letter-spacing: min(3px, 0.2vw);
    letter-spacing: 3px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-outline {
    text-decoration: none;
    color: var(--bg-btn-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 1rem;
}

.btn-outline:hover {
    background: var(--bg-btn-color);
    color: black;
    box-shadow: var(--glow);
}

/* ==========================================
   2. SERVICES SECTION (SECOND PAGE)
   ========================================== */

section {
    padding: 5vh 5%;
    text-align: center;
}

h2 {
    font-size: min(4vw, 2rem);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: min(5px, 0.3vw);
    margin-bottom: 10px;
}

.grid-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.services {
    position: relative;
    overflow: hidden;
}

.aurora-layer {
    position: absolute;
    left: 0;
    width: 300%;
    height: 100%;
    background-repeat: repeat-x;
    filter: blur(7px);
    mix-blend-mode: screen;
    opacity: 0.5;
    pointer-events: none;
    z-index: 2;
    animation: moveAurora 60s linear infinite, floatAurora 6s ease-in-out infinite;
}

.aurora1 {
    background-image: url('../assets/images/aurora1.webp');
    top: 25%;
    animation: moveAurora 60s linear infinite;
}
.aurora2 {
    background-image: url('../assets/images/aurora2.webp');
    top: 20%;
    animation: moveAurora 120s linear infinite;
}
.aurora3 {
    background-image: url('../assets/images/aurora3.webp');
    top: 15%;
    animation: moveAurora 90s linear infinite;
}

@keyframes moveAurora {
    0% { background-position-x: 0; }
    100% { background-position-x: -100%; }
}

@keyframes floatAurora {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

.services > *:not(.aurora-layer) {
    position: relative;
    z-index: 5;
}

.services::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to bottom, black 0%, transparent 25%);
}

.service-card {
    flex: 1 1 calc(25% - 20px);
    width: clamp(250px, 15vw, calc(25% - 20px));
    border: 1px solid var(--border-color);
    padding: 40px 20px;
    background:
    radial-gradient(
      ellipse at center,
      rgba(40, 40, 40, 0.80) 0%,
      rgba(20, 20, 20, 0.9) 65%,
      rgba(0,0,0,0.95) 100%
    );
    mix-blend-mode: screen;
    filter: contrast(1.2);
    transition: 0.3s;
}

.service-card:hover {
    border-color: white;
    transform: translateY(-5px);
}

.service-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
}

.service-card .icon {
    margin-bottom: 15px;
}

.service-card .icon img {
    width: min(50%, 50px);
    object-fit: contain;
    color: white;
}

/* ==========================================
   3. PROJECTS SECTION (THIRTH PAGE)
   ========================================== */

.projects {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.star-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8); /* Effet de halo */
    animation: twinkle var(--duration) infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(0.8); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
    }
}

.projects-carousel-wrapper {
    position: relative;
    max-width: 1100px;
    margin: auto;
}

.projects-carousel {
    position: relative;
    overflow: visible;
}

.carousel-track {
    perspective: 1200px; 
    transform-style: preserve-3d;
    position: relative;
    height: 470px;
}

.project-card {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 420px;
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    
    transform-style: preserve-3d;
    backface-visibility: hidden;

    --edge-left: calc(1 - var(--fade) * clamp(0, calc(-1 * var(--fade-side)), 1));
    --edge-right: calc(1 - var(--fade) * clamp(0, var(--fade-side), 1));

    --mask-shape: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='10' ry='10' fill='white'/%3E%3C/svg%3E");

    --mask-gradient: linear-gradient(
        to right,
        rgba(0,0,0, var(--edge-left)) 0%,
        rgba(0,0,0, calc(var(--edge-left) + (1 - var(--edge-left)) * 0.15)) 10%,
        rgba(0,0,0, calc(var(--edge-left) + (1 - var(--edge-left)) * 0.5)) 25%,
        rgba(0,0,0, 1) 40%,
        rgba(0,0,0, 1) 60%,
        rgba(0,0,0, calc(var(--edge-right) + (1 - var(--edge-right)) * 0.5)) 75%,
        rgba(0,0,0, calc(var(--edge-right) + (1 - var(--edge-right)) * 0.15)) 90%,
        rgba(0,0,0, var(--edge-right)) 100%
    );

    -webkit-mask-image: var(--mask-shape), var(--mask-gradient);
    mask-image: var(--mask-shape), var(--mask-gradient);

    -webkit-mask-composite: source-in;
    mask-composite: intersect;

    background-color: #0b0b0b;
    background-image: linear-gradient(rgba(255,255,255,0.03), transparent);

    transition:
        transform 1s cubic-bezier(.4,0,.2,1),
        opacity 1s ease,
        filter 1s ease,
        --fade 1s ease,
        --fade-side 1s ease;
}

.project-card.is-center {
    --fade: 0;
    --fade-side: 0;
    transform: translate(-50%, -50%) translateZ(0px) rotateY(0deg);
    z-index: 10;
    opacity: 1;
}

.project-card.is-left {
    --fade: 1;
    --fade-side: -1;
    transform: translate(-50%, -50%) translateX(-300px) translateY(15px) translateZ(-100px) scale(.85) rotateY(-25deg);
    z-index: 1;
}

.project-card.is-right {
    --fade: 1;
    --fade-side: 1;
    transform: translate(-50%, -50%) translateX(300px) translateY(15px) translateZ(-100px) scale(.85) rotateY(25deg);
    z-index: 1;
}

.project-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 16px;
    text-align: center;
}

.project-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin: 10px auto;
}

.project-info p {
    font-size: 1rem;
    opacity: 0.6;
}

.project-card a {
    margin: auto auto 10px auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.3);
    color: white;
    font-size: 32px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 5;
    transition: background .3s;
}

.carousel-btn:hover {
    background: rgba(255,255,255,.25);
}

.carousel-btn.prev { left: -35vw; }
.carousel-btn.next { right: -35vw; }

.projects-button {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================
   4. ABOUT SECTION (FOURTH PAGE)
   ========================================== */

.about {
    overflow: hidden;
    position: relative;
}

.about-container {
    position: relative;
    z-index: 10;
}

.about-text {
    max-width: 700px;
    margin: 20px auto 40px;
    opacity: 0.8;
    text-align: justify;
}

.btn-outline.small {
    padding: 8px 20px;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 10px;

    z-index: 10;
}

.copyright {
    grid-column: 1 / 4;
}

.info {
    text-align: left;
}

.footer-block {
    width: 80%;
    margin: auto;
    margin-bottom: 10px;
}

.footer-block h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-block p {
    font-size: 1rem;
}

.footer-block p span {
    font-weight: bold;
}

.footer-block ul {
    list-style: none;
}

.footer-block a {
    text-decoration: none;
    color: var(--bg-btn-color);
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-block a:hover {
    color: var(--accent-color);
    text-shadow: var(--glow);
}

.cgu-short {
    display: none;
}

.copyright p {
    opacity: 0.8;
    font-size: 0.8rem;
}

.mountain-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100vw; 
    height: 50vw;
    min-height: 80vh;

    z-index: 1;
    pointer-events: none;
}

.mountain-container img {
    position: absolute;
    bottom: 0px;
    left: 0px;

    height: 100%;
    width: 100%;

    object-fit: cover;
    display: block;
}

.fog-container {
    position: absolute;
    bottom: 0px;
    left: 0px;

    height: 100%;
    width: 100%;
}

.fog-container svg {
    height: 100%;
    width: 100%;
    display: block;
}

.mist-1 {
    filter: blur(20px);
    animation: drift-1 25s linear infinite alternate;
}

.mist-2 {
    filter: blur(20px);
    animation: drift-2 20s linear infinite alternate;
}

.mist-3 {
    filter: blur(20px);
    animation: drift-3 15s linear infinite alternate;
}

.fog-container.back {
    z-index: 1;
}

.mountain-container img.back {
    z-index: 2;
}

.fog-container.middle {
    z-index: 3;
}

.mountain-container img.middle {
    z-index: 4;
}

.fog-container.front {
    z-index: 5;
}

.mountain-container img.front {
    z-index: 6;
}

@keyframes drift-1 {
    from { 
        transform: translateX(-10%);
    }
    to { 
        transform: translateX(10%);
    }
}

@keyframes drift-2 {
    from { 
        transform: translateX(-20%);
    }
    to { 
        transform: translateX(20%);
    }
}

@keyframes drift-3 {
    from { 
        transform: translateX(-15%);
    }
    to { 
        transform: translateX(15%);
    }
}

.nappe-1 { 
    animation-duration: 15s; 
}
.nappe-2 { 
    animation-duration: 25s; 
}
.nappe-3 { 
    animation-duration: 25s; 
}
.nappe-4 { 
    animation-duration: 15s; 
}
.nappe-5 { 
    animation-duration: 15s; 
}



/* --- HEADER & PLANET TOP --- */
.header-container {
    position: relative;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 50;
}

.header-container .navbar {
    width: 100%;
    padding: 20px 5%;
    position: relative;
}

.planet-top {
    position: absolute;
    top: -400px;
    left: 50%;
    transform: translateX(-50%);
    width: 150vw;
    height: 600px;
    border-radius: 50%;
    background-color: var(--bg-color);
    box-shadow:
        0 0 0 2px rgba(255,255,255,1),
        0 0 10vh rgba(255,100,255,0.4),
        0 0 20vh rgba(128,0,255,0.3);
    z-index: 1;
}

/* --- CONTENT --- */
.content-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 20px;
    margin-top: -10vh;
    margin-bottom: -70vh;
    z-index: 10;
}

.hero-simple h1 {
    position: absolute;
    left: -25%;
    right: -25%;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: min(5vw, 3.5rem);
    letter-spacing: min(8px, 0.4vw);
    text-shadow: var(--glow);
    white-space: nowrap;
}

.page-simple h2 {
    font-size: min(3vw, 1.5rem);
    letter-spacing: min(3px, 0.2vw);
    font-family: 'Orbitron', sans-serif;
    margin-top: 20px;
    margin-bottom: 15px;
    white-space: nowrap;
}

.text-block {
    text-align: justify;
    line-height: 1.8;
    opacity: 0.8;
    font-size: 1.1rem;
}

.text-block span {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: 20px;
    margin-bottom: 15px;
}

.text-block p { margin-bottom: 20px; }

.text-block p span {
    font-size: 1.3rem;
    font-weight: bold;
    opacity: 1;
}

.text-block a {
    text-decoration: underline;
    color: var(--bg-btn-color);
}

.text-block a:hover {
    color: var(--accent-color);
    text-shadow: var(--glow);
}

.footer-section {
    position: relative;
    height: 100dvh;
    display: flex;
    align-items: flex-end;
}



/* Style des champs */
.input-group {
    position: relative;
    margin-bottom: 25px;
    text-align: left;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.input-group textarea {
    height: 120px;
    resize: none;
}

/* Animation des labels (effet flottant) */
.input-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: 0.3s;
}

.input-group textarea + label {
    top: 20px;
}

/* Quand on clique ou remplit le champ */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 8px;
    font-size: 0.75rem;
    color: #00d4ff; /* Couleur néon pour rappeler ton thème */
    background: #0b0b0b; /* Pour couper la bordure proprement */
    padding: 0 5px;
}

/* Bouton Neon */
.submit-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
    color: var(--bg-btn-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 1rem;
}

.submit-btn:hover {
    background: var(--bg-btn-color);
    color: black;
    box-shadow: var(--glow);
}

.burger-menu {
    display: none; /* Caché sur ordinateur */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
}

.burger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
}


.projet-1 {
    width: 100%;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-block {
    width: 80%;
    max-height: 95dvh;
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

.banner-wrapper {
    position: relative;
    width: 100%;
    border-radius: 15px 15px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.banner-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.project-detail::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
    radial-gradient(
        ellipse at center,
        rgba(var(--color-project),0.2) 0%,
        transparent 70%
    );
}

.project-detail {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

.project-text h3 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: min(1.1rem, 2vw);
}

.project-text p {
    margin: 2vh auto;
    width: 70%;
}

.project-text p span {
    font-weight: bold;
}

.project-links {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.project-links a {
    margin: 0 10px;
    filter: grayscale(1);
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: filter 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.project-links a:hover {
    filter: grayscale(0);
    box-shadow: 0 0 10px rgba(var(--color-project),0.6);
    transform: translateY(-2px);
}

.get-it img {
    height: 40px;
    display: block;
}

.project-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-slides-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 300%; /* 100% par slide (ici 2 slides = 200%) */
    height: 100%;
}

.slide {
    position: relative;
    flex: 1 0 50%;
    min-height: 100%;

    flex: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-arrow:hover {
    color: rgb(var(--color-project));
    text-shadow: 0 0 10px rgba(var(--color-project), 0.8);
}

.left { left: 10px; }
.right { right: 10px; }

.bullets-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bullet.active {
    background: rgb(var(--color-project));
    box-shadow: 0 0 10px rgb(var(--color-project));
    transform: scale(1.3);
}

.screenshot-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.screenshot-carousel {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.screenshot-track {
    perspective: 1200px; 
    transform-style: preserve-3d;
    position: relative;
    height: 100%;
}

.screenshot-card {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 250px;
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    
    transform-style: preserve-3d;
    backface-visibility: visible;

    --edge-left: calc(1 - var(--fade) * clamp(0, calc(-1 * var(--fade-side)), 1));
    --edge-right: calc(1 - var(--fade) * clamp(0, var(--fade-side), 1));

    --mask-shape: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='10' ry='10' fill='white'/%3E%3C/svg%3E");

    --mask-gradient: linear-gradient(
        to right,
        rgba(0,0,0, var(--edge-left)) 0%,
        rgba(0,0,0, calc(var(--edge-left) + (1 - var(--edge-left)) * 0.15)) 10%,
        rgba(0,0,0, calc(var(--edge-left) + (1 - var(--edge-left)) * 0.5)) 25%,
        rgba(0,0,0, 1) 40%,
        rgba(0,0,0, 1) 60%,
        rgba(0,0,0, calc(var(--edge-right) + (1 - var(--edge-right)) * 0.5)) 75%,
        rgba(0,0,0, calc(var(--edge-right) + (1 - var(--edge-right)) * 0.15)) 90%,
        rgba(0,0,0, var(--edge-right)) 100%
    );

    -webkit-mask-image: var(--mask-shape), var(--mask-gradient);
    mask-image: var(--mask-shape), var(--mask-gradient);

    -webkit-mask-composite: source-in;
    mask-composite: intersect;

    background-color: #0b0b0b;
    background-image: linear-gradient(rgba(255,255,255,0.03), transparent);

    transition:
        transform 1s cubic-bezier(.4,0,.2,1),
        opacity 1s ease,
        filter 1s ease,
        --fade 1s ease,
        --fade-side 1s ease;
}

.screenshot-card.is-center {
    --fade: 0;
    --fade-side: 0;
    transform: translate(-50%, -50%) translateZ(0px) rotateY(0deg);
    z-index: 10;
    opacity: 1;
}

.screenshot-card.is-left {
    --fade: 1;
    --fade-side: -1;
    transform: translate(-50%, -50%) translateX(-180px) translateY(15px) translateZ(-100px) scale(.95) rotateY(335deg);
    z-index: 5;
}

.screenshot-card.is-right {
    --fade: 1;
    --fade-side: 1;
    transform: translate(-50%, -50%) translateX(180px) translateY(15px) translateZ(-100px) scale(.95) rotateY(25deg);
    z-index: 5;
}

.screenshot-card.is-left-hidden {
    transform: translate(-50%, -50%) translateX(-110px) translateY(25px) translateZ(-500px) scale(.85) rotateY(205deg);
    opacity: 0.3;
}

.screenshot-card.is-right-hidden {
    transform: translate(-50%, -50%) translateX(110px) translateY(25px) translateZ(-500px) scale(.85) rotateY(165deg);
    opacity: 0.3;
}

.screenshot-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}