/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #9e9789;
    --primary-hover: #8e8779;
    --dark-bg: #5a7a64;
    --text-main: #1a1a1a;
    --text-grey: #4a4a4a;
    --font-heading: "Unbounded", sans-serif;
    --font-body: "Manrope", sans-serif;
}

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

body {
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--text-grey);
    background-color: var(--dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* =========================================
   2. UTILITIES & BUTTONS
   ========================================= */
.highlight-green {
    color: var(--primary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--text-main);
    color: #fff;
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary);
    color: var(--text-main);
}

.btn-underline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 14px;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 5px;
}

.btn-underline:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* =========================================
   3. HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: 0.3s;
}

.site-header.sticky {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 11rem;
    height: 6rem;
}

.main-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.main-nav a {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-main);
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-hover);
}

.main-nav .btn-sub-1 {
    display: none;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-actions .btn-sub-2 {
    display: block;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

/* Video Background */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Hero Content / Layout */
.banner {
    margin-top: 30px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: 70vh;
    align-items: center;
    justify-content: center;
}

.txt {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: space-between;
    z-index: 5;
    margin: auto;
}

.toptxt h1 {
    font-size: 18vw;
    line-height: 1;
    margin: 20px 0 30px 0;
    color: #9e9789;
}

.toptxt h4 {
    font-size: 2vw;
    color: #1a1a1a; /* Changed to dark for contrast against light char if overlapped, or check overlay */
}

/* Adjust text color if needed based on video background visibility */
.toptxt h4,
.bottxt p {
    color: #e0e0e0; /* Making text light to be visible on dark video overlay */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.bottxt {
    font-weight: bolder;
    font-size: 1.5vw;
}

.even {
    margin: 0;
    text-align: left;
}

.char {
    width: 50%;
    height: 50rem;
    background: url("../images/char.png");
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 6;
    transform: scale(1.2) translateY(0%);
}

/* =========================================
   5. MARQUEE
   ========================================= */
.marquee-wrapper {
    background: var(--text-main);
    color: #fff;
    padding: 25px 0;
    overflow: hidden;
    white-space: nowrap;
    transform: rotate(-2deg);
    width: 105%;
    margin-left: -2.5%;
    margin-bottom: 50px;
}

.marquee-content {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    margin-right: 60px;
}

.marquee-item span {
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

.star-icon {
    width: 30px;
    margin-right: 20px;
    filter: brightness(0) invert(1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   6. ABOUT SECTION
   ========================================= */
.grid-layout-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-heading {
    grid-column: 1 / -1;
    font-size: clamp(20px, 4vw, 36px);
    margin-bottom: 30px;
}

.intro-video {
    position: relative;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
}

.intro-video .about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 300px;
}

.intro-text p.lead {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
}

.intro-text p {
    margin-bottom: 30px;
}

/* =========================================
   7. PROJECTS SECTION
   ========================================= */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-title {
    font-size: 48px;
}

.project-slider-wrapper {
    overflow: hidden;
    padding-bottom: 20px;
}

.project-scroller {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    padding-left: 20px;
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: 400px;
}

.project-img {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.project-img img {
    transition: transform 0.5s;
    width: 100%;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-info .badge {
    border: 1px solid #ccc;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
    transition: 0.3s;
}

.project-card:hover .project-info .badge {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.project-info h4 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    gap: 15px;
}

.slide-btn {
    background: var(--text-main);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s, transform 0.3s;
}

.slide-btn:hover {
    background: var(--primary);
    color: var(--text-main);
}

/* =========================================
   8. IMAGE ZOOM TO SECTION WIDTH LOGIC
   ========================================= */

figure.zoom {
    & img:hover {
        opacity: 0;
    }
    img {
        transition: opacity 0.5s;
        display: block;
        width: 100%;
    }
    background-position: 50% 50%;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}
/* Menyembunyikan Checkbox */
/* [id^="halfZoomToggle"] {
    display: none;
}

.zoom-target-half {
    display: block;
    cursor: zoom-in;
    position: relative;
    z-index: 1;
}

.zoom-target-half img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    transition: transform 0.4s ease-in-out, max-width 0s 0.4s;
    transform-origin: center center;
}

.zoom-target-half::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
    z-index: 99; 
}

[id^="halfZoomToggle"]:checked + .zoom-target-half::before {
    opacity: 1;
    pointer-events: auto;
}

[id^="halfZoomToggle"]:checked + .zoom-target-half img {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 1320px;
    width: 90vw;
    transform: translate(-50%, -50%) scale(1);
    z-index: 101;
    cursor: zoom-out;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
}

@media (max-width: 991px) {
    [id^="halfZoomToggle"]:checked + .zoom-target-half img {
        max-width: 90vw;
        max-height: 90vh;
        width: auto;
    }
} */

/* =========================================
   9. FOOTER
   ========================================= */
.site-footer {
    background: #000;
    color: #aaa;
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid #333;
}

.footer-brand img {
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
    width: 13rem;
    height: 7rem;
}

.footer-links h4,
.footer-social h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 25px;
}

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

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    margin-left: 2rem;
}

.footer-social i {
    font-size: 7rem;
}

.footer-contact h4 {
    margin-bottom: 5px;
    color: #fff;
}

.footer-contact img {
    width: 13rem;
    height: 7rem;
    margin-left: -2rem;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #fff;
    font-weight: 100;
}

.copyright {
    padding: 30px 20px;
    text-align: center;
    font-size: 14px;
}

/* =========================================
   10. ANIMATIONS
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}
.delay-2 {
    transition-delay: 0.4s;
}
.delay-3 {
    transition-delay: 0.6s;
}

/* =========================================
   11. RESPONSIVE (MEDIA QUERIES)
   ========================================= */

/* Tablet & Smaller Desktop */
@media (max-width: 991px) {
    /* Header */
    .main-nav {
        display: none;
    }
    .main-nav .btn-sub-1 {
        display: block;
        color: white;
    }
    .header-actions .btn-sub-2 {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }

    /* Layout Grids */
    .grid-layout-intro,
    .counter-grid,
    .services-grid,
    .footer-content,
    .project-scroller {
        grid-template-columns: 1fr;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 48px;
    }

    /* Leaderboard */
    .services-grid {
        grid-template-columns: 1fr;
    }
    .rank-item .player-avatar {
        display: none;
    }

    /* Projects Slider */
    .project-card {
        flex: 0 0 calc(50% - 15px); /* 2 items per view */
        max-width: none;
    }

    /* Footer */
    .footer-social {
        margin-left: 0;
    }
}

/* Mobile */
@media (max-width: 600px) {
    /* Header */
    .header-flex {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
    }

    .slider-controls {
        margin-top: 10px;
    }

    /* Projects Slider */
    .project-card {
        flex: 0 0 85%; /* 1 item per view (peeking) */
        max-width: none;
    }

    /* Hero Text Adjustment */
    .toptxt h1 {
        font-size: 15vw;
    }
    .bottxt {
        font-size: 3vw;
    }
}
