:root {
    --primary: #009b77; /* Ethiopia Greenish */
    --secondary: #fcd116; /* Ethiopia Yellowish */
    --accent: #e30613; /* Ethiopia Reddish */
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --text-light: #f4f4f4;
    --text-gray: #a0a0a0;
    --font-main: 'Poppins', sans-serif;
    --font-pixel: 'Press Start 2P', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader h1 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: #333;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    animation: load 2s infinite;
}

@keyframes load {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Utilities */
.pixel-font {
    font-family: var(--font-pixel);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.navbar.scrolled {
    border-bottom: 2px solid var(--primary);
}

.logo {
    color: var(--primary);
    font-size: 1.2rem;
    text-shadow: 2px 2px 0 #000;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--secondary);
}

.btn-play {
    background: var(--accent);
    padding: 10px 20px;
    border-radius: 4px;
    color: white !important;
    font-size: 0.7rem !important;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
    transition: transform 0.1s, box-shadow 0.1s !important;
}

.btn-play:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.line {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 5px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1607988795622-38435d883b58?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), var(--bg-dark));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 4px 4px 0 #000;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(0, 155, 119, 0.5);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--secondary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(13px, 9999px, 81px, 0); }
    20% { clip: rect(98px, 9999px, 5px, 0); }
    40% { clip: rect(23px, 9999px, 120px, 0); }
    60% { clip: rect(76px, 9999px, 34px, 0); }
    80% { clip: rect(102px, 9999px, 56px, 0); }
    100% { clip: rect(15px, 9999px, 12px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(2px, 9999px, 85px, 0); }
    40% { clip: rect(44px, 9999px, 12px, 0); }
    60% { clip: rect(12px, 9999px, 64px, 0); }
    80% { clip: rect(110px, 9999px, 22px, 0); }
    100% { clip: rect(33px, 9999px, 88px, 0); }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 1.5rem;
    color: var(--text-light);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    color: var(--primary);
    text-transform: uppercase;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-gray);
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item .count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: block;
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
}

/* Cube Spinner Animation */
.cube-spinner {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 10s infinite linear;
    margin: 0 auto;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0, 155, 119, 0.1);
    border: 2px solid var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--primary);
}

.front  { transform: translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes spin {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-darker);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-card .icon-wrapper {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1rem;
}

.feature-card p {
    color: var(--text-gray);
}

/* CTA/Discord Section */
.cta-section {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1587573089734-09cb69c0f2b4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    text-align: center;
}

.btn-telegram {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: #0088cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-telegram:hover {
    background: #0077b5;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 50px 0 20px;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-logo {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-light);
}

.socials {
    margin-bottom: 30px;
}

.socials a {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--primary);
}

.copyright {
    color: #555;
    font-size: 0.8rem;
}

/* Animation Classes */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 20px 0;
        clip-path: circle(0px at 100% 0px);
        transition: all 0.5s ease-in-out;
    }
    
    .nav-links.open {
        clip-path: circle(1000px at 100% 0px);
    }
    
    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .cube-spinner {
        margin-top: 50px;
    }
}

