:root {
    --main-color: #2e8b57;
    --main-dark: #1e5631;
    --accent-orange: #ff7f50;
    --accent-purple: #8a2be2;
    --accent-green: #63da15;
    --discord-blue: #5865F2;
    --usbv-grey: #3d3d3d;
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #242424;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #333333;
    --gradient-1: linear-gradient(135deg, var(--main-color), var(--main-dark));
    --usbv-gradient: linear-gradient(135deg, #5a5a5a, #3d3d3d, #1f1f1f);
    --gradient-2: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(46, 139, 87, 0.2);
}

* {
    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-color) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, var(--main-dark) 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(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    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-purple);
}

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

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

.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(--main-color);
}

.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, #e63946, #d62828);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.language-switch:hover {
    background: linear-gradient(135deg, #d62828, #e63946);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 57, 70, 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-purple);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.7);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--main-color), var(--accent-purple));
    -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-purple), var(--accent-purple));
    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(46, 139, 87, 0.4);
}

@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-orange), var(--accent-purple));
    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(46, 139, 87, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: var(--shadow-glow);
}

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

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

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

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

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

.wee-card h3 {
    color: var(--accent-green);
}

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

.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(46, 139, 87, 0.4);
}

/* 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(255, 255, 255, 0.3);
}

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

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

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

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

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

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

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

.footer-section h4 {
    color: var(--main-color);
    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(--main-color);
}

.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(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 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(--accent-purple);
    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);
}

/* News Section Styles */
.news-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.news-hero, .news-detail-hero {
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url("/assets/img/news-bg.jpg") center/cover;
}

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

.news-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.news-card-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.news-card-link {
    color: var(--main-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.news-card-link:hover {
    color: var(--accent-orange);
}

/* All News Page */
.all-news {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.news-filter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

#news-search {
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    flex-grow: 1;
    max-width: 500px;
}

#news-sort {
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
}

/* News Detail Page */
.news-detail-content {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.news-detail-image-container {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.news-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.news-detail-text {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    line-height: 1.8;
}

.news-detail-text p {
    margin-bottom: 1.5rem;
}

.news-detail-text ul, .news-detail-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-detail-text li {
    margin-bottom: 0.5rem;
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .news-grid, .news-list {
        grid-template-columns: 1fr;
    }

    .news-detail-image {
        max-height: 300px;
    }
}