/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-darker: #050508;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(18, 18, 26, 0.75);
    --border-color: rgba(0, 255, 102, 0.15);
    --border-hover: rgba(0, 255, 102, 0.4);
    
    --primary: #00ff66; /* Neon Gremlin Green */
    --primary-glow: rgba(0, 255, 102, 0.35);
    --secondary: #9d4edd; /* Neon Purple */
    --secondary-glow: rgba(157, 78, 221, 0.35);
    
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #1e1e2f;
    border-radius: 5px;
    border: 2px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* --- Ambient Neon Background Glows --- */
.neon-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.6;
}

.neon-glow-2 {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: 10%;
    left: -200px;
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.5;
}

/* --- Container Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text-white);
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    text-transform: uppercase;
    position: relative;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-darker);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    background-color: #00e65c;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 255, 102, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
    box-shadow: 0 4px 20px var(--secondary-glow);
    transform: translateY(-3px);
}

/* --- Header / Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 24px 0;
}

.main-header.scrolled {
    padding: 12px 0;
    background-color: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-white);
    text-transform: uppercase;
}

.logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    padding: 180px 24px 80px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.live-badge-wrapper {
    margin-bottom: 24px;
}

.live-badge {
    background-color: rgba(255, 0, 0, 0.15);
    color: #ff3b30;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 59, 48, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1.5px;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.2);
}

.live-badge.is-live {
    background-color: rgba(0, 255, 102, 0.15);
    color: var(--primary);
    border-color: rgba(0, 255, 102, 0.4);
    box-shadow: 0 0 15px var(--primary-glow);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff3b30;
    animation: pulse 1.5s infinite;
}

.live-badge.is-live .pulse-dot {
    background-color: var(--primary);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0px;
}

/* --- Stream Embed Section --- */
.stream-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    position: relative;
}

.stream-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    background: #000;
}

.twitch-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.twitch-player-container iframe,
#twitch-embed-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Socials Section --- */
.socials-section {
    padding: 100px 0;
    position: relative;
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.social-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255,255,255,0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: var(--transition);
}

.social-card .social-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.social-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.social-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-action {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.card-action i {
    font-size: 0.75rem;
    transition: var(--transition);
}

/* Social Card Hover Styles & Color Schemes */
.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--border-hover);
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-card:hover .card-action i {
    transform: translateX(4px);
}

/* Twitch Card */
.social-card.twitch::before { background-color: #6441a5; }
.social-card.twitch .social-icon { color: #6441a5; }
.social-card.twitch:hover { border-color: rgba(100, 65, 165, 0.5); box-shadow: 0 15px 30px rgba(100, 65, 165, 0.15); }
.social-card.twitch .card-action { color: #6441a5; }

/* Discord Card */
.social-card.discord::before { background-color: #5865f2; }
.social-card.discord .social-icon { color: #5865f2; }
.social-card.discord:hover { border-color: rgba(88, 101, 242, 0.5); box-shadow: 0 15px 30px rgba(88, 101, 242, 0.15); }
.social-card.discord .card-action { color: #5865f2; }

/* YouTube Card */
.social-card.youtube::before { background-color: #ff0000; }
.social-card.youtube .social-icon { color: #ff0000; }
.social-card.youtube:hover { border-color: rgba(255, 0, 0, 0.5); box-shadow: 0 15px 30px rgba(255, 0, 0, 0.15); }
.social-card.youtube .card-action { color: #ff0000; }

/* Instagram Card */
.social-card.instagram::before { background-color: #e1306c; }
.social-card.instagram .social-icon { color: #e1306c; }
.social-card.instagram:hover { border-color: rgba(225, 48, 108, 0.5); box-shadow: 0 15px 30px rgba(225, 48, 108, 0.15); }
.social-card.instagram .card-action { color: #e1306c; }

/* TikTok Card */
.social-card.tiktok::before { background-color: #00f2fe; }
.social-card.tiktok .social-icon { color: #00f2fe; }
.social-card.tiktok:hover { border-color: rgba(0, 242, 254, 0.5); box-shadow: 0 15px 30px rgba(0, 242, 254, 0.15); }
.social-card.tiktok .card-action { color: #00f2fe; }

/* Donate Card */
.social-card.donate::before { background-color: var(--primary); }
.social-card.donate .social-icon { color: var(--primary); }
.social-card.donate:hover { border-color: rgba(0, 255, 102, 0.5); box-shadow: 0 15px 30px rgba(0, 255, 102, 0.2); }
.social-card.donate .card-action { color: var(--primary); }

/* --- About Me Section --- */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-img-container {
    flex-shrink: 0;
    width: 320px;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background-color: var(--bg-card);
    transition: var(--transition);
}

.about-img-container:hover {
    border-color: var(--primary);
    box-shadow: 0 25px 50px var(--primary-glow);
    transform: scale(1.02);
}

.about-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    flex-grow: 1;
}

.about-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--bg-darker);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-design {
    font-size: 0.8rem !important;
    opacity: 0.6;
}

/* --- Animations --- */
@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

/* --- Responsive Design (RWD) --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .about-img-container {
        width: 250px;
        height: 250px;
    }
    
    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 16px 0;
    }
    
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
