/* =========================================
   Guardian Game - AAA MMORPG Landing Page
   ========================================= */

:root {
    --bg-dark: #050507;
    --bg-panel: rgba(15, 15, 20, 0.75);
    --gold: #d4af37;
    --gold-dark: #aa8529;
    --gold-light: #f3e5ab;
    --red: #8b0000;
    --red-light: #e23636;
    --text-main: #e0e0e0;
    --text-muted: #9e9e9e;
    
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .logo, .hero-title, .section-title {
    font-family: var(--font-serif);
    text-transform: uppercase;
}
.gold-text { color: var(--gold); text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
.red-text { color: var(--red-light); text-shadow: 0 0 10px rgba(226, 54, 54, 0.3); }
.text-gray { color: var(--text-muted); }
.glow-text {
    color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,0.8), 0 0 30px var(--gold);
}
.text-center { text-align: center; }
.mb-3 { margin-bottom: 15px; }
.mb-5 { margin-bottom: 50px; }
.mt-5 { margin-top: 50px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-serif);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 3px;
}
.btn-primary {
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
    color: #000;
    border: 1px solid var(--gold-light);
}
.btn-primary:hover {
    background: linear-gradient(to bottom, var(--gold-light), var(--gold));
    box-shadow: 0 0 20px var(--gold-dark);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: inset 0 0 10px rgba(212,175,55,0.2);
}
.btn-large { padding: 18px 45px; font-size: 1.2rem; }

.glow-btn-strong {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}
.glow-btn-strong::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    animation: shineStrong 2.5s infinite;
}
@keyframes shineStrong {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%;
    padding: 20px 50px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(5, 5, 7, 0.4);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding: 12px 50px;
    background: rgba(5, 5, 7, 0.95);
    box-shadow: 0 5px 20px rgba(0,0,0,0.9);
}
.logo { font-size: 1.6rem; font-weight: 900; letter-spacing: 2px; }
.nav-links { list-style: none; display: flex; gap: 35px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-family: var(--font-serif); font-size: 0.95rem; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; gap: 15px; align-items: center; }
.lang-switch { display: flex; gap: 8px; font-family: var(--font-serif); font-size: 0.95rem; margin-right: 10px; color: var(--text-muted); }
.lang-switch a { color: var(--text-muted); text-decoration: none; transition: 0.3s; font-weight: 700; }
.lang-switch a:hover, .lang-switch a.active { color: var(--gold); text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
.lang-switch span { color: rgba(255,255,255,0.2); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 30px; height: 2px; background: var(--gold); transition: 0.3s; }

.mobile-menu {
    position: fixed; top: 0; left: 100%; width: 100%; height: 100vh;
    background: rgba(5, 5, 7, 0.98); z-index: 999;
    display: flex; align-items: center; justify-content: center;
    transition: left 0.3s ease;
}
.mobile-menu.active { left: 0; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: 25px 0; }
.mobile-menu a { color: white; text-decoration: none; font-family: var(--font-serif); font-size: 1.6rem; text-transform: uppercase; }

/* Hero Section */
.hero-section {
    position: relative; height: 100vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: 1; transform: scale(1.05);
    animation: slowZoom 25s infinite alternate;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(5,5,7,1) 95%);
    z-index: 2;
}
.hero-content {
    position: relative; z-index: 3; max-width: 900px; padding: 20px;
    animation: fadeInUp 1.5s ease-out;
}
.hero-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; text-shadow: 0 10px 30px rgba(0,0,0,0.9); }
.hero-subtitle { font-size: 1.3rem; color: #ccc; margin-bottom: 45px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.8;
}
.scroll-indicator span { font-family: var(--font-serif); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.mouse { width: 30px; height: 50px; border: 2px solid var(--gold); border-radius: 15px; position: relative; }
.wheel { width: 4px; height: 8px; background: var(--gold); border-radius: 2px; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); animation: scroll 1.5s infinite; }

/* Sections Global */
.section { padding: 100px 20px; position: relative; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.8rem; margin-bottom: 15px; letter-spacing: 2px; }
.section-desc { font-size: 1.15rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.8; }

/* Classes Section */
.dark-gradient {
    background: linear-gradient(to bottom, #050507 0%, #0a0a0e 100%);
    border-top: 1px solid rgba(212,175,55,0.1);
}
.class-showcase-container {
    display: flex; flex-direction: column; gap: 60px; margin-top: 60px;
}
.class-card {
    display: flex; gap: 40px; align-items: stretch;
    background: var(--bg-panel); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 5px; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.class-card.reverse-layout { flex-direction: row-reverse; }
.class-image {
    flex: 1; min-height: 400px; background-size: cover; background-position: top center;
    border-right: 2px solid var(--gold-dark);
}
.class-card.reverse-layout .class-image { border-right: none; border-left: 2px solid var(--gold-dark); }
.class-info { flex: 1.2; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.class-info h3 { font-size: 2rem; color: var(--gold); margin-bottom: 5px; }
.class-base { font-size: 0.9rem; margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.class-desc { font-size: 1.1rem; margin-bottom: 30px; color: #ccc; }
.evolution-box {
    background: rgba(0,0,0,0.5); padding: 15px 20px; border-left: 3px solid #444; margin-bottom: 15px;
}
.evolution-box h4 { font-size: 1rem; color: #fff; margin-bottom: 10px; }
.evolution-box ul { list-style: none; padding-left: 10px; }
.evolution-box li { margin-bottom: 5px; font-size: 0.95rem; color: #bbb; }
.evolution-box li strong { color: var(--gold-light); }
.gold-box { border-left-color: var(--gold); background: rgba(212,175,55,0.05); }

/* Systems Grid */
.texture-bg {
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png'), #08080a;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.system-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 25px; margin-top: 50px;
}
.sys-card {
    background: rgba(15,15,20,0.8); border: 1px solid rgba(255,255,255,0.05);
    padding: 30px; border-radius: 5px; transition: 0.3s;
    grid-column: span 2;
}
.sys-card:hover {
    transform: translateY(-5px); border-color: rgba(212,175,55,0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.sys-icon { font-size: 2.5rem; margin-bottom: 15px; }
.sys-card h3 { color: #fff; margin-bottom: 15px; font-size: 1.3rem; }
.sys-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.sys-large {
    grid-column: span 3; background-size: cover; background-position: center; border-color: rgba(212,175,55,0.2);
}
.sys-large:hover { border-color: var(--gold); }
.sys-mega {
    grid-column: span 6; background-size: cover; background-position: center; border-color: rgba(0,255,255,0.2);
}
.sys-mega:hover { border-color: rgba(0,255,255,0.5); }

/* Endgame / PvP */
.endgame-section {
    background-size: cover; background-position: center; background-attachment: fixed;
    position: relative; padding: 120px 20px;
}
.overlay-dark {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(5,5,7,0.95) 0%, rgba(5,5,7,0.7) 50%, rgba(5,5,7,0.95) 100%);
}
.endgame-features {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 60px;
}
.end-feat-card {
    background: rgba(0,0,0,0.6); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1); padding: 40px; text-align: left;
    border-radius: 5px;
}
.end-feat-card h3 { color: var(--gold); font-size: 1.5rem; margin-bottom: 15px; }
.end-feat-card p { color: #ddd; font-size: 1.05rem; }

/* Footer */
footer { background: #020202; border-top: 2px solid var(--gold-dark); padding: 70px 20px 20px; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 50px; }
.footer-brand { flex: 2; min-width: 300px; }
.footer-brand p { color: var(--text-muted); margin-top: 15px; max-width: 350px; }
.footer-links { flex: 1; min-width: 150px; }
.footer-links h4 { color: var(--gold); margin-bottom: 25px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.05); color: #555; font-size: 0.9rem; }

/* Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

@keyframes slowZoom { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll { 0% { top: 10px; opacity: 1; } 100% { top: 30px; opacity: 0; } }

/* Responsive */
@media (max-width: 1024px) {
    .class-card { flex-direction: column; }
    .class-card.reverse-layout { flex-direction: column; }
    .class-image { width: 100%; border-right: none; border-bottom: 2px solid var(--gold-dark); min-height: 300px; }
    .class-card.reverse-layout .class-image { border-left: none; border-bottom: 2px solid var(--gold-dark); }
    .system-grid { grid-template-columns: 1fr 1fr; }
    .sys-card { grid-column: span 1; }
    .sys-large { grid-column: span 1; }
    .sys-mega { grid-column: span 2; }
}
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .hamburger { display: flex; }
    .hero-title { font-size: 3rem; }
    .system-grid { grid-template-columns: 1fr; }
    .sys-mega { grid-column: span 1; }
    .endgame-features { grid-template-columns: 1fr; }
}

/* Form Styles */
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; color: #ccc; font-family: var(--font-serif); font-size: 0.95rem; }
.form-control { width: 100%; padding: 12px 15px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); color: #fff; font-family: var(--font-sans); border-radius: 4px; transition: all 0.3s; }
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 10px rgba(212,175,55,0.2); }
.checkbox-group { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-bottom: 20px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; color: #bbb; cursor: pointer; font-size: 0.9rem; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
.alpha-container { background: rgba(15,15,20,0.9); border: 1px solid var(--gold-dark); padding: 40px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); max-width: 800px; margin: 0 auto; position: relative; z-index: 10; }
.streamer-card { background: linear-gradient(135deg, rgba(200,0,0,0.1), rgba(0,0,0,0.8)); border: 1px solid #ff4444; padding: 30px; border-radius: 8px; margin-top: 30px; }
.streamer-card h3 { color: #ff6666; margin-bottom: 10px; }


/* --- Media Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: #0a0a0a;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.8) contrast(1.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.6);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.1);
}

/* Lightbox Modal */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform:scale(0.9); opacity:0;}
    to {transform:scale(1); opacity:1;}
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--gold);
    padding: 10px 0;
    font-size: 1.2rem;
    font-family: var(--font-title);
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--gold);
    text-decoration: none;
    cursor: pointer;
}

