html {
    scroll-behavior: smooth;
}

@font-face {
  font-family: "SohneBreitExtrafettKursiv";
  src: url("Assets/Fonts/TestSohneSchmal-Fett-BF663d89cadad5a.otf") format("opentype");
  font-weight: 900;
}

@font-face {
  font-family: "BrotherhoodScriptFont";
  src: url("Assets/Fonts/BrotherhoodScriptFont-Regular.ttf") format("opentype");
  font-weight: 900;
}

body {
    font-family: 'SohneBreitExtrafettKursiv', sans-serif;
    background-color: #151E2E;
    margin: 0;
    overflow-x: hidden;
}

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

/* --- HEADER --- */
.wrapper {
    width: 100%;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: white;
}

.header h1, .header a {
    display: flex;
    flex-shrink: 0;
    margin: 0 70px;
    font-size: 45px;
    transform: scaleX(1.3);
}

a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: rgb(176 120 255);
}

@media (max-width: 1000px){
    
    body::-webkit-scrollbar{
        display: none;
    }
    .wrapper {
        display: flex;
        justify-content: center;
        margin-left: -25px;
    }
    .header h1, .header a {
        font-size: 20px;
    }   
    a:hover {
        color: rgb(176 120 255);
    }
}

/* --- HERO SECTION --- */
.hero-scroll-area {
    height: 370vh; 
}

.hero {
    position: sticky;
    top: 0;
    width: 200vw;
    height: 100vh;
    background-image: url(Assets/Images/Intro.png);
    opacity: 0.85;
    background-size: cover;
    background-position: left center;
    display: flex;
    justify-content:center;
    align-items: center;
}

.overlay h1 {
    font-size: 12vw; /* Responsive font size */
    font-weight: 900;
    letter-spacing: -1px;
    transform: scaleX(1.3);
    background: linear-gradient(to left, #DDCAF8, rgb(128,61,223));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 1000px){
    .hero-scroll-area {
        margin-top: -20px;
        height: 320vh;             
        margin-left: 0;            
        overflow: hidden;
    }

    .hero {
        width: 830vw;
        background-size: 90%;
        background-position: left center;
        background-repeat: no-repeat;
        will-change: transform;
    }

    .overlay h1 {
        font-size: 40vw;
        margin-left: -350px;            /* 40vw was breaking layout */
        text-align: center;
    }
}

/* --- FLOATING NAV --- */
.floating {
    position: fixed;
    z-index: 9999;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    
    padding: 15px 25px;
    background-color: #F6EDFF;
    border-radius: 52px;
    box-shadow: 0px 10px 20px 3px rgba(0, 0, 0, 0.144), inset 0px 0px 20px 8px rgb(255, 255, 255);
    
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    letter-spacing: -0.5px;
    font-size: 20px;
    font-weight: normal;
    a:hover{
        color: rgb(223, 223, 223);
    }
}

.floating .versionButton, 
.floating .featuredButton {
    font-size: 28px;
    background-color: rgba(129, 61, 223, 0.83);
    padding: 12px 25px;
    border-radius: 32px;
    box-shadow: 0px 6px 10px 0px rgba(0, 0, 0, 0.16), inset 0px 0px 20px 8px rgb(181, 138, 243);
}

.floating .indexButton {
    background-color: rgba(129, 61, 223, 0.83);
    padding: 8px 10px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    box-shadow: 0px 6px 10px 0px rgba(0, 0, 0, 0.16), inset 0px 0px 20px 8px rgb(181, 138, 243);
}

.floating img {
    margin-bottom: -5px;
    height: 40px;
    width: auto;
}

@media (max-width: 1000px){
    .floating{
        position: fixed;
        left: 50%;
        bottom: 4dvh;
        width: calc(100vw - 24px);
        max-width: 310px;
        height: 50px;
        gap: 8px;
    }    

    .floating .versionButton, 
    .floating .featuredButton{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80px;
        height: auto;
        font-size: 25px;
    }
    .floating .indexButton{
        width: 40px;
        height: auto;    
    }
    .floating img{
        height: 38px;
        width: auto;
    }
}

/* --- FEATURED SECTION --- */
.featured {
    box-sizing: border-box;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 100px 20px;
    padding-top: 150px;
    background-color: #F6EDFF;
    
    view-timeline-name: --sectionTimeline;
    view-timeline-axis: block;
    animation: color-change 1s linear both;
    animation-timeline: --sectionTimeline;
    animation-range: entry 10% entry 100%;
}

@keyframes color-change {
  from { background-color: transparent; }
  to   { background-color: #F6EDFF; }
}   

/* The Container for Cards */
#card-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.card-column {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; 
    width: 83%; 
    max-width: 1400px;
    height: auto;
    min-height: 450px;
    min-width: 380px;
    padding: 0 60px;
    border-radius: 60px; 
    transition: transform 0.3s ease;
    pointer-events: none;
    gap: 40px;
}

.card-column > h1 {
    flex: 0 0 auto; 
    font-size: clamp(60px, 8vw, 130px);
    font-size: 240px;
    color: white;
    margin: 0; 
    line-height: 1;
    margin-right: 40px;
}


/* --- TEXT SIDE (Left) --- */
.heading {
    flex: 1; /* Takes up left half */
    flex-basis: 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    margin-top: 0; 
    position: static; /* Resetting position */
    width: auto;
    height: auto;
}

.heading h1 {
    font-size: clamp(60px, 8vw, 130px); /* Responsive big text */
    color: white;
    font-size: 150px;
    margin: 0 0 0px 0;
    line-height: 0.9;
    width: 600px;
    text-transform: uppercase;
}

/* The Download Button */
.heading a {
    background-color: white;
    color: #151E2E;
    padding: 18px 60px;
    font-size: 24px;
    font-family: 'Franklin Gothic Medium', Arial, sans-serif;
    font-weight: 900;
    border-radius: 50px;
    border: none;
    text-transform: capitalize;
    margin-top: 0;
    text-decoration: none;
    transition: transform 0.2s;
    pointer-events: all;
}

.heading a:hover{
    color: #bd8cff;
}


.heading p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 10px;
    font-family: 'Franklin Gothic Medium', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 30px;
    transform: none;
}

/* --- IMAGE SIDE (Right) --- */
.cardLink {
    flex: 1; /* Takes up right half */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 300px;
    z-index: 2;
    pointer-events: all;
}

/* The Tactical Screenshot */
.cardImg {
    width: 420px;
    height: auto;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

/* The Plastic CD Case Overlay */
.plastic-cover {
    position: absolute;
    width: 480px; /* Slightly larger than image */
    height: auto;
    z-index: 5;
    top: 50%;
    left: 49.5%;
    transform: translate(-50%, -50%);
    z-index: 3;
}
.top {
    background-color: #bd8cff;
}

.standout {
    background-color: #2b213a;
}

.recent {
    background-color: #000000;
}

@media (max-width: 1000px) {
    .featured{
        margin-top: -1900px;
    }
    #card-container{
        gap: 40px;
    }
    .card-column {
        flex-direction: column; 
        padding: 40px 0px;
        height: auto;
        gap: 40px;
        text-align: center;
    }

    .heading h1 {
        font-size: 90px;
    }

    .heading p {
        font-size: 12px;
    }
    
    .card-column > h1{
        font-size: 90px;
        margin: 0px;
        margin-bottom: -30px;
    }

    .cardImg {
        margin-top: 10px;
        width: 85%;
    }
    
    .plastic-cover {
        margin-top: 6px;
        width: 100%;
    }
}

/* --- VERSIONS SECTION --- */
.version {
    box-sizing: border-box;
    position: relative;
    background-color: #F6EDFF;
    font-family: 'BrotherhoodScriptFont', sans-serif;
    padding: 100px 0;
    padding-bottom: 200px;
    width: 100%;
    overflow: hidden; /* Essential to crop anything that flies too far */
    perspective: 1500px;
}

/* Slider Track */
.version-slider {
    display: flex;
    width: 200%;
    will-change: transform; /* VITAL: Tells browser to keep this in GPU memory */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Individual Slide */
.slide {
    width: 100%; /* Each slide is half of the 200% container */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 800px; /* Fixed height to keep layout stable */

    content-visibility: auto; 
    contain-intrinsic-size: 800px;
}

/* The Wrapper that holds the 3 cards */
.tactic-container {
    position: relative;
    width: 870px; /* Set a base size for the center card */
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transform-style: preserve-3d;
    transform: rotateX(18deg) rotateY(12deg) rotateZ(0deg); 
    transition: transform 0.4s ease;
}


/* Generic Card Base */
.version-card {
    position: absolute;
    top: 0;
    width: 100%; 
    height: auto;
    pointer-events: auto;
    padding-bottom: 70px;
    transition: 
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
        translate 0.2s ease-out,
        filter 0.2s ease,
        z-index 0s;
}

.card0 {
    width: 100%; 
    height: auto;
    z-index: 1000;
    pointer-events: none;
    /* VITAL: This line was missing. It tells the class to use the JS variables */
    transform: translateX(var(--x-move, 0px)) translateY(var(--y-move, 0px)); 
    
    .sticky-note {
        width: 650px;
        height: auto;
        transform: translateX(85px) translateY(-380px);
        filter: drop-shadow(3px 25px 5px rgba(0, 0, 0, 0.137));
    }
}


/* This single class handles ANY number of cards */
.dynamic-card {
    position: absolute;
    pointer-events: none;
    z-index: var(--z-layer, 1);
    /* This connects the JS variables to the actual movement */
    transform: translateX(var(--x-move, 0px)) translateY(var(--y-move, 0px));
    
    filter: drop-shadow(1px -1px 0px rgba(255, 255, 255, 0.295));
    transition: 
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
        translate 0.2s ease-out,
        filter 0.2s ease;
}


.tactic-container .version-card.active {
    margin-top: -90px;
    z-index: 100 !important; /* Force on top of everything */
    width: 145%;
        
    .download-tactic, a {
        font-size: 47px;
        left: 58%;
        bottom: 17%;
    }
    .thread, a {
        font-size: 47px;
        left: 58%;
        bottom: 32%;
    }
    p {
        font-size: 32px;
        left: 58%;
    }
    h1 {
        font-size: 36.5px;
    } 
    
    .plastic-cover{
        width: 700px;
        transform: translateX(-590px) translateY(-260px);
    }

    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);

    pointer-events: auto;
    transform-style: preserve-3d;
    transform: rotateY(-12deg) rotateX(-18deg) translateX(20px) translateY(-80px) translateZ(200px);
}


.cardEnd {
    width: 100%;
    height: auto;
    
    /* VITAL: Add the transform logic here too */
    transform: translateX(var(--x-move, 0px)) translateY(var(--y-move, 0px));
    
    filter: drop-shadow(20px -10px 20px rgba(0, 0, 0, 0.192));
}


.tactic-container .version-card.active:hover{
    translate: 0px 0px;
}

.tactic-container .version-card:hover{
    translate: 0px -23px;
    cursor: pointer;
}

/* Background Card Image */
.version-card .bg-card {
    margin-bottom: -40px;
    width: 100%;
    height: auto;
    display: block;
}

.version-card .plastic-cover{
    width: 480px;
    transform: translateX(-405px) translateY(-180px);
}

/* The Tactic Screenshot */
.version-card .cardThumbnail {
    position: absolute;
    top: 19%;
    left: 31%;
    transform: translateX(-50%);
    width: 48%;
    z-index: 1; 
}
.version-card .cardThumbnail img {
    width: 100%;
    border-radius: 6px;
}

/* Text Positioning */
.version-card h1 {
    font-family: 'Franklin Gothic Medium', Arial, sans-serif;
    color: white;
    font-size: 25px;
    position: absolute;
    top: 7%;
    left: 10.3%;
    margin: 0;
    text-shadow: 1px 1px 2px black;
    pointer-events: auto;
}

.version-card p {
    font-family: 'Franklin Gothic Medium', Arial, sans-serif;
    color: white;
    font-size: 27px;
    position: absolute;
    top: 13%;
    left: 59%;
    width: 35%; /* Restrict width so it wraps */
    line-height: 1.2;
    text-shadow: 1px 1px 2px black;
    pointer-events: auto;
}

/* Download Button */
.download-tactic {
    position: absolute;
    bottom: 18%;
    left: 58%;
    background-color: white;
    color: black;
    font-family: 'Franklin Gothic Medium', Arial, sans-serif;
    font-size: 33px;
    padding: 20px 25px;
    border-radius: 30px;
    text-decoration: none;
}
.thread{
    position: absolute;
    bottom: 35%;
    left: 58%;
    background-color: white;
    color: black;
    font-family: 'Franklin Gothic Medium', Arial, sans-serif;
    font-size: 33px;
    padding: 20px 32px;
    border-radius: 30px;
    text-decoration: none;
}


/* Background Number (24/26) */
.digit {
    width: 1500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Slider Navigation */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 100px;
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    transition: color 0.3s;
}

.nav:hover { color: rgba(0, 0, 0, 0.8); }
.prev { left: 40px; }
.next { right: 40px; }

@media (max-width: 1000px) {
    .version {
        overflow: hidden; /* Prevent horizontal overflow */
        padding-bottom: 150px;
    }

    .version-slider {
        width: 200vw;
        margin-top: -120px;
        margin-bottom: -100px;
        display: flex;
    }

    .slide {
        width: 100vw; /* Changed from 140vw - fits viewport */
        height: 1000px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        left: 0; /* Reset positioning */
    }

    .tactic-container {
        width: 720px; /* Reduced from 870px to fit mobile */
        height: 640px;
        transform: scaleX(0.85) scaleY(0.75) rotateX(18deg) rotateY(12deg) rotateZ(90deg) translateY(10px);
        margin-left: -200px;
    }

    .card0 {
        .sticky-note {
            transform: scale(0.63) rotateZ(-90deg) translateX(500px) translateY(-35px);
        }
    }
    
    .digit {
        width: 120vw; /* Reduced to fit viewport */
        height: auto;
        margin-left: -10px;
        max-height: 25%;
    }

    .nav {
        display: none;
    }
    
    .version-card h1 {
        font-size: 18px;
        top: 5.5%;
        left: 11%;
    }

    .version-card p {
        font-size: 21px;
        width: 40%;
        top: 13%;
        transform: rotateZ(-90deg) translateX(-60px) translateY(20px);
    }

    .version-card .plastic-cover {
        width: 320px;
        transform: rotateZ(-90deg) translateX(130px) translateY(-305px);
    }

    .version-card .cardThumbnail {
        width: 280px;
    }

    .version-card .cardThumbnail img {
        transform: rotateZ(-90deg) translateX(-8px) translateY(-25px);
        width: 150px;
    }

    .download-tactic {
        font-size: 23px;
        padding: 12px 20px;
        bottom: 20%;
        transform: rotateZ(-90deg) translateX(90px) translateY(-140px);
    }

    .thread {
        font-size: 23px;
        padding: 12px 24px;
        bottom: 32%;
        transform: rotateZ(-90deg) translateX(40px) translateY(-70px);
    }

    /* Active expanded card */
    .tactic-container .version-card.active {
        width: 850px;
        top: 7%;
        transform: scaleY(1) rotateY(12deg) rotateX(-6deg) rotateZ(-2.5deg) translateZ(100px);
    }

    .tactic-container .version-card:hover {
        translate: 0px -8px;
        cursor: pointer;
    }

    .tactic-container .version-card.active .cardThumbnail {
        width: 380px;
        transform: scaleY(0.94) translateX(-205px) translateY(2px);
    }

    .tactic-container .version-card.active .plastic-cover {
        width: 430px;
        transform: scaleY(0.97) translateX(-410px) translateY(-175px) rotateZ(-90deg);
    }
    
    .tactic-container .version-card.active h1 {
        font-size: 24px;
        left: 10.5%;
        top: 7%;
    }

    .tactic-container .version-card.active p {
        width: 43%;
        font-size: 25px;
        left: 72%;
        bottom: 17%;
        transform: scaleX(1.12) rotateZ(-90deg);
    }

    .tactic-container .version-card.active .download-tactic,
    .tactic-container .version-card.active .thread {
        font-size: 38px;
        transform: scaleY(0.95);
        bottom: 43%;
        
    }

    .tactic-container .version-card.active .download-tactic {
        padding: 14px 22px;
        transform: rotateZ(-90deg);
        left: 33%;
    }

    .tactic-container .version-card.active .thread {
        padding: 14px 28px;
        transform: rotateZ(-90deg);
        left: 45%;
    }
}


/* --- FOOTER REDESIGN --- */
.end {
    position: relative;
    background-color: rgb(176, 120, 255);
    color: #151E2E; 
    padding: 80px 60px 180px 60px;
    margin-top: -5px; 
    overflow: hidden;
    view-timeline-name: --sectionTimeline;
    view-timeline-axis: block;
    animation: color-change2 1s linear both;
    animation-timeline: --sectionTimeline;
    animation-range: entry 10% entry 100%;
    
}

@keyframes color-change2 {
  from { background-color: #F6EDFF; }
  to   { background-color: rgb(176, 120, 255); }
} 

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Left side slightly wider */
    gap: 80px;
    max-width: 1600px;
    margin: 0 auto;
    align-items: start;
}

.footer-heading {
    font-family: 'SohneBreitExtrafettKursiv', sans-serif;
    font-size: 60px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 0.9;
    letter-spacing: -1px;
    color: #000;
}

/* --- INSTALLATION LIST STYLING --- */
.install-list {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 0;
    counter-reset: step-counter; /* Initialize counter */
}

.install-list li {
    position: relative;
    font-family: 'Franklin Gothic Medium', Arial, sans-serif; /* Readable font for instructions */
    font-size: 22px;
    font-weight: 600;
    padding: 20px 0;
    padding-left: 50px;
    border-top: 2px solid rgba(0,0,0,0.1); /* Subtle divider lines */
    line-height: 1.4;
}

.install-list li:last-child {
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

/* Custom Numbers (01, 02, etc.) */
.install-list li::before {
    counter-increment: step-counter;
    content: "0" counter(step-counter);
    position: absolute;
    left: 0;
    top: 13px;
    font-family: 'SohneBreitExtrafettKursiv', sans-serif;
    font-size: 30px;
    color: rgba(0,0,0,0.4);
}

.install-list li span {
    background-color: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

/* --- CREDITS / CONTACT SIDE --- */
.credit-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align text to the right */
    text-align: right;
}

.email-link {
    font-family: 'SohneBreitExtrafettKursiv', sans-serif;
    font-size: 45px;
    color: #000;
    text-decoration: none;
    line-height: 0.85;
    margin-bottom: 30px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.email-link:hover {
    color: white;
    transform: scale(1.02) translateX(-10px);
}

.twitter-link {
    display: inline-block;
    background-color: #000;
    color: rgb(176, 120, 255);
    font-family: 'SohneBreitExtrafettKursiv', sans-serif;
    font-size: 30px;
    padding: 10px 30px;
    border-radius: 40px;
    text-decoration: none;
    margin-bottom: 40px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.twitter-link:hover {
    background-color: white;
    color: #000;
    transform: scale(1.02) translateX(-10px);
}

.copyright {
    font-family: 'Franklin Gothic Medium', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    opacity: 0.6;
    text-transform: uppercase;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 60px;
    }
    
    .credit-section {
        align-items: flex-start; /* Align left on mobile */
        text-align: left;
    }
    
    .email-link {
        font-size: 35px;
    }

    .end {
        padding: 60px 20px 140px 20px;
    }
}
