:root {
    --bg-glass: rgba(255, 255, 255, 0.5);
    --bg-page: #f8fafc;
    --text: #0f172a;
    --primary: #10b981;
    --glow: rgba(16, 185, 129, 0.25);
    --border-glass: rgba(255, 255, 255, 0.6);
}

.dark {
    --bg-glass: rgba(15, 23, 42, 0.65);
    --bg-page: #020617;
    --text: #f1f5f9;
    --primary: #34d399;
    --glow: rgba(52, 211, 153, 0.2);
    --border-glass: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-page);
    color: var(--text);
    transition: background-color 0.3s ease;
    overflow-x: hidden;
    padding-bottom: 120px;
}

@media (min-width: 1024px) {
    body { padding-bottom: 40px; }
}

.mesh-bg {
    position: fixed;
    top: -20%; left: -20%; width: 140%; height: 140%;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 45%);
    filter: blur(70px);
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.025;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.08);
    border-radius: 28px;
    transition: transform 0.25s ease;
}

.glass-card:hover {
    transform: translateY(-3px);
}

.glossy-btn {
    background: linear-gradient(145deg, var(--primary), #059669);
    color: white;
    border-radius: 24px;
    font-weight: 700;
    box-shadow: 0 12px 22px -8px var(--glow);
    transition: all 0.25s;
}

.glossy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -8px var(--glow);
}

.nav-dock-container {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 50;
    pointer-events: none;
}

.nav-dock {
    pointer-events: auto;
    background: var(--bg-glass);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border-glass);
    border-radius: 40px;
    display: flex;
    gap: 6px;
    padding: 8px 18px;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
}

.active-dot {
    width: 9px;
    height: 9px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.toggle-active {
    background-color: var(--primary) !important;
    color: white !important;
}

.toggle-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

#loader-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-page);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s ease;
}

input, textarea {
    outline: none;
    transition: border-color 0.2s ease;
}

input:focus, textarea:focus {
    border-color: var(--primary) !important;
}

html {
    scroll-behavior: smooth;
}