:root {
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary: #3b82f6;
    --accent: #d8b4fe;
    --dark-bg: #0f172a;
    --dark-surface: rgba(15, 23, 42, 0.9);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #e2e8f0;
    --premium-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 50% 0%, #1e1b4b, #0f172a);
    background-color: #0f172a;
    color: var(--text-main);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

/* Global Text */
h1, h2, h3, h4, h5, h6 { color: #fff; }
p, span, li, label, div { color: var(--text-muted); }
.text-muted { color: var(--text-muted) !important; opacity: 0.9; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-white { color: #fff !important; }

/* Navbar (Global) */
.navbar-landing {
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid transparent;
}
.navbar-landing.scrolled {
    padding: 0.8rem 0;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; background: linear-gradient(45deg, #fff, #d8b4fe); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-link { color: var(--text-muted) !important; font-weight: 500; margin: 0 1rem; transition: 0.3s; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: #fff !important; transform: translateY(-2px); }

/* Common Buttons */
.btn-premium {
    padding: 0.8rem 1.8rem;
    border-radius: 14px;
    font-weight: 600;
    background: var(--premium-gradient);
    color: #fff !important;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
    box-shadow: 0 10px 20px var(--primary-glow);
}
.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--primary-glow);
    color: #fff !important;
}

/* Glass Cards (Global Pattern) */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border-color: rgba(216, 180, 254, 0.4);
    background: rgba(255,255,255,0.05);
}

/* Footer (Global) */
.footer { padding: 120px 0 60px; border-top: 1px solid var(--glass-border); background: #070b14; color: #fff; }
.footer-logo { font-size: 2.2rem; font-weight: 800; margin-bottom: 2rem; }
.footer h6 { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem; font-size: 0.9rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 1.2rem; transition: all 0.3s ease; font-size: 1rem; }
.footer-links a:hover { color: #fff; transform: translateX(5px); text-shadow: 0 0 10px var(--primary-glow); }
.footer .text-muted { color: var(--text-muted) !important; font-size: 1rem; line-height: 1.7; opacity: 0.8; }
.footer-contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; }
.footer-contact-icon { color: var(--accent); font-size: 1.4rem; }

/* Utilities */
.card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; backdrop-filter: blur(10px); }
.flex-grow-1 { flex-grow: 1; }

@media (max-width: 991px) {
    .navbar-collapse { background: rgba(15, 23, 42, 0.98); padding: 2rem; border-radius: 24px; margin-top: 1rem; border: 1px solid var(--glass-border); backdrop-filter: blur(30px); max-height: 80vh; overflow-y: auto; }
}

/* Code Window (Global Premium) */
.code-window {
    background: #020617;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    margin-top: 2rem;
}
.code-window:hover { transform: translateY(-5px); }
.code-header {
    background: rgba(255,255,255,0.03);
    padding: 12px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 15px;
}
.code-tabs {
    display: flex;
    gap: 10px;
}
.code-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 8px;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.code-tab-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.code-tab-btn.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}
.code-copy-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
}
.code-copy-btn:hover {
    background: var(--glass-border);
    color: #fff;
    border-color: #fff;
}
.code-content { padding: 25px; position: relative; }
.code-pane { display: none; }
.code-pane.active { display: block; animation: fadeInUp 0.4s ease; }
.code-content pre { margin: 0 !important; background: transparent !important; padding: 0 !important; border: none !important; }
.code-content code { 
    color: #cbd5e1 !important; 
    font-family: 'Fira Code', 'Consolas', monospace; 
    font-size: 0.85rem; 
    line-height: 1.7; 
    background: transparent !important;
}
.code-keyword { color: #c678dd !important; }
.code-string { color: #98c379 !important; }
.code-func { color: #61afef !important; }
.code-var { color: #e06c75 !important; }
.code-comment { color: #5c6370 !important; font-style: italic; }

@media (max-width: 991px) {
    .code-content { padding: 18px; }
    .code-content code { font-size: 0.75rem; }
    .code-tab-btn { padding: 6px 10px; font-size: 0.65rem; }
}
