/* Theme Toggle Styles */
:root {
    --bg-primary: #050505;
    --bg-secondary: #0A0A0A;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: #0A0A0A;
}

html,
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: rgba(15, 23, 42, 0.12);
    --card-bg: #ffffff;
}

[data-theme="light"] body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] html {
    background-color: var(--bg-primary);
}

[data-theme="light"] .bento-card {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .text-gray-400 {
    color: var(--text-secondary);
}

[data-theme="light"] .text-gray-300 {
    color: var(--text-secondary);
}

[data-theme="light"] .bg-white\/5 {
    background: rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .border-white\/10 {
    border-color: var(--border-color);
}

[data-theme="light"] .text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] a {
    color: inherit;
}

[data-theme="light"] .bg-white {
    background-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
}

[data-theme="light"] .bg-\[#050505\] {
    background-color: var(--bg-primary) !important;
}

[data-theme="light"] .bg-\[#0A0A0A\] {
    background-color: var(--bg-secondary) !important;
}

[data-theme="light"] .text-black {
    color: var(--bg-primary) !important;
}

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="light"] .scroll-indicator {
    background: rgba(15, 23, 42, 0.1);
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 200ms ease;
    position: relative;
}

[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(15, 23, 42, 0.15);
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

.theme-toggle-btn:hover {
    border-color: rgba(0, 220, 130, 0.4);
    color: #00dc82;
    background: rgba(0, 220, 130, 0.08);
}

[data-theme="light"] .theme-toggle-btn:hover {
    border-color: rgba(0, 220, 130, 0.5);
    background: rgba(0, 220, 130, 0.1);
}

.theme-toggle-btn i {
    pointer-events: none;
    transition: transform 300ms ease;
}

.theme-toggle-btn[data-theme="dark"] i:last-child,
.theme-toggle-btn[data-theme="light"] i:first-child {
    display: none;
}

/* Page Transition */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.active {
    opacity: 0.85;
    pointer-events: all;
}

/* Smooth page load animation */
body {
    animation: pageFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .page-transition {
        transition: none;
    }
    
    body {
        animation: none;
    }
}

