:root {
    --primary-color: #d946ef; /* Fuchsia */
    --primary-light: #f472b6; /* Pink */
    --accent-color: #8b5cf6; /* Purple */
    --accent-hover: #c026d3; /* Deep Fuchsia */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #faf5ff; /* Lavender blush */
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --header-scrolled-bg: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 35px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Theme components */
    --primary-rgb: 217, 70, 239;
    --accent-rgb: 139, 92, 246;
    --card-accent-bg: linear-gradient(135deg, rgba(217, 70, 239, 0.1), rgba(139, 92, 246, 0.1));
    --hero-gradient: linear-gradient(135deg, rgba(217, 70, 239, 0.5), rgba(251, 146, 60, 0.4));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background: linear-gradient(-45deg, var(--bg-light), rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb), 0.15), var(--bg-light));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s var(--transition-smooth) forwards;
    opacity: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    text-align: center;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width var(--transition-smooth);
    border-radius: 3px;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), #fde047);
    color: var(--text-dark);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
    color: var(--text-dark);
}

/* Main Layout */
main {
    padding-top: 80px; /* Account for fixed header */
    min-height: calc(100vh - 80px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.card:hover::before {
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .hamburger {
        display: block;
    }

    .container {
        padding: 3rem 1.5rem;
    }
}

/* ==========================================================================
   MULTICOLOR THEMES OVERRIDES
   ========================================================================== */

/* VIBRANT MULTICOLOR THEME */
.theme-multicolor {
    --primary-color: #d946ef;
    --primary-light: #f472b6;
    --accent-color: #8b5cf6;
    --accent-hover: #c026d3;
    --bg-light: #faf5ff;
    --bg-white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --primary-rgb: 217, 70, 239;
    --accent-rgb: 139, 92, 246;
    --card-accent-bg: linear-gradient(135deg, rgba(217, 70, 239, 0.1), rgba(139, 92, 246, 0.1));
    --hero-gradient: linear-gradient(135deg, rgba(217, 70, 239, 0.5), rgba(251, 146, 60, 0.4));
}

/* AMETHYST THEME (Royal Purple) */
.theme-amethyst {
    --primary-color: #6d28d9;
    --primary-light: #a78bfa;
    --accent-color: #8b5cf6;
    --accent-hover: #5b21b6;
    --bg-light: #f5f3ff;
    --bg-white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --primary-rgb: 109, 40, 217;
    --accent-rgb: 139, 92, 246;
    --card-accent-bg: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(139, 92, 246, 0.1));
    --hero-gradient: linear-gradient(135deg, rgba(109, 40, 217, 0.5), rgba(167, 139, 250, 0.4));
}

/* EMERALD THEME (Mint Teal) */
.theme-emerald {
    --primary-color: #0f766e;
    --primary-light: #2dd4bf;
    --accent-color: #0d9488;
    --accent-hover: #115e59;
    --bg-light: #f0fdfa;
    --bg-white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --primary-rgb: 15, 118, 110;
    --accent-rgb: 13, 148, 136;
    --card-accent-bg: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(13, 148, 136, 0.1));
    --hero-gradient: linear-gradient(135deg, rgba(15, 118, 110, 0.5), rgba(45, 212, 191, 0.4));
}

/* SUNSET THEME (Amber/Coral) */
.theme-sunset {
    --primary-color: #c2410c;
    --primary-light: #fb923c;
    --accent-color: #ea580c;
    --accent-hover: #9a3412;
    --bg-light: #fff7ed;
    --bg-white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --primary-rgb: 194, 65, 12;
    --accent-rgb: 234, 88, 12;
    --card-accent-bg: linear-gradient(135deg, rgba(194, 65, 12, 0.1), rgba(234, 88, 12, 0.1));
    --hero-gradient: linear-gradient(135deg, rgba(194, 65, 12, 0.5), rgba(251, 146, 60, 0.4));
}

/* MIDNIGHT THEME (Premium Dark Slate) */
.theme-midnight {
    --primary-color: #818cf8;
    --primary-light: #a5b4fc;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --text-dark: #f8fafc;
    --text-light: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --header-scrolled-bg: rgba(30, 41, 59, 0.95);
    --primary-rgb: 129, 140, 248;
    --accent-rgb: 99, 102, 241;
    --card-accent-bg: linear-gradient(135deg, rgba(129, 140, 248, 0.15), rgba(99, 102, 241, 0.15));
    --hero-gradient: linear-gradient(135deg, rgba(15, 23, 42, 0.65), rgba(49, 46, 129, 0.5));
}

/* Dynamic theme transitions */
body {
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

h1, h2, h3, h4, h5, h6, .logo, .logo i, .btn, .card, .badge, .nav-links a, header, footer, .icon-wrapper {
    transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Elegant Hero definition referencing the theme-aware variables */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-gradient), url('assets/hero.png') center/cover !important;
    color: white;
    padding-top: 80px;
    text-align: center;
}

/* ==========================================================================
   THEME SWITCHER FLOATING CONTROLS
   ========================================================================== */
.theme-switcher-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    pointer-events: none;
}

.theme-btn-trigger {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
    pointer-events: auto;
    animation: triggerHeartbeat 4s infinite alternate;
}

@keyframes triggerHeartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.theme-btn-trigger:hover {
    transform: scale(1.12) rotate(20deg);
    animation: none;
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.5);
}

.theme-btn-trigger i {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-switcher-container.expanded .theme-btn-trigger i {
    transform: rotate(180deg);
}

.theme-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    border-radius: 40px;
    box-shadow: var(--shadow-hover);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(40px) scale(0.85);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.theme-switcher-container.expanded .theme-panel {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.theme-bubble {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 2px 5px rgba(0,0,0,0.05);
}

.theme-bubble:hover {
    transform: scale(1.2);
}

.theme-bubble.active {
    border-color: var(--bg-white);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.6), inset 0 2px 4px rgba(0,0,0,0.15);
}

.theme-bubble[data-theme="multicolor"] { background: linear-gradient(135deg, #d946ef, #fb923c); }
.theme-bubble[data-theme="amethyst"] { background: linear-gradient(135deg, #6d28d9, #a78bfa); }
.theme-bubble[data-theme="emerald"] { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.theme-bubble[data-theme="sunset"] { background: linear-gradient(135deg, #c2410c, #fb923c); }
.theme-bubble[data-theme="midnight"] { background: linear-gradient(135deg, #0f172a, #334155); }

/* Sleek Tooltips */
.theme-bubble::after {
    content: attr(data-name);
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #0f172a;
    color: #f8fafc;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
}

.theme-bubble:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
