:root {
    --neon: #39FF14;
    --black: #050505;
    --gunmetal: #1a1a1a;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(57, 255, 20, 0.3);
    --font-header: 'Saira Stencil One', sans-serif;
    --font-cyber: 'Audiowide', cursive;
    --font-body: 'Teko', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

body {
    background-color: var(--black);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.2rem;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--neon);
    transition: 0.1s;
}

/* Layout Grid */
body {
    display: flex;
}

.sidebar {
    width: 100px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--black);
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    z-index: 100;
}

.logo {
    /* Removed rotation for image logic, but might need it based on design preference. 
       Assuming image should be upright or small. Let's keep it simple first. */
    writing-mode: horizontal-tb;
    transform: none;
    padding: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo img {
    max-width: 60px;
    /* Fits sidebar width */
    height: auto;
    filter: drop-shadow(0 0 5px var(--neon));
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-items a {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    text-decoration: none;
    color: #555;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-items a i {
    transform: rotate(90deg);
    /* Counteract text rotation for icon */
    font-size: 1.2rem;
}

.menu-items a:hover,
.menu-items a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-links a {
    color: var(--neon);
    font-size: 1.2rem;
}

main {
    margin-left: 100px;
    /* Offset for sidebar */
    width: calc(100% - 100px);
}

/* Hero V2 */
.hero-v2 {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 10%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero_real.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(120%) brightness(0.6);
    z-index: -2;
}

/* Scanline effect */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: -1;
    pointer-events: none;
}

.mega-title {
    font-family: var(--font-header);
    font-size: clamp(4rem, 12vw, 12rem);
    line-height: 0.8;
    color: #fff;
    text-transform: uppercase;
}

.mega-title.outline {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    opacity: 0.7;
}

.hero-sub {
    margin: 30px 0;
    font-family: 'Courier New', monospace;
    color: var(--neon);
    font-size: 1rem;
    letter-spacing: 2px;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.btn-cyber {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--neon);
    color: var(--neon);
    text-decoration: none;
    font-family: var(--font-cyber);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    background: rgba(57, 255, 20, 0.1);
}

.btn-cyber:hover {
    background: var(--neon);
    color: #000;
    box-shadow: 0 0 30px var(--neon);
}

/* Sections */
.marquee-section {
    background: var(--neon);
    color: #000;
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    transform: rotate(-2deg) scale(1.1);
    margin: 50px 0;
}

.marquee-content {
    display: flex;
    width: max-content;
    font-family: var(--font-header);
    font-size: 3rem;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Arsenal Grid */
.arsenal-grid {
    padding: 100px 5%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.grid-header {
    grid-column: span 4;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.grid-header h2 {
    font-family: var(--font-cyber);
    font-size: 4rem;
    color: #fff;
}

.line-deco {
    flex-grow: 1;
    height: 2px;
    background: var(--neon);
}

.bento-box {
    background: var(--gunmetal);
    border: 1px solid #333;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-box:hover {
    border-color: var(--neon);
    background: #111;
}

.box-large {
    grid-column: span 2;
    background-color: var(--gunmetal);
}

.box-tall {
    grid-row: span 2;
}

.icon-bg {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 8rem;
    opacity: 0.1;
    color: var(--neon);
}

.bento-box h3 {
    font-family: var(--font-cyber);
    font-size: 2rem;
    color: #fff;
}

.bento-box p {
    color: #aaa;
    font-size: 1.1rem;
}

/* Protocol / Classes */
.protocol {
    padding: 100px 5%;
}

.class-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 50px;
}

.cyber-card {
    min-width: 300px;
    background: #000;
    border: 1px solid #333;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.3s;
}

.cyber-card:hover .card-img img {
    filter: grayscale(0%);
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    color: var(--neon);
    font-family: var(--font-cyber);
    margin-bottom: 5px;
}


html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Membership */
.join-section {
    padding: 100px 5%;
    background: radial-gradient(circle at center, #111, #000);
}

/* Member Features */
.plan-features li {
    margin-bottom: 12px;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: #000;
    overflow: hidden;
}

.grid-header.centered {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 5%;
}

.gallery-container {
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.gallery-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-gallery 40s linear infinite;
}

.gallery-section:hover .gallery-track {
    animation-play-state: paused;
}

.gallery-slide {
    position: relative;
    flex: 0 0 350px;
    aspect-ratio: 16/10;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111;
    border-radius: 4px;
    transition: 0.3s;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(0.2);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(57, 255, 20, 0.4) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
}

.gallery-overlay span {
    color: #fff;
    font-family: var(--font-header);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: 0.4s 0.1s;
}

.gallery-slide:hover img {
    transform: scale(1.1);
    filter: grayscale(0);
}

.gallery-slide:hover {
    border-color: var(--neon);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
}

.gallery-slide:hover .gallery-overlay {
    opacity: 1;
}

.gallery-slide:hover .gallery-overlay span {
    transform: translateY(0);
}

@keyframes scroll-gallery {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-380px * 6));
        /* (width + gap) * count */
    }
}

@media (max-width: 768px) {
    .gallery-slide {
        flex: 0 0 280px;
    }

    @keyframes scroll-gallery {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-310px * 6));
        }
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 5%;
    background: radial-gradient(circle at bottom, #051a05 0%, #000 70%);
}

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card.mobile-only {
    display: none;
}

.testimonial-card {
    background: rgba(10, 10, 10, 0.8);
    border-left: 3px solid var(--neon);
    padding: 30px;
    position: relative;
    backdrop-filter: blur(10px);
    border-radius: 0 8px 8px 0;
    transition: 0.3s;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(57, 255, 20, 0.03) 0px, transparent 1px);
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(57, 255, 20, 0.1);
    background: rgba(15, 15, 15, 0.9);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.75rem;
    font-family: 'Audiowide', sans-serif;
    color: var(--neon);
    letter-spacing: 1px;
}

.op-time {
    color: rgba(255, 255, 255, 0.5);
}

.card-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #eee;
    font-style: italic;
    margin-bottom: 20px;
}

.hq-response {
    background: rgba(57, 255, 20, 0.05);
    padding: 15px;
    border-radius: 4px;
    border: 1px dashed rgba(57, 255, 20, 0.2);
    font-size: 0.9rem;
}

.hq-response strong {
    color: var(--neon);
    font-family: 'Audiowide', sans-serif;
}

@media (max-width: 768px) {
    .testimonials-section {
        overflow: hidden;
        padding: 80px 0;
    }

    .testimonials-track {
        display: flex;
        grid-template-columns: none;
        gap: 20px;
        width: max-content;
        animation: scroll-testimonials 25s linear infinite;
        padding: 0 20px;
    }

    .testimonial-card {
        flex: 0 0 300px;
        display: block !important;
    }

    .testimonial-card.mobile-only {
        display: block;
    }

    @keyframes scroll-testimonials {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-320px * 4));
        }
    }
}

/* Footer redesign */
footer {
    padding: 80px 5% 40px;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand .brand-main {
    font-family: var(--font-header);
    font-size: 3rem;
    color: #fff;
    letter-spacing: 5px;
}

.footer-brand .brand-sub {
    font-size: 0.8rem;
    color: var(--neon);
    letter-spacing: 3px;
    margin-top: 5px;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.info-group h4 {
    font-family: var(--font-header);
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.info-group p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.8;
}

.map-link {
    display: inline-block;
    color: var(--neon);
    font-size: 0.7rem;
    text-decoration: none;
    margin-top: 15px;
    letter-spacing: 2px;
    transition: 0.3s;
    border: 1px solid rgba(57, 255, 20, 0.2);
    padding: 8px 15px;
    border-radius: 4px;
}

.map-link:hover {
    background: rgba(57, 255, 20, 0.1);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #25d366;
    font-size: 0.8rem;
    text-decoration: none;
    margin-top: 15px;
    letter-spacing: 2px;
    transition: 0.3s;
    border: 1px solid rgba(37, 211, 102, 0.2);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
}

.whatsapp-link i {
    font-size: 1.1rem;
}

.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.1);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.7rem;
    color: #333;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.plans-v2 {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.plan-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 300px;
    padding: 40px;
    border: 1px solid #333;
    text-align: center;
    transition: 0.3s;
}

.plan-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--neon);
}

.neon-border {
    border: 1px solid var(--neon);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.plan-price {
    font-family: var(--font-header);
    font-size: 4rem;
    color: #fff;
    margin: 20px 0;
}

.plan-features {
    text-align: center;
    margin-bottom: 30px;
    list-style: none;
    color: #aaa;
    font-family: 'Courier New', monospace;
    padding: 0;
    width: 100%;
}

.plan-features li {
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding-bottom: 0;
        /* Remove padding for dock */
    }

    /* Dynamic Island Header */
    .sidebar {
        width: 100% !important;
        height: 70px !important;
        background: rgba(10, 10, 10, 0.6) !important;
        backdrop-filter: blur(15px) saturate(180%) !important;
        border-top: 1px solid rgba(255, 255, 20, 0.2) !important;
        border-right: none !important;
        border-radius: 20px 20px 0 0 !important;
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        transform: none !important;
        flex-direction: row !important;
        padding: 0 5% !important;
        z-index: 2000 !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5) !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .sidebar .logo {
        display: none !important;
        /* Hide logo in bottom dock */
    }

    .menu-toggle {
        display: none !important;
    }

    .menu-items {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        background: none !important;
        backdrop-filter: none !important;
        border: none !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        pointer-events: all !important;
        z-index: 2001 !important;
        box-shadow: none !important;
    }

    .menu-items a {
        flex: 1 !important;
        flex-direction: column !important;
        gap: 5px !important;
        padding: 5px !important;
        font-size: 0.7rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }

    .menu-items a i {
        font-size: 1.2rem !important;
    }


    .menu-items a {
        writing-mode: horizontal-tb !important;
        text-orientation: unset !important;
        transform: none !important;
        font-size: 1.1rem !important;
        color: #fff !important;
        text-decoration: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 12px 15px !important;
        border-radius: 12px !important;
        transition: 0.3s !important;
        opacity: 0.7 !important;
    }

    .menu-items a.active,
    .menu-items a:hover {
        background: rgba(255, 255, 255, 0.05) !important;
        color: var(--neon) !important;
        opacity: 1 !important;
    }

    .menu-items a i {
        font-size: 1.2rem !important;
        width: 25px !important;
        text-align: center !important;
        transform: none !important;
    }

    .nav-indicator {
        display: none !important;
    }

    .social-links {
        display: none !important;
    }

    main {
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
        position: relative;
    }

    .hero-bg {
        top: -10vh !important;
        /* Stretch above top */
        height: 110vh !important;
        width: 100% !important;
    }

    /* ARSENAL 3x2 Mobile Grid */
    .arsenal-grid {
        padding: 30px 4% !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(2, auto) !important;
        gap: 10px !important;
    }

    .grid-header {
        grid-column: span 3 !important;
        margin-bottom: 10px !important;
    }

    .grid-header h2 {
        font-size: 2rem !important;
    }

    .bento-box {
        min-height: 120px !important;
        padding: 12px !important;
        border-radius: 8px !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .bento-box h3 {
        font-size: 0.85rem !important;
        margin-top: 5px !important;
        line-height: 1 !important;
    }

    .bento-box p {
        display: none !important;
        /* Hide long text on dense grid */
    }

    .icon-bg {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        font-size: 2rem !important;
        opacity: 0.8 !important;
        margin-bottom: 5px !important;
    }

    .box-large,
    .box-tall {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* Hide toggle on desktop */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
}

.protocol {
    padding: 40px 5%;
}

.join-section {
    padding: 100px 5%;
    text-align: center;
}

.holo-container {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .join-section {
        padding: 60px 20px !important;
    }

    .plans-v2 {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 20px 5px !important;
        gap: 20px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .plans-v2::-webkit-scrollbar {
        display: none !important;
    }

    .plan-card {
        flex: 0 0 85% !important;
        max-width: 320px !important;
        scroll-snap-align: center !important;
    }
}

/* Scroll Revel Animations System */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Page Transition Overlay */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 9999;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.transition-overlay.active {
    transform: translateY(0);
}