/* Dark Theme Variables */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --accent-color: #bb86fc;
    --yt-red: #ff0000;
    --primary-bg: #1a1a1a;
    --accent-purple: #8a2be2;
    --pf2e-green: #2d5a27;
    --text-main: #ffffff;
}

/* Global Reset & Body Styling */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1000px;
}

/* Header & Logo */
header {
    text-align: center;
    margin-bottom: 40px;
}

header img {
    filter: drop-shadow(0 0 10px rgba(187, 134, 252, 0.3));
    border-radius: 50%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

/* --- NAVIGATION BAR --- */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding: 15px 10px;
    border-bottom: 1px solid #333;
    list-style: none !important;
}

.main-nav li {
    list-style: none !important;
    position: relative;
}

.main-nav a,
.dropbtn {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-nav a:hover,
.dropbtn:hover {
    color: var(--accent-purple);
}

.main-nav a.active {
    color: var(--accent-purple);
    font-weight: bold;
}

/* --- DROPDOWN LOGIC --- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    /* Ensures it stays above all other content */
    border-radius: 4px;
    border: 1px solid #333;
    margin-top: 0;
    padding: 5px 0;
    list-style: none !important;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    text-align: left;
    align-items: flex-start;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: #333;
}

/* Desktop Hover */
@media (hover: hover) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* --- MOBILE & TOUCH ADJUSTMENTS --- */
@media (max-width: 600px) {
    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 10px;
    }

    .main-nav a,
    .dropbtn {
        background-color: #252525;
        border: 1px solid #333;
        border-radius: 8px;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .dropdown-content {
        display: none;
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        margin-top: 5px;
    }

    .dropdown:active .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
    }
}

/* --- SECTION STYLING --- */
.description,
.bio-card {
    background-color: #252525;
    padding: 25px;
    border-radius: 12px;
    line-height: 1.6;
    margin-bottom: 30px;
    border: 1px solid #333;
}

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

.bio-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-purple);
    margin-bottom: 15px;
}

/* Video Containers */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
    margin: 10px;
}

.btn.twitch {
    background-color: #9146ff;
    color: white;
}

.btn.youtube {
    background-color: var(--yt-red);
    color: white;
}

.btn:hover {
    transform: scale(1.05);
}