:root {
    --bg-dark: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #00f2ea;
    --accent-secondary: #ff0055;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIiBvcGFjaXR5PSIwLjAyIi8+PC9zdmc+');
    pointer-events: none;
    z-index: 1000;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent-secondary) 100%);
    /* Adjusted for a cleaner look */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-primary);
    padding-left: 1rem;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo .symbol {
    color: var(--accent-primary);
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    margin-left: 2rem;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover,
nav a.active {
    color: var(--text-primary);
}

/* Layout */
main {
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
}

.geometric-shape {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-primary), transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.2;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.1;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0;
}

/* Cards & Grid */
.content-section {
    padding: 5rem 5%;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-panel:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.glass-panel h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.glass-panel p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Markdown Content Styling */
.markdown-body {
    background: rgba(0, 0, 0, 0.2);
    padding: 3rem;
    border: 1px solid var(--glass-border);
}

.markdown-body h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.markdown-body h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.markdown-body p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ccc;
}

.markdown-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

/* Utilities */
.hidden {
    display: none;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 242, 234, 0.1);
    color: var(--accent-primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 5%;
    text-align: center;
    color: var(--text-secondary);
}

.small {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 2.5rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-content {
        margin-bottom: 4rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
    }
}

/* User Menu in Nav */
.user-menu {
    margin-left: 2rem;
    display: flex;
    align-items: center;
}

.btn-login-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn-login-glass:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.user-avatar:hover {
    transform: scale(1.1);
}

/* Adjust nav for mobile to accommodate user menu */
@media (max-width: 768px) {
    .glass-nav {
        flex-wrap: wrap;
    }

    .user-menu {
        margin-left: auto;
        margin-top: 0;
    }
}