:root {
    --background-color: #121212;
    --text-color: #ffffff;
    --link-color: #b87ceb;
    --link-hover-color: #9b59d1;
    --border-color: #333;
    --highlight-color: #1e1e1e;
    --nav-height: 80px;
    --max-width: 1200px;
    --mobile-nav-height: 120px;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.75;
    margin: 0;
    padding: 0;
}

header {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-logo h1 {
    font-size: 1.75rem;
    margin: 0;
    padding: 0;
}

.nav-logo h4 {
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

main {
    max-width: var(--max-width);
    margin: var(--nav-height) auto 0;
    padding: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover-color);
}

.card {
    background-color: var(--highlight-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

footer {
    max-width: var(--max-width);
    margin: 4rem auto 0;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 0.75rem;
        justify-content: center;
    }
    
    .nav-logo {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-logo h1 {
        font-size: 1.5rem;
    }

    .nav-logo h4 {
        font-size: 0.8rem;
    }

    header {
        height: var(--mobile-nav-height);
        position: fixed;
    }

    main {
        margin-top: var(--mobile-nav-height);
        padding: 1rem;
    }

    .dropdown {
        display: none;
    }

    .more-mobile-link {
        display: inline-block;
        color: var(--link-color);
        text-decoration: none;
    }

    .more-mobile-link:hover {
        color: var(--link-hover-color);
    }
}

/* Snowflake styles */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 999;
    pointer-events: none;
    color: white;
    font-size: 1em;
    user-select: none;
    animation: fall linear infinite;
    transition: opacity 1s ease-out;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

#toggle-snow {
    background-color: var(--highlight-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-family: 'Inter', sans-serif;
}

#toggle-snow:hover {
    background-color: var(--link-hover-color);
}

hr {
    margin: 30px 0;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    color: var(--link-color);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
}

.dropbtn:hover {
    color: var(--link-hover-color);
}

.dropdown-content {
    display: none;
    opacity: 0;
    position: absolute;
    right: 0;
    background-color: var(--highlight-color);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    z-index: 1;
    transition: opacity 0.2s ease-in-out;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--background-color);
    border-radius: 8px;
}

/* Add active class for click state */
.dropdown-content.active,
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        width: 100%;
        text-align: center;
    }
    
    .dropdown {
        width: 100%;
        text-align: center;
    }
}

/* Hide the mobile-only link by default */
.more-mobile-link {
    display: none;
}

@media (max-width: 768px) {
    /* Hide dropdown elements on mobile */
    .dropdown {
        display: none;
    }

    /* Show the mobile link instead */
    .more-mobile-link {
        display: inline-block;
        color: var(--link-color);
        text-decoration: none;
    }

    .more-mobile-link:hover {
        color: var(--link-hover-color);
    }
}