:root {
    --gta-purple: #9B4F96;
    --gta-pink: #D0306E;
    --gta-yellow: #F4B41A;
    --gta-black: #0a0a0a;
    --gta-white: #ffffff;
    --font-heading: 'Russo One', sans-serif;
    /* Fallback for Pricedown */
    --font-body: 'Roboto', sans-serif;
}

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

html,
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--gta-black);
    color: var(--gta-white);
}

/* UTILITIES */
.highlight {
    color: var(--gta-yellow);
}

.money {
    color: #4caf50;
    font-weight: bold;
    text-shadow: 0 0 5px #4caf50;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    text-align: center;
    margin: 3rem 0;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0px var(--gta-purple);
}

/* HERO SECTION */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('assets/herobg.jpg') no-repeat center center/cover;
    overflow: hidden;
}

/* ... existing overlay ... */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Keep overlay for text readability */
    background: rgba(0, 0, 0, 0.5);
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 90%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.gta-title {
    font-family: var(--font-heading);
    /* Or custom Pricedown font if added */
    font-size: 5rem;
    letter-spacing: 3px;
    text-shadow: 4px 4px 0px #000, -2px -2px 0px var(--gta-purple);
    transform: skew(-5deg);
    margin-bottom: 0.5rem;
}

.wanted-stars {
    color: var(--gta-white);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.wanted-stars i {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #ccc;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gta-white);
    background: linear-gradient(45deg, var(--gta-purple), var(--gta-pink));
    text-decoration: none;
    border: 2px solid var(--gta-white);
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--gta-purple);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--gta-pink);
    background: linear-gradient(45deg, var(--gta-pink), var(--gta-yellow));
    color: #000;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gta-white);
    background: transparent;
    text-decoration: none;
    border: 2px solid var(--gta-pink);
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 1rem;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(208, 48, 110, 0.3);
}

.btn-secondary:hover {
    background: rgba(208, 48, 110, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(208, 48, 110, 0.6);
}

/* HUD ELEMENTS */
.hud-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-heading);
    color: #4caf50;
    font-size: 2rem;
    z-index: 10;
    text-shadow: 2px 2px 0 #000;
}

/* SLIDER SECTION */
#examples {
    padding: 4rem 2rem;
    background-color: #111;
    text-align: center;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px;
    scrollbar-width: none;
    /* Hide scrollbar */
    max-width: 900px;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slide {
    min-width: 300px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.cctv-frame {
    border: 4px solid #333;
    background: #000;
    padding: 0;
    /* Remove padding to let video fill properly */
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    height: 580px;
    /* Increased height for full TikTok verticality */
    width: 325px;
    /* Match TikTok min-width */
    margin: 0 auto;
    overflow: hidden;
    /* contain the embed */
    border-radius: 10px;
}

.cctv-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 5;
}

.rec-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    color: red;
    font-weight: bold;
    animation: blink 1s infinite;
    z-index: 10;
    font-family: monospace;
}

.camera-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-family: monospace;
    z-index: 10;
}

.video-container {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    /* Ensure it's positioned for z-index */
    z-index: 6;
    /* Sit ABOVE the .cctv-frame::before overlay (z-index 5) */
    scrollbar-width: none;
}

.video-container::-webkit-scrollbar {
    display: none;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures full video is visible without cropping */
    background: #000;
    /* Black bars if aspect ratio doesn't match exactly */
    display: block;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}



.slider-btn {
    background: var(--gta-purple);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    margin: 0 1rem;
    transition: 0.3s;
    z-index: 20;
}

.slider-btn:hover {
    background: var(--gta-pink);
    transform: scale(1.1);
}

/* HEIST PROCESS SECTION */
#process {
    padding: 4rem 2rem;
    background-color: #3d2b1f;
    /* Cork board fallback */
    background-image: repeating-linear-gradient(45deg, #3d2b1f 0, #3d2b1f 10px, #453022 10px, #453022 20px);
    position: relative;
    overflow: hidden;
    border-top: 5px solid #1a1a1a;
    border-bottom: 5px solid #1a1a1a;
}

.heist-board {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.polaroids {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.polaroid {
    background: white;
    padding: 1rem 1rem 3rem 1rem;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    width: 250px;
    text-align: center;
    transform: rotate(var(--rotation));
    position: relative;
    transition: transform 0.3s;
}

.polaroid:nth-child(1) {
    --rotation: -3deg;
}

.polaroid:nth-child(2) {
    --rotation: 2deg;
}

.polaroid:nth-child(3) {
    --rotation: -2deg;
}

.polaroid:nth-child(4) {
    --rotation: 4deg;
}

.polaroid:hover {
    transform: scale(1.1) rotate(0deg);
    z-index: 10;
}

.pin {
    width: 20px;
    height: 20px;
    background: red;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #cc0000);
}

.photo-area {
    background: #222;
    height: 150px;
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 3rem;
    border: 1px solid #ddd;
    overflow: hidden;
}

.photo-area i {
    color: #888;
}

.polaroid h3 {
    font-family: var(--font-heading);
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.polaroid p {
    font-family: monospace;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.2;
}

/* Connector Line (Dotted / String) */
.connector-line {
    display: none;
    /* Simplified for responsive layout */
}

/* APPLICATION & FAQ */
#apply {
    background-color: #000;
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
}

.mission-brief {
    max-width: 800px;
    margin: 0 auto;
    background: #111;
    padding: 3rem;
    border: 2px solid #333;
    position: relative;
    overflow: hidden;
    /* Added to clip watermark */
}

.mission-brief::after {
    content: 'CONFIDENTIAL';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 6rem;
    color: rgba(255, 0, 0, 0.1);
    font-weight: 900;
    pointer-events: none;
    white-space: nowrap;
}

.mission-intro {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    margin-bottom: 3rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #222;
    padding: 1rem;
    border-left: 4px solid var(--gta-purple);
}

.step-num {
    background: var(--gta-purple);
    color: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    flex-shrink: 0;
}

.drive-link {
    color: var(--gta-yellow);
    text-decoration: underline;
}

.reward-box {
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px dashed var(--gta-pink);
    background: rgba(208, 48, 110, 0.1);
}

.reward-box span {
    color: var(--gta-pink);
    font-weight: bold;
}

/* FAQ SECTION */
#faq {
    padding: 4rem 2rem;
    background: #1a1a1a;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #333;
    background: #000;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-question:hover {
    background: #222;
    color: var(--gta-yellow);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    background: #111;
    color: #ccc;
}

.faq-answer.active {
    padding: 1.5rem;
    border-top: 1px solid #333;
}

/* CONTACT & FOOTER */
#contact {
    padding: 6rem 2rem;
    background: linear-gradient(0deg, #000000 0%, #1a0b1a 100%);
    text-align: center;
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border: 4px solid var(--gta-white);
    outline: 4px solid var(--gta-purple);
    outline-offset: 5px;
}

.gta-title-small {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gta-white);
    margin-bottom: 0.5rem;
}

.viber-btn {
    display: inline-block;
    background: #7360f2;
    /* Viber color */
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    margin-top: 2rem;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(115, 96, 242, 0.5);
}

.viber-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(115, 96, 242, 0.8);
}

footer {
    background: #000;
    padding: 2rem;
    text-align: center;
    color: #555;
    border-top: 1px solid #222;
}

.footer-icons {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.footer-icons i {
    margin: 0 10px;
    color: #555;
    transition: 0.3s;
    cursor: pointer;
}

.footer-icons i:hover {
    color: var(--gta-yellow);
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #000;
    margin: auto;
    padding: 0;
    border: 2px solid var(--gta-pink);
    width: 90%;
    max-width: 400px;
    /* Shorts aspect ratio usually implies mobile width */
    box-shadow: 0 0 30px rgba(208, 48, 110, 0.5);
    border-radius: 10px;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--gta-yellow);
    text-decoration: none;
    cursor: pointer;
}

.video-wrapper {
    position: relative;
    width: 100%;
    /* 9:16 Aspect Ratio */
    padding-bottom: 177.78%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    /* Ensure overflow hidden works reliably */
}

/* Update CSS for better mobile handling */

/* Ensure sections don't overflow */
section {
    max-width: 100vw;
    overflow-x: hidden;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #hero {
        background-image: url('assets/mobilebg.jpg');
        background-position: center bottom;
        /* Often better for portrait mobile bgs */
    }

    .gta-title {
        font-size: 12vw;
        /* Use viewport units for better fit */
        word-wrap: break-word;
        /* Ensure wrapping */
    }

    .section-title {
        font-size: 2rem;
        /* Reduce section titles */
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .mission-brief::after {
        font-size: 3rem;
        /* Smaller watermark on mobile */
    }

    .hud-top-right {
        font-size: 1.2rem;
        /* Smaller money counter */
        top: 10px;
        right: 10px;
    }

    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1.2rem;
        width: 100%;
        /* Full width button on mobile feels better */
        max-width: 300px;
    }

    .polaroid {
        width: 100%;
        max-width: 280px;
        /* Fix polaroid rotation on mobile to prevent overflow if they stick out */
        transform: rotate(0deg) !important;
        margin-bottom: 2rem;
    }

    .slider-btn {
        padding: 0.5rem;
        font-size: 1rem;
    }

    /* Mobile Video - Full Width with 10px Padding */
    #examples {
        padding: 4rem 0;
        /* Remove sidebar padding */
    }

    .slider-container {
        padding: 20px 0;
        gap: 0;
        /* Remove gap to handle spacing via padding inside slides if needed, or keep gap? 
                   If we want exactly 10px left/right on current slide, centering logic applies. 
                   Let's use 100vw width for logic. */
        gap: 10px;
    }

    .slide {
        min-width: 100vw;
        /* Take full screen width */
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .cctv-frame {
        width: calc(100vw - 20px);
        /* 10px padding on left + 10px on right */
        height: auto;
        /* Let height adapt to content */
        aspect-ratio: unset;
        /* Remove forced aspect ratio */
        margin: 0;
    }

    .video-element {
        height: auto;
        /* Allow video to set its natural height */
        max-height: 85vh;
        /* Prevent it from being taller than the screen */
        object-fit: contain;
    }
}