@font-face {
  font-family: 'ClashDisplay-Medium';
  src: url('../fonts/ClashDisplay-Medium.woff2') format('woff2'),
       url('../fonts/ClashDisplay-Medium.woff') format('woff'),
       url('../fonts/ClashDisplay-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

body {
    margin: 0;
    scroll-behavior: smooth;
}

#header {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    background: #272730;
    padding: 20px 25px;
    border-radius: 100px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.header-case {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 20px;
}

.header-logo {
    height: 45px;
    transition: transform 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-bar {
    justify-self: center;
    display: flex;
    gap: 20px;
}

.nav-btn1, .nav-btn2, .nav-btn3, .nav-btn4 {
    border-radius: 40px;
    background: transparent;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 17px;
    color: #555555;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.nav-btn1 {
    color: #fafafa;
    background-color: #000000;
}

.nav-btn2:hover, .nav-btn3:hover, .nav-btn4:hover {
    color: #fafafa;
    background-color: #000000;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    border-radius: 10px;
    z-index: 100;
    width: 500px;
    height: 300px;
    font-size: 18px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .nav-btn2 {
    color: #fafafa;
    background-color: #000000;
}

.dropdown-content a {
    color: #555555;
    padding: 14px 18px;
    border-radius: 30px;
    text-decoration: none;
    display: block;
    margin-top: 10px;
    font-family: Arial, sans-serif;
}

.dropdown-content a:hover {
    background-color: #181818;
    color: #fafafa;
}

.dropdown1 {
    visibility: hidden;
    padding-top: 60px;
    width: 100%;
}

.dropdown2 {
    background-color: #272730ef;
    height: 250px;
    width: 600px;
    border-radius: 30px;
    padding: 30px;
    align-content: center;
    border: 1px solid #141414;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fafafa;
    font-size: 32px;
    cursor: pointer;
    padding: 0 15px;
}

.case1, .case2, .case3, .scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.case1 {
    margin: 0;
    padding: 0;
    height: 100vh;
    position: relative;
    background: linear-gradient(180deg, #EE7121 0%, #d15411 100%);
    color: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.case2 {
    position: relative;
    background: linear-gradient(180deg, #dddddd 0%, #cccccc 100%);
}

.case3 {
    position: relative;
    background: linear-gradient(180deg, #dddddd 0%, #cccccc 100%);
}

.scene {
    background-color: #111111;
    padding: 20px;
}

.text1, .text2, .text3 {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

.text1 {
    color: #d6d6d6;
    font-size: 20px;
    text-align: center;
}

.text1 h1 {
    font-size: 2.5rem;
    color: #dddddd;
    margin-top: 0;
    letter-spacing: 3px;
    font-family: 'ClashDisplay-Medium', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.text1 p {
    font-family: "Unbounded", sans-serif;
    font-size: 22px;
    font-weight: 500; 
    letter-spacing: 1px;
}

.text2 {
    color: #181818;
    font-size: 22px;
    padding-top: 100px;
}

.text2 p {
    font-family: "Unbounded", sans-serif;
    font-weight: 300; 
    color: #181818;
    font-size: 20px;
}

.text2 b {
    font-family: "Unbounded", sans-serif;
    font-weight: 700; 
    color: #181818;
    font-size: 22px;
}

.text3 {
    font-family: "Unbounded", sans-serif;
    color: #181818;
    font-size: 22px;
    text-align: center;
    padding-top: 100px;
}

.investigation-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.police-tape {
    position: absolute;
    height: 170px;
    width: 220vw; 
    margin-left: -60vw; 
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
    filter: drop-shadow(0 12px 15px rgba(0,0,0,0.7)); 
    --move-x: 0px;
    --move-y: 0px;
    --base-transform: '';
    transform: var(--base-transform) translate(var(--move-x), var(--move-y));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.police-tape::before {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    left: -1000px;
    right: -1000px;
    background-image: inherit; 
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
}

.tape-img-yellow {
    background-image: url("Line1.png"); 
}

.tape-img-red {
    background-image: url("Line2.png"); 
}

.l1 {
    top: -60px;
    left: 0;
    --base-transform: translateY(110px) rotate(-12deg); 
    z-index: 10;
    opacity: 0.9;
}

.l2 {
    top: -120px;
    right: 0;
    --base-transform: translateX(80vw) translateY(180px) rotate(65deg); 
    z-index: 30;
}

.l3 {
    top: -120px;
    right: 0;
    --base-transform: translateX(50vw) translateY(110px) rotate(-55deg);
    z-index: 20;
    opacity: 0.95;
}

.l4 {
    top: -120px;
    right: 0;
    --base-transform: translateX(50vw) translateY(30px) rotate(40deg);
    z-index: 10;
    opacity: 0.9;
}

.l5 {
    bottom: -60px;
    left: 0;
    --base-transform: translateY(-120px) rotate(22deg);
    z-index: 45;
}

.l6 {
    bottom: -60px;
    left: 0;
    --base-transform: translateY(-70px) rotate(10deg);
    z-index: 40;
}

.l7 {
    bottom: -120px;
    right: 0;
    --base-transform: translateX(64vw) translateY(-200px) rotate(-42deg);
    z-index: 20;
}

.btwn{
    position: absolute;
    background-color: #2A140E;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100%;
    margin: 0;
    top: 0;
    left: 0;
    box-sizing: border-box;
    overflow: hidden;
    align-self: flex-start;
}

.h1 {
    text-align: center;
    font-size: 2rem;
    color: #dddddd;
    width: 100%;
    word-spacing: 2vh;
    font-family: "Unbounded", sans-serif;
}

.animation1 {
    opacity: 0;
    transform: translateY(-30px);
}

.p2 {
    margin-left: 0;
    text-align: center;
}

.h2 {
    text-align: center;
    font-size: 2rem;
    color: #dddddd;
    width: 100%;
    word-spacing: 2vh;
    font-family: "Unbounded", sans-serif;
}

.a { 
    font-size: 25px;
    font-weight: 500;
}

.animation-text span {
    display: block;
    opacity: 0;
    transform: translateY(15px);
    visibility: hidden;
}

.cards {
    display: flex;
    margin-top: 30px;
    gap: 20px;
    padding: 20px 40px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    max-width: 1200px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cards::-webkit-scrollbar {
    display: none;
}

.card {
    border-radius: 25px;
    padding: 20px;
    height: 300px;
    width: 300px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;

    background-image: 
        radial-gradient(circle, #2A140E 0%, #2A140E 100%),
        radial-gradient(circle, #EE7121 0%, #EE7121 100%);

    background-repeat: no-repeat;
    
    background-size: 
        25px 25px,
        50px 50px;

        
    background-position: 
        85% 20%,
        15% 80%;
        
    background-color: #eeeeee;
}

.card::before,
.card::after {
    content: "";
    position: absolute;
    width: 120px; 
    height: 8px;  
    
    background: repeating-linear-gradient(
        90deg,
        #2A140E,
        #2A140E 14px,   
        transparent 8px,
        transparent 19px 
    );
}

.card::before {
    top: 30px;
    left: -30px;
    transform: rotate(-45deg);
}

.card::after {
    bottom: 30px;
    right: -30px;
    transform: rotate(-45deg);
}

.card p {
    color: #181818;
    font-family: "Unbounded", sans-serif;
    font-weight: 100;
    font-size: 16px;
    text-align: center;
    margin: 0;
}

.comp {
    display: flex;
    padding-top: 50px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.monitor {
    width: 920px;
    height: 560px;
    max-width: 95%;
    max-height: 80vh;
    background: #0e0e0e;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 0 0 2px #222;
}

.screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0b1c2d;
    overflow: hidden;
    border-radius: 6px;
}

.desktop {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f4c81, #1b6fa8);
    display: flex;
    gap: 12px;
    padding: 20px;
    opacity: 1;
    transition: opacity .6s ease;
}

.icon { font-size: 28px; }

.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: rgba(0,0,0,.3);
}

.glitch {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,.08), rgba(255,255,255,.08) 1px, transparent 1px, transparent 3px);
    opacity: 0;
    animation: glitch 0.15s infinite;
    pointer-events: none;
}

.Senet, .CCBoot, .Gizmo, .SmartShell {
    height: 45px;
}

@keyframes glitch {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

.bsod {
    position: absolute;
    inset: 0;
    background: #0a2fa8;
    color: #fff;
    font-family: monospace;
    padding: 40px;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .6s ease, transform .6s ease;
    font-size: 18px;
    
}

.bsod p:first-child {
    font-size: 72px;
    margin-bottom: 30px;
}

@media (max-height: 900px) {
    .l7 {
    bottom: -120px;
    right: 0;
    --base-transform: translateX(80vw) translateY(-200px) rotate(-42deg);
    z-index: 20;
    }

    .cards {
        padding: 20px 20px;
    }

    .card {
        width: 200px;
        height: 200px;
        background-image: 
        radial-gradient(circle, #2A140E 0%, #2A140E 100%),
        radial-gradient(circle, #EE7121 0%, #EE7121 100%);

        background-repeat: no-repeat;
        
        background-size: 
            15px 15px,
            30px 30px;

        background-position: 
            85% 20%,
            15% 80%;

        background-color: #eeeeee;
    }

    .card::before,
    .card::after {
        content: "";
        position: absolute;
        width: 80px; 
        height: 6px;  

        background: repeating-linear-gradient(
            90deg,
            #2A140E,
            #2A140E 9px,   
            transparent 8px,
            transparent 14px 
        );
    }

    .card::before {
        top: 15px;
        left: -15px;
        transform: rotate(-45deg);
    }

    .card::after {
        bottom: 15px;
        right: -15px;
        transform: rotate(-45deg);
    }
    

    .card p {
        font-size: 16px;

    }
}

@media (max-width: 1024px) {
    .monitor {
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
    }
}

@media (max-width: 768px) {
    #header {
        width: 92%;
        top: 20px;
        padding: 13px 10px;
        border-radius: 50px;
    }

    .header-case {
        grid-template-columns: 1fr auto;
        padding: 0 10px;
    }

    .header-logo {
        height: 40px;
    }

    .menu-toggle {
        display: block;
        margin-right: 15px;
        font-size: 30px;
    }

    .nav-bar {
        display: flex;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(-20px);
        transition: all 0.4s ease;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 85px;
        left: 50%;
        width: 90%;
        background: #272730ed;
        border-radius: 30px;
        padding: 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.4);
        gap: 10px;
        z-index: 9998;
    }

    .nav-bar.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .dropdown {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-btn1, .nav-btn2, .nav-btn3, .nav-btn4 {
        width: 95%;
        padding: 15px;
        font-size: 18px;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .text1 h1 {
        font-size: 2rem;
    }

    .text1 p {
        font-size: 16px;
    }

    .text2 p {
    font-size: 16px;
    }

    .text2 b {
    font-size: 18px;
    }

    .case1, .case2, .case3, .scene {
        height: auto;
        min-height: 100vh;
        padding: 100px 10px;
        overflow: hidden;
    }

    .cards {
        padding: 20px 20px;
    }

    .card {
        width: 200px;
        height: 200px;
        background-image: 
        radial-gradient(circle, #2A140E 0%, #2A140E 100%),
        radial-gradient(circle, #EE7121 0%, #EE7121 100%);

        background-repeat: no-repeat;
        
        background-size: 
            15px 15px,
            30px 30px;

        background-position: 
            85% 20%,
            15% 80%;

        background-color: #eeeeee;
    }

    .card::before,
    .card::after {
        content: "";
        position: absolute;
        width: 80px; 
        height: 6px;  

        background: repeating-linear-gradient(
            90deg,
            #2A140E,
            #2A140E 9px,   
            transparent 8px,
            transparent 14px 
        );
    }

    .card::before {
        top: 15px;
        left: -15px;
        transform: rotate(-45deg);
    }

    .card::after {
        bottom: 15px;
        right: -15px;
        transform: rotate(-45deg);
    }
    

    .card p {
        font-size: 16px;

    }

    .h1, .h2 {
        font-size: 1.5rem;
        word-spacing: 2vh;
    }

    .monitor { 
        width: 100%; 
        height: auto; 
        aspect-ratio: 16/10; 
        padding: 10px;
    }

    .bsod { padding: 20px; font-size: 13px; }
    .bsod p:first-child { font-size: 35px; margin-bottom: 10px; }
    .a { 
        font-size: 18px;
        font-weight: 500;
    }

    .police-tape {
        height: 130px;
    }

    .l2 {
        top: -120px;
        right: 0;
        --base-transform: translateX(90vw) translateY(180px) rotate(65deg); 
        z-index: 30;
    }

    .l3 {
        bottom: -120px;
        right: 0;
        --base-transform: translateX(100vw) translateY(-200px) rotate(-42deg);
        z-index: 51;
    }

    .l7 {
        bottom: -120px;
        right: 0;
        --base-transform: translateX(90vw) translateY(-200px) rotate(-42deg);
        z-index: 20;
    }

    .comp {
        gap: 40px;
    }

    .Senet, .CCBoot, .Gizmo, .SmartShell {
        height: 38px;
    }
}

@media (max-width: 480px) {
    .monitor {
        aspect-ratio: 4/3;
    }
    .bsod {
        font-size: 12px;
    }
    .card {
        width: 220px;
    }
}