/* CSS Variables for Theming */
:root {
    --bg-color: #050816;
    --bg-gradient: linear-gradient(135deg, #090d22 0%, #1a0f3a 100%);
    --card-bg: #22134a;
    --card-gradient: linear-gradient(145deg, #361f6a 0%, #1e103b 100%);
    --primary: #f9c04f;
    --primary-hover: #e8af3f;
    --primary-glow: rgba(249, 192, 79, 0.25);
    --text-main: #ffffff;
    --text-muted: #a8a8c7;
    --border-color: #43317a;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background-color: rgba(4, 6, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(79, 61, 135, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 44px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.btn-login {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-login:hover {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary) 0%, #e8af3f 100%);
    color: #000;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 968px) {
    nav {
        padding: 10px 24px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(4, 6, 18, 0.98);
        backdrop-filter: blur(10px);
        padding: 24px;
        border-bottom: 1px solid rgba(31, 37, 78, 0.5);
        gap: 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(31, 37, 78, 0.3);
        padding-bottom: 12px;
    }

    .nav-links li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .nav-links li a {
        display: block;
        padding: 10px 0;
        font-size: 15px;
    }

    .nav-actions .btn {
        padding: 7px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 36px;
    }

    .nav-actions .btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* Shared Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 22px;
}

p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 15px;
}

/* Footer */
footer {
    background-color: #02030a;
    padding: 56px 24px 32px;
    border-top: 1px solid rgba(79, 61, 135, 0.3);
    margin-top: 80px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
}

.footer-grid h4 {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 12px;
}

.footer-grid ul li a {
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-grid ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    margin-top: 40px;
    font-size: 13px;
    padding-top: 24px;
    border-top: 1px solid rgba(79, 61, 135, 0.2);
}