:root {
    --primary-dark: rgba(13, 27, 33, 0.95);
    --secondary-dark: #142830;
    --accent-teal: #00c2cb;
    --accent-gold: #ffd700;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --card-bg: rgba(20, 40, 48, 0.8);
    --gold-gradient: linear-gradient(135deg, #ffd700 0%, #e6b800 100%);
    --teal-gradient: linear-gradient(135deg, #00c2cb 0%, #00818a 100%);
    --header-footer-gradient: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-teal) 20%, 
        var(--accent-gold) 50%, 
        var(--accent-teal) 80%, 
        transparent 100%);

    --spacing-xsmall: 0.5rem;
    --spacing-small: 1rem;
    --spacing-medium: 2rem;
    --spacing-large: 4rem;
}

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

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background-color: var(--primary-dark);
    background-image: linear-gradient(
                        rgb(13 27 33 / 50%), 
                        rgb(13 27 33 / 50%));
    color: var(--text-color);
    line-height: 1.1;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100px 100px;
    background-repeat: repeat;
    z-index: -1;
    animation: subtleMove 120s infinite linear;
}

@keyframes subtleMove {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-medium) 0;
}

.highlight {
    color: var(--accent-gold);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-gold), transparent);
}

/* ----- Header & Navigation ----- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 5%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5),
                0 2px 8px rgba(0, 194, 203, 0.1);
    border-bottom: 1px solid rgba(0, 194, 203, 0.1);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--header-footer-gradient);
    background-size: 200% 100%;
    animation: gradientMove 8s infinite linear;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}

.logo-container {
    width: 120px;
    filter: drop-shadow(0 0 8px rgba(0, 194, 203, 0.3));
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    width: 100%;
}

nav {
    position: relative;
}

nav ul {
    display: flex;
    gap: var(--spacing-large);
}

nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    text-shadow: 0 0 10px rgba(0, 194, 203, 0.2);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-gradient);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-teal);
}

nav ul li a:hover {
    color: var(--accent-teal);
    text-shadow: 0 0 8px rgba(0, 194, 203, 0.5);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 194, 203, 0.5);
}

/* ----- Hero Section ----- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/GoatGaming@1440p.png');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 25%;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--spacing-medium);
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-small);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-medium);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-small);
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background-color: var(--secondary-dark);
    color: var(--text-color);
    border: 2px solid var(--accent-teal);
}

.btn.primary {
    background: var(--teal-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 194, 203, 0.4);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #00d0d9 0%, #00919a 100%);
}

.btn.secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ----- Sections ----- */
.section {
    padding: var(--spacing-large) 0;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-large);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section.dark {
    background-color: var(--secondary-dark);
}

.section-divider {
    position: relative;
    height: 60px;
    margin: auto;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-teal) 20%, 
        var(--accent-gold) 50%, 
        var(--accent-teal) 80%, 
        transparent 100%);
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-image: url('../images/GoatGaming@1440p-NO-BG.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    padding: 5px;
}

/* ----- Games Grid ----- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-medium);
}

.game-card, .event-card, .join-card, .section h2 {
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.game-card, .event-card, .join-card {
    opacity: 0;
}

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

.game-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 194, 203, 0.2);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 194, 203, 0.2);
}

.game-image {
    height: 200px;
    background-color: #293b43;
    background-size: cover;
    background-position: center;
}

.game-card:nth-child(1) .game-image {
    background-image: url('../images/cs2.webp');
}

.game-card:nth-child(2) .game-image {
    background-image: url('../images/cs16.jpg');
}

.game-card:nth-child(3) .game-image {
    background-image: url('../images/valorant.webp');
}

.game-card:nth-child(4) .game-image {
    background-image: url('../images/lol.webp');
}

.game-card h3 {
    padding: var(--spacing-small);
    color: var(--accent-gold);
    font-size: 1.5rem;
}

.game-card p {
    padding: 0 var(--spacing-small) var(--spacing-small);
    color: var(--text-secondary);
}

/* ----- Events Timeline ----- */
.events-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-medium);
    max-width: 800px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    background-color: rgba(13, 27, 33, 0.8);
    border-radius: 8px;
    overflow: hidden;
    border-left: 4px solid var(--accent-gold);
}

.event-date {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    padding: var(--spacing-small);
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.event-date .day {
    font-size: 1.8rem;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
}

.event-details {
    padding: var(--spacing-small);
    flex-grow: 1;
}

.event-details h3 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.event-game {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ----- Join Section ----- */
.join-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-medium);
}

.join-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: var(--spacing-medium);
    text-align: center;
    border: 1px solid rgba(0, 194, 203, 0.2);
    transition: transform 0.3s ease;
}

.join-card.featured {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.join-card:hover {
    transform: translateY(-5px);
}

.join-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-small);
    background-color: var(--secondary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-teal);
}

.join-card h3 {
    margin-bottom: var(--spacing-small);
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.join-card p {
    margin-bottom: var(--spacing-medium);
    color: var(--text-secondary);
}

/* ----- Footer ----- */
footer {
    background-color: var(--primary-dark);
    position: relative;
    padding: var(--spacing-xsmall) 0;
    text-align: center;
    font-size: small;
    font-weight: 400;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5), 
                0 -2px 8px rgba(0, 194, 203, 0.1);
    margin-top: auto;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--header-footer-gradient);
    background-size: 200% 100%;
    animation: gradientMove 8s infinite linear;
    z-index: 5;
}

.footer-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.interactive-logo {
    width: 75px;
    height: 75px;
    margin: 1rem auto;
    background-image: url('../images/GoatGaming@1440p-NO-BG.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s ease;
    filter: brightness(0.8) drop-shadow(0px 0px 0.75rem black);
}

.interactive-logo:hover {
    transition: all 0.5s ease;
    transform: rotate(5deg) scale(1.1);
    filter: brightness(1.2) drop-shadow(0 0 10px var(--accent-teal));
}

.footer-top {
    padding: var(--spacing-large) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-medium);
}

.footer-logo {
    width: 100px;
    margin-bottom: var(--spacing-small);
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-small);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--teal-gradient);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a:hover {
    color: var(--accent-teal);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: var(--spacing-xsmall);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.social-icon:hover {
    background-color: var(--accent-teal);
    transform: translateY(-3px);
}

.social-icon.discord {
    background-image: url('../images/icon-discord.png');
}

.social-icon.twitch {
    background-image: url('../images/icon-twitch.png');
}

.social-icon.youtube {
    background-image: url('../images/icon-youtube.png');
}

.social-icon.twitter {
    background-image: url('../images/icon-twitter.png');
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-small) 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ----- Responsive Design ----- */
@media (max-width: 768px) {
    header {
        padding: 2rem 5%;
    }

    header::after, footer::before {
        background: var(--header-footer-gradient);
        background-size: 200% 100%;
        animation: gradientMove 8s infinite linear;
    }

    .logo-container {
        width: 100px;
    }

    nav ul {
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background-color: rgba(13, 27, 33, 0.95);
        flex-direction: column;
        gap: 0;
        height: 0;
        overflow: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease;
        /*border-bottom: 1px solid rgba(0, 194, 203, 0.3);*/
        backdrop-filter: blur(8px);
    }

    nav ul.active {
        height: auto;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1rem 5%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile menu hamburger animation */
    .mobile-menu-toggle span {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .hero-content p {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-small);
    }

    .section h2 {
        font-size: 2rem;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-xsmall);
    }
}