/* =========================================
   1. VARIABLES & RESET (STAR CITY THEME)
   ========================================= */
:root {
    --bg-dark: #0a0a0c;       /* Deep Night Black */
    --bg-card: #131316;       /* Card Background */
    
    /* NEW THEME COLORS */
    --primary: #ff8c00;       /* Star City Orange */
    --primary-glow: rgba(255, 140, 0, 0.4);
    --accent: #ffae42;        /* Lighter Sunset Orange */
    
    --text-white: #ffffff;
    --text-muted: #a0a0b0;
    
    --font-head: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    scroll-behavior: smooth;
    position: relative;
}

a { text-decoration: none; color: inherit; cursor: pointer; transition: 0.3s; }
ul { padding-left: 20px; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =========================================
   2. UTILITIES & ANIMATIONS
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; width: 100%; }
.section-pad { padding: 80px 0; position: relative; }
.center { text-align: center; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Pulse Animation */
@keyframes pulse-dot {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}
.pulse { animation: pulse-dot 1.5s infinite; }

/* Badge Glow (Orange) */
@keyframes glow-pulse {
    0% { box-shadow: 0 0 5px rgba(255, 140, 0, 0.2); border-color: rgba(255, 140, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 140, 0, 0.6); border-color: var(--primary); }
    100% { box-shadow: 0 0 5px rgba(255, 140, 0, 0.2); border-color: rgba(255, 140, 0, 0.5); }
}
.animated-pill { animation: glow-pulse 2s infinite ease-in-out; }

/* Glitch Effect */
.glitch-hover { position: relative; display: inline-block; }
.glitch-hover:hover { animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite; color: var(--primary); }
@keyframes glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

/* =========================================
   3. NAVIGATION BAR
   ========================================= */
nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px; padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(10, 10, 12, 0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05); z-index: 1000;
    transition: 0.3s;
}
nav.scrolled { background: rgba(0, 0, 0, 0.98); box-shadow: 0 10px 30px rgba(255, 140, 0, 0.1); }

/* Logo Styling */
.logo-img-wrap { display: flex; align-items: center; height: 100%; }
.nav-logo { height: 65px; width: auto; object-fit: contain; transition: transform 0.3s; }
.logo-img-wrap:hover .nav-logo { transform: scale(1.05); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #ccc; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.discord-btn { background: #5865F2; padding: 8px 20px; border-radius: 4px; color: white !important; font-weight: 700; }
.menu-btn { display: none; font-size: 24px; color: white; cursor: pointer; padding: 10px; }

/* Sidebar Menu */
.side-menu {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--bg-dark); z-index: 2000; padding: 30px; display: flex; flex-direction: column;
    transition: 0.4s ease; border-left: 1px solid #333; box-shadow: -10px 0 50px black;
}
.side-menu.open { right: 0; }
.side-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 15px; }
.side-header span { font-family: var(--font-head); font-size: 24px; color: var(--primary); }
.close-btn { font-size: 24px; cursor: pointer; }
.menu-label { font-size: 11px; text-transform: uppercase; color: #555; margin: 20px 0 10px; font-weight: 700; letter-spacing: 1px; }
.side-links a { display: block; padding: 12px 0; font-size: 16px; color: #ccc; border-bottom: 1px solid #1a1a1a; }
.side-links a i { width: 25px; color: var(--primary); }
.menu-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); z-index: 1500; display: none; backdrop-filter: blur(4px); }
.menu-overlay.active { display: block; }

/* =========================================
   4. HERO SECTION
   ========================================= */
header {
    min-height: 100vh; width: 100%;
    background: url('https://i.ibb.co/ccjMyYR3/bg.png') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; text-align: center;
    position: relative; padding-top: 80px;
}
/* Particles (Orange tint) */
.particles {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(var(--primary), rgba(255,140,0,.2) 2px, transparent 3px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px);
    background-size: 550px 550px, 350px 350px;
    background-position: 0 0, 40px 60px;
    animation: floating 60s linear infinite;
    opacity: 0.4; z-index: 1; pointer-events: none;
}
@keyframes floating { from { transform: translateY(0); } to { transform: translateY(-550px); } }

.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to bottom, rgba(10,10,12,0.6), var(--bg-dark)); }
.hero-content { position: relative; z-index: 2; max-width: 900px; width: 100%; padding: 0 20px; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.6); border: 1px solid var(--primary); color: var(--primary); padding: 6px 20px; border-radius: 50px; font-weight: 700; font-size: 12px; margin-bottom: 25px; backdrop-filter: blur(5px); }
.dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); }

header h1 { font-family: var(--font-head); font-size: 100px; line-height: 0.9; margin-bottom: 20px; text-shadow: 0 5px 20px rgba(0,0,0,0.8); }
header h1 span { color: var(--primary); }
.hero-sub { font-size: 18px; color: #ddd; margin-bottom: 40px; }

.hero-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 15px 35px; border-radius: 4px; font-weight: 700; font-size: 14px; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; border: none; }
.btn-primary { background: var(--primary); color: black; }
.btn-primary:hover { background: white; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 140, 0, 0.4); }
.btn-outline { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.3); color: white; }
.btn.disabled { opacity: 0.6; cursor: not-allowed; }

/* =========================================
   5. FEATURES & FACTIONS
   ========================================= */
.bg-yellow { background: var(--primary); color: black; width: 100%; }
.clip-angle { clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%); }
.section-title { font-family: var(--font-head); font-size: 60px; margin-bottom: 40px; color: white; }
.section-title.dark-text { color: black; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; width: 100%; }

/* Cards */
.dark-card { background: var(--bg-card); padding: 30px; border-radius: 8px; color: white; position: relative; border: 1px solid transparent; transition: 0.3s; }
.hover-tilt:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 15px 30px rgba(255,140,0,0.2); }
.icon-gold { font-size: 40px; color: var(--primary); margin-bottom: 20px; transition: 0.3s; }
.hover-tilt:hover .icon-gold { transform: scale(1.2); color: white; }
.dark-card h3 { font-family: var(--font-head); font-size: 28px; margin-bottom: 10px; }
.dark-card p { color: #aaa; line-height: 1.6; }

/* Factions */
.faction-box { background: var(--bg-card); border-radius: 10px; overflow: hidden; border: 1px solid #333; transition: 0.3s; }
.faction-box:hover { border-color: var(--primary); transform: scale(1.02); }
.img-wrap { height: 180px; background-size: cover; background-position: center; filter: grayscale(40%); transition: 0.5s; }
.faction-box:hover .img-wrap { filter: grayscale(0%) scale(1.1); }
.txt-wrap { padding: 25px; text-align: center; }
.txt-wrap h3 { font-family: var(--font-head); font-size: 26px; color: var(--primary); margin-bottom: 5px; }
.txt-wrap p { font-size: 13px; color: #ccc; }

/* =========================================
   6. ROADMAP
   ========================================= */
.bg-gradient { background: linear-gradient(to bottom, var(--bg-dark), #000); }
.timeline { position: relative; max-width: 800px; margin: 0 auto; width: 100%; }

.timeline::before {
    content: ''; position: absolute; width: 4px; background: #333;
    top: 0; bottom: 0; left: 50%; margin-left: -2px; z-index: 0; border-radius: 4px;
}

.timeline::after { 
    content: ''; position: absolute; width: 4px; background: var(--primary);
    top: 0; height: 0; left: 50%; margin-left: -2px; z-index: 1; border-radius: 4px;
    transition: height 2.5s ease-in-out;
}
.timeline.animate-line::after { height: 50%; }

.time-item { 
    padding: 10px 40px; position: relative; width: 50%; box-sizing: border-box;
    opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; z-index: 2;
}
.time-item.show { opacity: 1; transform: translateY(0); }

.time-item:nth-child(1) { transition-delay: 0.3s; }
.time-item:nth-child(2) { transition-delay: 0.8s; }
.time-item:nth-child(3) { transition-delay: 1.3s; }
.time-item:nth-child(4) { transition-delay: 1.8s; }

.time-item.left { left: 0; text-align: right; }
.time-item.right { left: 50%; }

.time-item::after { 
    content: ''; position: absolute; width: 16px; height: 16px; 
    right: -8px; background: #000; border: 3px solid #333; 
    top: 20px; border-radius: 50%; z-index: 3; transition: border-color 0.5s;
}
.time-item.show::after { border-color: var(--primary); animation: pulse-dot 2s infinite; }

.left::after { right: -8px; } 
.right::after { left: -8px; }

.time-content { padding: 20px; background: var(--bg-card); border-radius: 8px; border: 1px solid #333; }
.time-content h3 { color: white; font-size: 18px; margin-bottom: 5px; }
.time-content p { color: #888; font-size: 13px; }
.completed h3 { color: var(--primary); }

/* =========================================
   7. SOCIAL HUB (UPDATED)
   ========================================= */
.social-hub-section {
    position: relative; padding: 100px 20px; background: #050505;
    overflow: hidden; min-height: 700px; display: flex; align-items: center;
    justify-content: center; border-top: 1px solid #333;
}
.bg-char-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -40%);
    height: 110%; max-height: 900px; opacity: 0.3; z-index: 0; pointer-events: none;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
.social-container { position: relative; z-index: 2; width: 100%; max-width: 500px; }
.social-big-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }

.social-big-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 25px 30px; border-radius: 16px; color: white; text-decoration: none;
    transition: transform 0.3s; overflow: hidden; position: relative;
    border: 1px solid rgba(255,255,255,0.1); background: #111;
}
.social-big-card:hover { transform: scale(1.03); z-index: 10; }

.social-left { display: flex; align-items: center; gap: 20px; }
.social-icon-big { font-size: 32px; }
.social-text h4 { font-family: var(--font-head); font-size: 24px; margin: 0; line-height: 1; }
.social-text span { font-size: 12px; opacity: 0.8; text-transform: uppercase; }
.arrow-btn { background: rgba(255,255,255,0.2); padding: 10px; border-radius: 50%; font-size: 14px; }

/* SOCIAL CARDS STYLES */
.youtube-card { background: linear-gradient(135deg, #c4302b, #ff0000, #ff4b4b); border-left: 5px solid #ffffff; }
.insta-card { background: linear-gradient(135deg, #405de6, #833ab4, #c13584); }
.discord-card { background: linear-gradient(135deg, #5865F2, #4752c4); }

/* NEW STYLE CARDS */
.telegram-card { background: linear-gradient(135deg, #229ED9, #0088cc); border-left: 5px solid #ffffff; }
.facebook-card { background: linear-gradient(135deg, #1877F2, #3b5998); border-left: 5px solid #ffffff; }


/* =========================================
   8. FOOTER & PAGES
   ========================================= */
.global-footer { background: black; padding: 40px 20px; text-align: center; border-top: 1px solid #222; font-size: 13px; color: #555; width: 100%; }
.footer-links { margin-bottom: 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.footer-links a { color: #888; text-decoration: underline; }

.page-header-wrap { padding: 120px 0 40px; text-align: center; }
.page-title { font-family: var(--font-head); font-size: 60px; color: var(--primary); }
.legal-content { max-width: 800px; margin: 0 auto 80px; }
.legal-box { background: var(--bg-card); padding: 30px; border-radius: 8px; border-left: 4px solid var(--primary); margin-bottom: 20px; }
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.input-group label { display: block; color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.input-group input, .input-group textarea, .input-group select { width: 100%; background: #111; border: 1px solid #333; padding: 15px; color: white; border-radius: 5px; font-family: var(--font-body); }
.input-group input:focus { border-color: var(--primary); outline: none; }
.full-width { width: 100%; }

/* Rules Page Sidebar */
.rules-container { display: flex; max-width: 1200px; margin: 120px auto 50px; padding: 0 20px; gap: 40px; min-height: 60vh; }
.rules-sidebar { width: 250px; flex-shrink: 0; background: var(--bg-card); padding: 20px; border-radius: 12px; height: fit-content; position: sticky; top: 100px; border: 1px solid #333; }
.rules-sidebar h3 { font-family: var(--font-head); font-size: 24px; margin-bottom: 20px; color: var(--primary); border-bottom: 1px solid #333; padding-bottom: 10px; }
.rule-tab { display: block; width: 100%; padding: 12px 15px; margin-bottom: 8px; background: transparent; border: 1px solid transparent; color: #888; text-align: left; cursor: pointer; font-weight: 600; border-radius: 6px; transition: 0.3s; font-family: var(--font-body); }
.rule-tab:hover { background: rgba(255,255,255,0.05); color: white; }
.rule-tab.active { background: rgba(255, 140, 0, 0.1); border-color: var(--primary); color: var(--primary); }
.rules-content { flex: 1; }
.rule-section { display: none; animation: fadeIn 0.4s ease; }
.rule-section.active { display: block; }
.rule-head { font-family: var(--font-head); font-size: 40px; margin-bottom: 30px; color: white; }
.rule-box { background: var(--bg-card); padding: 25px; border-radius: 10px; margin-bottom: 20px; border-left: 4px solid #333; transition: 0.3s; }
.rule-box:hover { border-left-color: var(--primary); transform: translateX(5px); }
.rule-box h4 { color: white; font-size: 18px; margin-bottom: 10px; font-family: var(--font-body); }
.rule-box p { color: #ccc; line-height: 1.6; font-size: 14px; }

/* =========================================
   9. MOBILE & TABLET RESPONSIVENESS FIXES
   ========================================= */
@media (max-width: 768px) {
    .nav-links.desktop-only { display: none; }
    .menu-btn { display: block; }
    .nav-logo { height: 50px; }

    header { padding-top: 80px; min-height: 90vh; }
    header h1 { font-size: 50px; line-height: 1; }
    .hero-sub { font-size: 15px; padding: 0 10px; }
    .hero-actions { flex-direction: column; width: 100%; padding: 0 10px; }
    .btn { width: 100%; max-width: 100%; }

    .section-title { font-size: 40px; }
    .yellow-section { clip-path: none; padding: 60px 20px; margin: 30px 0; }

    .timeline { margin: 0; padding: 0; width: 100%; }
    .timeline::before, .timeline::after { left: 30px; margin-left: -2px; }
    .time-item { width: 100%; padding-left: 80px; padding-right: 0; margin-bottom: 30px; z-index: 2; }
    .time-item.left, .time-item.right { text-align: left; left: 0; }
    .time-item::after { left: 22px; right: auto; top: 24px; }
    .time-item.left::after, .time-item.right::after { left: 22px; }

    .bg-char-center { width: 100%; opacity: 0.2; height: auto; }
    .social-big-card { padding: 20px; }
    .social-icon-big { font-size: 28px; }
    .social-text h4 { font-size: 20px; }

    .rules-container { flex-direction: column; }
    .rules-sidebar { width: 100%; position: relative; top: 0; margin-bottom: 30px; z-index: 1; }
    .rule-head { font-size: 32px; }

    .text-container { padding: 100px 20px 40px; }
    .text-container h1 { font-size: 40px; }
    .footer-links { gap: 10px; }
   }
