:root {
    --main-color: #2e8b57;
    --main-dark: #1a4d2e;
    --main-light: #3cb371;
    --accent-teal: #20b2aa;
    --accent-lime: #32cd32;
    --discord-blue: #5865F2;
    --bg-primary: #0a160a;
    --bg-secondary: #121f12;
    --bg-card: #1a291a;
    --text-primary: #e0ffe0;
    --text-secondary: #a8c8a8;
    --text-muted: #708870;
    --border-color: #223322;
    --gradient-1: linear-gradient(135deg, var(--main-light), var(--main-color));
    --gradient-2: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    --shadow: 0 8px 32px rgba(0, 20, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(46, 139, 87, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 80%, var(--main-light) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, var(--main-color) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 22, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--main-dark);
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-teal);
}

.logo span {
    color: var(--accent-lime);
}

.logo span:last-child {
    color: var(--accent-teal);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-lime);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.language-switch {
    padding: 8px 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #1a4d2e, #2e8b57);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.4);
}

.language-switch:hover {
    background: linear-gradient(135deg, #2e8b57, #1a4d2e);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 139, 87, 0.6);
}

/* Main Content */
main {
    margin-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url("/api/placeholder/1200/800") center/cover;
}

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--accent-teal);
    box-shadow: 0 0 25px rgba(32, 178, 170, 0.7);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--main-light), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 1s ease-out 0.2s backwards;
}

.btn-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.4s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal));
    color: var(--text-primary);
}

.btn-discord {
    background: linear-gradient(135deg, var(--discord-blue), var(--discord-blue));
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(60, 179, 113, 0.6);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Projects Section */
.projects {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-lime), var(--accent-teal));
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(60, 179, 113, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-light);
    box-shadow: 0 0 25px rgba(32, 178, 170, 0.3);
}

.discord-card {
    border-top: 3px solid var(--discord-blue);
}

.eulex-card {
    border-top: 3px solid var(--accent-lime);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.discord-card h3 {
    color: var(--discord-blue);
}

.eulex-card h3 {
    color: var(--accent-lime);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.project-card li {
    margin-bottom: 0.5rem;
}

/* About Button Section */
.about-section {
    padding: 4rem 0;
    text-align: center;
}

.about-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.about-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(60, 179, 113, 0.6);
}

/* Maintenance Section */
.maintenance {
    padding: 4rem 0;
    background: var(--gradient-1);
    color: white;
    text-align: center;
}

.maintenance h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.maintenance p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.maintenance-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--main-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.maintenance-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(224, 255, 224, 0.3);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--main-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--main-light);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--accent-lime);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99;
    cursor: pointer;
    border: none;
}

.scroll-top.active {
    opacity: 1;
}

.scroll-top:hover {
    background: var(--main-light);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Error Page Styles */
.error-hero {
    min-height: 100vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.error-hero h1 {
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 700;
    color: var(--error-color);
    margin-bottom: 1rem;
    line-height: 1;
    background: none;
    -webkit-text-fill-color: var(--error-color);
}

.error-hero h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

.error-owl {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    position: relative;
}

.error-owl img {
    width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
    border-radius: 50%;
    border: 3px solid var(--accent-teal);
    box-shadow: 0 0 25px rgba(32, 178, 170, 0.7);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

:root {
    --error-color: #ff4d4d;
}