:root {
    --bg-base: #08070d;
    --bg-surface: rgba(18, 16, 28, 0.75);
    --bg-card: rgba(26, 24, 40, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary: #9d4edd;
    --primary-glow: rgba(157, 78, 221, 0.25);
    --accent-pink: #ff007f;
    --accent-pink-glow: rgba(255, 0, 127, 0.2);
    --accent-blue: #00f0ff;
    --accent-blue-glow: rgba(0, 240, 255, 0.2);
    
    --text-primary: #f3f0f7;
    --text-secondary: #a39eb8;
    --text-muted: #6e6a86;
    
    --font-display: 'Outfit', sans-serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    padding-top: 100px; /* Space for fixed navbar */
}

/* Animated Mesh Gradients Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 127, 0.06) 0%, transparent 50%);
    opacity: 0.8;
    filter: blur(80px);
}

.bg-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 70%, transparent 100%);
}

/* Decorative glowing orb tracking */
.glowing-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
    filter: blur(40px);
    animation: floatOrb 20s infinite alternate ease-in-out;
}

@keyframes floatOrb {
    0% { top: 10%; left: 10%; }
    100% { top: 70%; left: 80%; }
}

/* Premium Navbar Header */
header.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(8, 7, 13, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
}

.nav-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid rgba(157, 78, 221, 0.25);
    color: #e9d5ff;
}

/* Content Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px 24px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Card Wrapper */
.main-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-pink), var(--primary), var(--accent-blue));
}

/* Typography styles */
h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #dcd7ec, #b5a9df);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* Shared Footer styling */
footer.global-footer {
    text-align: center;
    margin-top: 60px;
    padding: 32px 24px;
    color: var(--text-muted);
    font-size: 0.88rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

footer.global-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

footer.global-footer a:hover {
    color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    .nav-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    .main-card {
        padding: 24px;
        border-radius: 16px;
    }
    h1 {
        font-size: 2.2rem;
    }
}
