*, *::after, *::before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: 16px;
}

@font-face {
    font-family: 'Actay';
    src: url('../fonts/Actay-Regular.otf');
}

@font-face {
    font-family: 'ReSquare';
    src: url('../fonts/ReSquare-Bold.ttf');
}

a{
    text-decoration: none;
    color: white;
}

body{
    height: 100vh;
    overflow: hidden;
    background-color: black;
    color: white;
    font-family: 'Actay';
    display: flex;
    flex-direction: column;
    position: relative;
}

header{
    text-transform: uppercase;
    padding: 30px 30px 0;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

ul{
    display: flex;
    flex-direction: row;
    gap: 16px;
}

li{
    list-style: none;
    padding: 16px 40px;
    background: #0B0B0B;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    text-wrap: nowrap;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

li:hover{
    background: #1a1a1a;
    color: #86EF0A;
}

.active-link{
    color: #86EF0A;
}

.mobile-dropdown {
    display: none;
    position: relative;
    z-index: 100;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #0B0B0B;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.dropdown-toggle-text {
    font-size: 16px;
    color: #86EF0A;
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #86EF0A;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0B0B0B;
    border-radius: 8px;
    overflow: hidden;
    display: none;
    z-index: 101;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-menu li {
    padding: 16px 24px;
    background: #0B0B0B;
    border-radius: 0;
    border-bottom: 1px solid #1a1a1a;
    transition: background-color 0.2s;
    list-style: none;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li:hover {
    background: #1a1a1a;
    color: #86EF0A;
}

.sections-container {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.main-content{
    width: 100%;
    height: 100%;
    background-image: url('../img/cyber\ waves.png');
    background-size: cover;
    background-color: #0B0B0B;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.main-content.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.scroll-bar{
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 30px;
    gap: 10px;
}

.item-scroll{
    width: 100%;
    height: .7vw;
    border-radius: 1vw;
    background-color: #252525;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.item-scroll:hover{
    transform: scale(1.05);
}

.item-scroll::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: white;
    border-radius: 1vw;
    transition: width 0.1s linear;
}

.item-scroll.active::before{
    animation: fillProgress 10s linear forwards;
}

.item-scroll.completed::before{
    width: 100%;
}

.item-scroll.dragging::before{
    transition: width 0.05s linear;
    width: var(--drag-progress, 0);
}

.item-scroll.finishing::before{
    animation: finishProgress 2s linear forwards;
}

@keyframes fillProgress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes finishProgress {
    to {
        width: 100%;
    }
}

.content{
    position: relative;
    height: calc(100% - 100px);
}

.card{
    display: flex;
    height: 70vh;
    gap: 30px;
    padding: 0 60px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.card.active{
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.info-card{
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-end;
}

.num{
    font-size: 18px;
    opacity: 0.7;
    margin-top: 3vh;
}

.title-card{
    text-transform: uppercase;
    font-size: 48px;
    font-family: 'ReSquare';
    line-height: 110%;
    color: #86EF0A;
}

.color{
    color: #86EF0A;
}

.descriptionc-card{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 30px;
    font-size: 18px;
}

.descriptionc-card p{
    text-indent: 30px;
    line-height: 1.6;
}

.video-wrapper {
    position: relative;
    margin-left: auto;
    height: 100%;
    max-width: 50%;
    margin: 30px auto;
    cursor: pointer;
}

.img-card{
    object-fit: contain;
    height: 100%;
    width: 100%;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: all;
}

.video-play-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-play-button {
    width: 80px;
    height: 80px;
    border: 4px solid #86EF0A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(11, 11, 11, 0.7);
    backdrop-filter: blur(5px);
}

.video-play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 28px solid #86EF0A;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    margin-left: 8px;
}

.video-play-overlay:hover .video-play-button {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(134, 239, 10, 0.6);
    background: rgba(11, 11, 11, 0.85);
}

video {
    background-color: #000;
    object-fit: contain;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

section:nth-child(2) .content .card{
    flex-direction: column;
}
section:nth-child(3) .content .card {
    flex-direction: column;
}
section:nth-child(3) .content .card .wrapper-image {
    gap: 30px;
}
section:nth-child(3) .content .card .wrapper-image img{
    width: 48%;
}

.wrapper-image{
    display: flex;
    justify-content: space-between;
}

.wrapper-image img{
    width: 30%;
}

.playable-container-inline {
    width: 50%;
    max-width: 650px;
    height: 100%;
    margin-left: auto;
    display: flex;
    align-items: center;
    user-select: none;
}

.playable-container-inline .playable-wrapper {
    width: 100%;
    height: 90%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(134, 239, 10, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.playable-start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}

.playable-start-screen.hidden {
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0px);
}

.playable-start-icon {
    width: 80px;
    height: 80px;
    border: 3px solid #86EF0A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.playable-start-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid #86EF0A;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.playable-start-screen:hover .playable-start-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(134, 239, 10, 0.5);
}

.playable-start-text {
    font-size: 24px;
    font-family: 'ReSquare';
    color: #86EF0A;
    text-transform: uppercase;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.playable-container-inline .playable-game {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.playable-container-inline .playable-game.visible {
    display: flex;
}

.playable-container-inline .playable-header {
    background: linear-gradient(135deg, #0B0B0B 0%, #1a1a1a 100%);
    color: white;
    padding: 15px 20px;
    border-bottom: 2px solid #86EF0A;
}

.playable-container-inline .playable-header h1 {
    font-size: 20px;
    font-family: 'ReSquare';
    color: #86EF0A;
    text-transform: uppercase;
    text-align: center;
}

.playable-container-inline .playable-frame-wrapper {
    flex: 1;
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}

.playable-container-inline .playable-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.playable-container-inline .playable-controls {
    padding: 12px 15px;
    background: #0B0B0B;
    border-top: 2px solid #86EF0A;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.playable-container-inline .playable-btn {
    padding: 10px 25px;
    border: 2px solid #86EF0A;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Actay';
    text-transform: uppercase;
    background: transparent;
    color: #86EF0A;
    
}

.playable-container-inline .playable-btn:hover {
    background: #86EF0A;
    color: black;
    transform: translateY(-2px);
}

@media (max-width:1024px) {
    html{
        overflow: auto;
    }
    body{
        overflow: visible;
        min-height: 100vh;
        height: auto;
    }
    
    .sections-container{
        position: static;
        overflow: visible;
        flex: none;
        min-height: calc(100vh - 120px);
    }
    
    .main-content {
        position: static !important;
        display: none;
        height: auto;
        min-height: calc(100vh - 120px);
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .main-content.active {
        display: block;
    }
    
    .content {
        position: static;
        height: auto;
    }
    
    header ul {
        display: none;
    }
    
    .mobile-dropdown {
        display: block;
    }

    .card{
        flex-direction: column;
        height: auto;
        padding: 0 20px;
        gap: 15px;
        position: static !important;
        display: none;
    }
    
    .card.active {
        position: static;
        display: flex;
        opacity: 1;
        visibility: visible;
    }
    
    .title-card {
        font-size: 40px;
    }
    
    .descriptionc-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 0px;
        font-size: 18px;
    }
    
    .video-wrapper {
        margin-left: auto;
        height: auto;
        max-width: 90%;
        margin: 30px auto;
    }
    
    .scroll-bar {
        padding: 15px 20px;
    }
    
    .item-scroll {
        height: 10px;
    }
    
    .playable-container-inline{
        width: 80%;
        max-width: 100%;
        height: 500px;
        margin: 0 auto;
    }
    
    .playable-start-text {
        font-size: 20px;
    }
    
    .playable-start-icon {
        width: 60px;
        height: 60px;
    }
    
    .video-play-button {
        width: 60px;
        height: 60px;
    }
    
    .video-play-button::after {
        border-left: 22px solid #86EF0A;
        border-top: 14px solid transparent;
        border-bottom: 14px solid transparent;
        margin-left: 6px;
    }
    
    section:nth-child(2) .content .card .wrapper-image {
        flex-direction: column;
        gap: 30px;
    }
    
    section:nth-child(2) .content .card .wrapper-image img{
        width: 70%;
        margin: 0 auto;
    }
    
    section:nth-child(3) .content .card .wrapper-image {
        flex-direction: column;
        gap: 30px;
    }
    
    section:nth-child(3) .content .card .wrapper-image img{
        width: 100%;
    }
}

@media (max-width: 768px) {
    .playable-container-inline {
        width: 100%;
        max-width: 100%;
    }
    
    .playable-start-text {
        font-size: 20px;
    }
    
    .playable-start-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width:600px) {
    html{
        overflow: auto;
    }
    body{
        overflow: visible;
        min-height: 100vh;
        height: auto;
    }
    
    .sections-container{
        position: static;
        overflow: visible;
        flex: none;
        min-height: calc(100vh - 120px);
    }
    
    .main-content {
        position: static !important;
        display: none;
        height: auto;
        min-height: calc(100vh - 120px);
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .main-content.active {
        display: block;
    }
    
    .content {
        position: static;
        height: auto;
    }
    
    header ul {
        display: none;
    }
    
    .mobile-dropdown {
        display: block;
    }

    .card{
        flex-direction: column;
        height: auto;
        padding: 0 20px;
        gap: 15px;
        position: static !important;
        display: none;
    }
    
    .card.active {
        position: static;
        display: flex;
        opacity: 1;
        visibility: visible;
    }
    
    .video-wrapper {
        width: 80%;
        max-width: 80%;
        margin: 30px auto;
    }
    
    .title-card {
        font-size: 40px;
    }
    
    .descriptionc-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 0px;
        font-size: 18px;
    }
    
    .scroll-bar {
        padding: 15px 20px;
    }
    
    .item-scroll {
        height: 11px;
    }
    
    .playable-container-inline{
        height: 500px;
    }
    
    .video-play-button {
        width: 50px;
        height: 50px;
        border: 3px solid #86EF0A;
    }
    
    .video-play-button::after {
        border-left: 18px solid #86EF0A;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        margin-left: 5px;
    }
    
    section:nth-child(2) .content .card .wrapper-image {
        flex-direction: column;
        gap: 20px;
    }
    
    section:nth-child(2) .content .card .wrapper-image img{
        width: 100%;
    }
    
    section:nth-child(3) .content .card .wrapper-image {
        flex-direction: column;
        gap: 20px;
    }
    
    section:nth-child(3) .content .card .wrapper-image img{
        width: 100%;
    }
}

@media (min-aspect-ratio:1470/710) {
    .wrapper-image {
        justify-content: space-around;
    }
    .wrapper-image img {
        width: 25%;
    }
    .pwa-img{
        width: 38%!important;
    }
}