/* Shared design tokens and base styles, extracted from index.html */
:root {
    /* Cyber Theme (Default Dark) */
    --bg-base: #060913;
    --bg-surface: rgba(14, 20, 38, 0.65);
    --bg-surface-hover: rgba(22, 31, 58, 0.85);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(99, 102, 241, 0.45);
    --card-glow: rgba(99, 102, 241, 0.15);
    
    --primary: #6366f1;
    --primary-rgb: 99, 102, 241;
    --primary-hover: #4f46e5;
    --secondary: #06b6d4;
    --secondary-rgb: 6, 182, 212;
    --accent: #a855f7;
    --accent-rgb: 168, 85, 247;
    
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --nav-bg: rgba(6, 9, 19, 0.75);
    --terminal-bg: #090e1a;
    --tag-bg: rgba(99, 102, 241, 0.12);
    --tag-text: #818cf8;
    --tag-border: rgba(99, 102, 241, 0.25);
    
    --success: #10b981;
    --glass-blur: blur(16px);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 35px -5px rgba(99, 102, 241, 0.35);
}

/* Ocean Midnight Theme */
[data-theme="ocean"] {
    --bg-base: #030c18;
    --bg-surface: rgba(8, 26, 49, 0.65);
    --bg-surface-hover: rgba(12, 38, 72, 0.85);
    --card-border: rgba(56, 189, 248, 0.14);
    --card-border-hover: rgba(56, 189, 248, 0.5);
    --card-glow: rgba(56, 189, 248, 0.18);
    
    --primary: #0284c7;
    --primary-rgb: 2, 132, 199;
    --primary-hover: #0369a1;
    --secondary: #38bdf8;
    --secondary-rgb: 56, 189, 248;
    --accent: #2dd4bf;
    --accent-rgb: 45, 212, 191;
    
    --text-main: #f0f9ff;
    --text-secondary: #93c5fd;
    --text-muted: #64748b;
    
    --nav-bg: rgba(3, 12, 24, 0.8);
    --terminal-bg: #041224;
    --tag-bg: rgba(56, 189, 248, 0.12);
    --tag-text: #38bdf8;
    --tag-border: rgba(56, 189, 248, 0.25);
    
    --shadow-glow: 0 0 35px -5px rgba(56, 189, 248, 0.35);
}

/* Clean Modern Light Theme */
[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.82);
    --bg-surface-hover: rgba(255, 255, 255, 0.98);
    --card-border: rgba(15, 23, 42, 0.08);
    --card-border-hover: rgba(79, 70, 229, 0.35);
    --card-glow: rgba(79, 70, 229, 0.08);
    
    --primary: #4f46e5;
    --primary-rgb: 79, 70, 229;
    --primary-hover: #4338ca;
    --secondary: #0284c7;
    --secondary-rgb: 2, 132, 199;
    --accent: #7c3aed;
    --accent-rgb: 124, 58, 237;
    
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --nav-bg: rgba(248, 250, 252, 0.85);
    --terminal-bg: #1e293b;
    --tag-bg: rgba(79, 70, 229, 0.08);
    --tag-text: #4f46e5;
    --tag-border: rgba(79, 70, 229, 0.18);
    
    --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 10px 30px -10px rgba(79, 70, 229, 0.2);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Ambient Glow Orbs */
.ambient-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: 15%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.45) 0%, transparent 70%);
    animation-duration: 18s;
}

.orb-2 {
    top: 45%;
    right: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.35) 0%, transparent 70%);
    animation-duration: 24s;
    animation-delay: -5s;
}

.orb-3 {
    bottom: -15%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3) 0%, transparent 70%);
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, 70px) scale(0.95); }
}

/* Ambient subtle grid pattern overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

[data-theme="light"] .grid-overlay {
    background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}

/* ==========================================================================
   UTILITY CLASSES & GLASSMORPHISM
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section-padding {
    padding: 110px 0;
}

.glass-card {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

/* Interactive Card Spotlight Effect */
.spotlight-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, -200px);
    left: var(--mouse-x, -200px);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--card-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--tag-border);
    text-transform: uppercase;
}

.badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: pulseWave 1.8s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

@keyframes pulseWave {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px -5px rgba(var(--primary-rgb), 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -4px rgba(var(--primary-rgb), 0.7);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    color: var(--text-main);
    border-color: var(--text-secondary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Section Headings */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 10%, var(--primary) 60%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #0f172a 10%, var(--primary) 70%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Theme Selector */
.theme-switcher {
    position: relative;
}

.theme-btn {
    background: var(--bg-surface);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(20deg);
}

.theme-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 170px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 101;
}

.theme-dropdown.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.theme-option:hover,
.theme-option.active {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.35rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}


/* Footer (from index.html) */
footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
    background: var(--bg-surface);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface-hover);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.back-to-top:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-4px);
}

/* Mobile drawer + nav links (from index.html) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}


/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 85px;
    left: 20px;
    right: 20px;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: var(--transition-smooth);
    z-index: 99;
}

.mobile-drawer.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--card-border);
}

/* Logo (from index.html) */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    font-family: var(--font-heading);
}

.logo-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.4);
}

.logo-monogram {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.4);
}

.logo-text span {
    color: var(--primary);
}

.logo-badge {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    padding: 2px 7px;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    border-radius: var(--radius-sm);
    margin-left: 6px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Navigation bar (from index.html) */
nav {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    padding: 0 20px;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--nav-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

nav.scrolled .nav-wrapper {
    padding: 8px 20px;
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}
