@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=MedievalSharp&family=Inter:wght@400;600&display=swap');
/* Import FontAwesome from CDN in HTML, not here usually, unless local */

:root {
    --beige: #d8caa1;
    --beige-dark: #b9ab83;
    --brown: #4b3b2a;
    --gold: #f5c542;
    --gold-hover: #d4e157;
    --dark-bg: #0b0b0b;
    /* Slightly lighter than pure black for depth */
    --card-bg: #1a1a1a;
    --text-main: #e0e0e0;
    --text-muted: #aaa;
    --success: #2e7d32;
    --navbar-height: 70px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

body {
    font-family: "Cinzel", "Trebuchet MS", serif;
    background: #000;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================= UTILITIES ================= */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold {
    color: var(--gold);
}

.text-center {
    text-align: center;
}

/* Performance Helpers */
.gpu {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* ================= HERO / SITE BACKGROUND ================= */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #000 url('../assets/images/poster.png') no-repeat center center / cover;
    will-change: transform;
}

.video-bg video {
    display: none; /* Video removed in favor of retro poster and performance */
}

.video-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            rgba(0, 0, 0, 0.8) 100%);
    /* Improved gradient for readability */
}

/* ================= TRI TRAVELERS BACKGROUND EFFECT (Effect #39) ================= */
.tri-travelers-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.tri-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(212, 175, 55, 0.5) 30%, rgba(212, 175, 55, 0.1) 65%, transparent 75%);
    filter: blur(10px);
    animation: triHolePulse 3s ease-in-out infinite alternate;
    mix-blend-mode: screen;
    opacity: 0.75;
    pointer-events: none;
}

@keyframes triHolePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.85;
    }
}

.tri-traveler {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--size, 20px);
    height: var(--size, 20px);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background-color: var(--color, #d4af37);
    will-change: transform, opacity;
    animation: triTravelToCenter var(--duration, 4s) cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0;
    mix-blend-mode: screen;
    pointer-events: none;
}

@keyframes triTravelToCenter {
    0% {
        transform: translate3d(var(--x, 0px), var(--y, 0px), 0) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
        opacity: 0;
    }
    15% {
        opacity: var(--opacity, 0.85);
    }
    80% {
        opacity: var(--opacity, 0.85);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(calc(var(--rot, 0deg) + var(--rot-speed, 360deg))) scale(0);
        opacity: 0;
    }
}

/* ================= NAVBAR ================= */
.navbar {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(245, 197, 66, 0.2);
    /* Subtle gold border */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.navbar-container {
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Better spacing */
}

.navbar-socials {
    display: flex;
    gap: 20px;
}

.navbar-socials i {
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.7;
    cursor: pointer;
}

.navbar-socials i:hover {
    transform: translateY(-2px);
    opacity: 1;
    color: var(--gold);
    filter: drop-shadow(0 0 5px var(--gold));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
}

/* Center the nav links absolutely if desired, or use flex center */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--gold-hover);
    text-shadow: 0 0 10px rgba(212, 225, 87, 0.4);
}

.nav-links a.active {
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.2), transparent);
    border: 1px solid var(--gold);
    color: var(--gold);
}

/* ================= FLOATING SIDE NAV ================= */
.side-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.side-nav-body {
    background: rgba(11, 11, 11, 0.9);
    border: 2px solid var(--brown);
    border-radius: 8px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.side-nav-item {
    color: var(--brown);
    font-size: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #b2a084;
    text-decoration: none;
}

.side-nav-item:hover,
.side-nav-item.active {
    background: var(--gold);
    color: #000;
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(245, 197, 66, 0.6);
}

@media (max-width: 1200px) {
    .side-nav {
        display: none;
    }
}

/* ================= HERO SECTION ================= */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: var(--navbar-height);
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    color: #fff;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    position: relative;
    z-index: 5;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    /* Responsive font size */
    font-family: "MedievalSharp", cursive;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
    margin: 0;
}

.hero-quotes {
    display: flex;
    gap: 40px;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
}

.hero-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 10px 0;
    position: relative;
}

.hero-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

.hero-ip {
    font-family: "Courier New", monospace;
    font-size: 1.5rem;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.hero-ip:hover {
    background: rgba(245, 197, 66, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.02);
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.cta-button {
    font-size: 1.1rem;
    font-weight: 800;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
}

.cta-button.primary {
    background: linear-gradient(180deg, #8bc34a 0%, #689f38 100%);
    color: #fff;
    border: 3px solid #33691e;
    box-shadow: 0 6px 0 #33691e, 0 10px 20px rgba(0, 0, 0, 0.4);
}

.cta-button.secondary {
    background: rgba(0, 0, 0, 0.5);
    color: var(--gold);
    border: 3px solid var(--gold);
    backdrop-filter: blur(5px);
    box-shadow: 0 6px 0 rgba(245, 197, 66, 0.3), 0 10px 20px rgba(0, 0, 0, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.cta-button.primary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #33691e;
}

.cta-button.secondary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 rgba(245, 197, 66, 0.3);
}

/* Responsive adjustment for Hero buttons */
@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .cta-button {
        width: 100%;
        min-width: unset;
    }
}

/* ================= SCROLLBAR & FOCUS ================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0b0b0b;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 1px solid #111;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-hover);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ================= CONTENT SECTIONS ================= */
section {
    position: relative;
    padding: 120px 20px;
    z-index: 1;
    /* Above video */
    content-visibility: auto;
    /* Skip rendering off-screen content */
    contain-intrinsic-size: 800px;
    /* Estimate height to prevent scrollbar jumping */
}

/* Backgrounds for readability */
.section-bg-dark {
    background: #0b0b0b;
    /* Solid background to prevent video gaps */
    border-top: 1px solid #1a1a1a;
    /* Subtle separation */
}

/* Optional: Only for the first section if we want a directed fade */
.section-fade-top {
    background: linear-gradient(180deg, rgba(11, 11, 11, 0) 0%, #0b0b0b 100%);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-family: "Cinzel", serif;
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold);
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 25px;
    text-align: justify;
}

.highlight {
    color: var(--gold);
    font-weight: bold;
}

/* Video Container (Responsive 16:9) */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 2px solid #333;
    background: #000;
}

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

/* ================= NEWS SECTION ================= */
.news-header,
.updates-header {
    text-align: center;
    margin-bottom: 60px;
}

.news-header h2,
.updates-header h2 {
    font-size: 3rem;
    font-family: "Cinzel", serif;
    color: var(--gold);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: #151515;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(245, 197, 66, 0.1);
}

.news-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #151515, transparent);
}

.news-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.news-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-family: "MedievalSharp", cursive;
    color: #fff;
    line-height: 1.2;
}

.news-info p {
    color: #bbb;
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
    align-self: flex-start;
}

.news-link:hover {
    gap: 12px;
}

/* ================= UPDATES LIST ================= */
.updates-list {
    background: #151515;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #333;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.update-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px 30px;
    border-bottom: 1px solid #2a2a2a;
    transition: background 0.2s;
}

.update-item:hover {
    background: #1e1e1e;
}

.update-item:last-child {
    border-bottom: none;
}

.update-tag {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 800;
    background: #2e7d32;
    color: #fff;
    min-width: 90px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.update-tag.fix {
    background: #1565c0;
}

.update-tag.balance {
    background: #f57c00;
}

.update-tag.event {
    background: #7b1fa2;
}

.update-item p {
    margin: 0;
    color: #ddd;
    font-size: 1.05rem;
}

/* ================= FOOTER ================= */
.main-footer {
    background: #050505;
    padding: 80px 20px 40px;
    border-top: 1px solid #222;
    position: relative;
    z-index: 10;
}

.footer-top {
    text-align: center;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #888;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #222;
    padding-top: 60px;
}

.footer-col h4 {
    color: var(--gold);
    font-family: "Cinzel", serif;
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-transform: uppercase;
}

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

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 0.9rem;
}

/* ================= RESPONSIVE DESIGN ================= */

/* Desktop Specifics (Large Screens) */
@media (min-width: 993px) {

    .mobile-toggle,
    .mobile-menu-header,
    .mobile-cta {
        display: none;
    }
}

/* Tablet / Mobile Menu Breakpoint (<= 992px) */
@media (max-width: 992px) {
    .container {
        max-width: 90%;
    }

    .navbar-socials {
        display: none;
    }

    .side-nav {
        display: none;
    }

    /* Mobile Toggle Button */
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        color: var(--gold);
        cursor: pointer;
        z-index: 1001;
        width: 40px;
        height: 40px;
        transition: transform 0.3s ease;
    }

    .mobile-toggle:active {
        transform: scale(0.9);
    }

    /* Mobile Menu Overlay */
    .nav-center {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        /* Almost solid dark */
        backdrop-filter: blur(15px);
        /* Strong blur */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
        z-index: 1000;
    }

    /* Active State (Open) */
    .navbar.mobile-open .nav-center {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Mobile Brand Header inside Menu */
    .mobile-menu-header {
        margin-bottom: 40px;
        text-align: center;
    }

    .mobile-brand {
        font-family: "MedievalSharp", cursive;
        font-size: 2.5rem;
        color: var(--gold);
        text-transform: uppercase;
        letter-spacing: 2px;
        text-shadow: 0 2px 10px rgba(245, 197, 66, 0.3);
    }

    /* Links Formatting */
    .nav-links {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-family: "Cinzel", serif;
        font-weight: 600;
        padding: 10px 20px;
        display: inline-block;
        width: 100%;
        /* Wider target */
    }

    /* Mobile CTA Button */
    .mobile-cta {
        margin-top: 20px;
        list-style: none;
    }

    .btn-play {
        background: var(--gold);
        color: #000 !important;
        /* Force black text */
        text-shadow: none !important;
        padding: 12px 30px !important;
        border-radius: 50px !important;
        font-size: 1.2rem !important;
        box-shadow: 0 0 15px rgba(245, 197, 66, 0.4);
        transform: scale(1);
    }

    .btn-play:active {
        transform: scale(0.95);
    }

    /* Content Layout Adjustments */
    .hero-title {
        font-size: 4rem;
    }

    .about-container,
    .footer-grid,
    .footer-videos {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Center headings underlines */
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Small Mobile */
@media (max-width: 480px) {

    /* Base sizes */
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    .mobile-brand {
        font-size: 2rem;
    }

    .hero-ip {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .divider {
        display: none;
    }

    .navbar-container {
        padding: 0 15px;
    }

    .cta-button {
        width: 100%;
        padding: 15px;
        font-size: 1.2rem;
        text-align: center;
    }

    .news-header h2,
    .about-text h2,
    .updates-header h2 {
        font-size: 2.2rem;
    }

    .section {
        padding: 80px 20px;
    }
}
/* Mobile-First Touch Targets & PWA */
@media (max-width: 768px) {
    .btn, .navbar a, .nav-links a {
        padding: 12px 20px;
        min-height: 44px;
    }
    
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ================= VIP BARDO STYLES ================= */

.vip-badge {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(245, 197, 66, 0.15));
    border: 1px solid rgba(245, 197, 66, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: #f5c542 !important;
    text-shadow: 0 0 8px rgba(245, 197, 66, 0.4);
    display: inline-block;
}

