:root {
    --bg-primary: #f0fdf4;
    --bg-secondary: #fafafa;
    --bg-card: #ffffff;
    --text-primary: #3d4852;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --link-primary: #2d7d46;
    --link-hover: #1d5a30;
    --accent-green: #22c55e;
    --border-color: #e2e8f0;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.dark {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-card: #2d2d2d;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    --link-primary: #4ade80;
    --link-hover: #22c55e;
    --accent-green: #4ade80;
    --border-color: #3d3d3d;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.classic {
    --bg-primary: #eff6ff;
    --bg-secondary: #f8fafc;
    --link-primary: #1e40af;
    --link-hover: #1e3a8a;
    --accent-green: #3b82f6;
    --border-color: #dbeafe;
}

body.violet {
    --bg-primary: #f5f3ff;
    --bg-secondary: #faf5ff;
    --link-primary: #7c3aed;
    --link-hover: #6d28d9;
    --accent-green: #a78bfa;
    --border-color: #e9d5ff;
}

body.sunset {
    --bg-primary: #fff7ed;
    --bg-secondary: #fffbeb;
    --link-primary: #ea580c;
    --link-hover: #c2410c;
    --accent-green: #fb923c;
    --border-color: #fed7aa;
}

body.rose {
    --bg-primary: #fff1f2;
    --bg-secondary: #fdf2f8;
    --link-primary: #e11d48;
    --link-hover: #be123c;
    --accent-green: #fb7185;
    --border-color: #fecaca;
}

body.teal {
    --bg-primary: #f0fdfa;
    --bg-secondary: #f0fdf4;
    --link-primary: #0d9488;
    --link-hover: #0f766e;
    --accent-green: #2dd4bf;
    --border-color: #ccfbf1;
}

body.eye-care::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(34, 197, 94, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(74, 222, 128, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    z-index: -1;
    animation: nature-breathe 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes nature-breathe {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

body.eye-care .leaf {
    position: fixed;
    color: #22c55e;
    font-size: 32px;
    z-index: 0;
    pointer-events: none;
    animation: leaf-fall 12s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes leaf-fall {
    0% {
        transform: translateY(-10vh) rotate(0deg) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(30px);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(110vh) rotate(360deg) translateX(-20px) scale(0.5);
        opacity: 0;
    }
}

body.classic::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(30, 64, 175, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 64, 175, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    animation: grid-move 8s linear infinite;
    pointer-events: none;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

body.classic::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(30, 64, 175, 0.15) 0%, transparent 40%);
    z-index: -1;
    animation: tech-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tech-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

body.classic .particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: rgba(59, 130, 246, 0.8);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: particle-float 10s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.4);
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    20% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% {
        transform: translateY(50vh) translateX(50px);
    }
    80% { opacity: 1; }
    100% {
        transform: translateY(-10vh) translateX(-30px) scale(0);
        opacity: 0;
    }
}

body.violet::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(167, 139, 250, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    z-index: -1;
    animation: violet-glow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes violet-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

body.violet .sparkle {
    position: fixed;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(167, 139, 250, 0.8) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: sparkle-burst 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.8), 0 0 30px rgba(124, 58, 237, 0.4);
}

@keyframes sparkle-burst {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    20% {
        opacity: 1;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    80% {
        opacity: 1;
        transform: scale(0.5);
    }
}

body.sunset::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(251, 146, 60, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(234, 88, 12, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(253, 186, 116, 0.08) 0%, transparent 40%);
    z-index: -1;
    animation: sunset-glow 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sunset-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

body.sunset .sun-ray {
    position: fixed;
    top: -10%;
    left: 50%;
    width: 2px;
    height: 60%;
    background: linear-gradient(to bottom, rgba(251, 146, 60, 0.3), transparent);
    transform-origin: top center;
    z-index: -1;
    pointer-events: none;
    animation: ray-sweep 8s ease-in-out infinite;
}

@keyframes ray-sweep {
    0% { transform: translateX(-50%) rotate(-30deg); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateX(-50%) rotate(30deg); opacity: 0; }
}

body.rose::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(251, 113, 133, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(225, 29, 72, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(244, 114, 182, 0.1) 0%, transparent 60%);
    z-index: -1;
    animation: rose-glow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes rose-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

body.rose .heart {
    position: fixed;
    color: #fb7185;
    font-size: 28px;
    z-index: 0;
    pointer-events: none;
    animation: heart-float 8s ease-in-out infinite;
    opacity: 0.8;
    text-shadow: 0 0 15px rgba(251, 113, 133, 0.8);
}

@keyframes heart-float {
    0% {
        transform: translateY(100vh) scale(0.3);
        opacity: 0;
    }
    20% {
        opacity: 0.9;
        transform: translateY(70vh) scale(1);
    }
    50% {
        transform: translateY(50vh) scale(1.1);
    }
    80% {
        opacity: 0.9;
        transform: translateY(20vh) scale(1);
    }
    100% {
        transform: translateY(-10vh) scale(0.3);
        opacity: 0;
    }
}

body.teal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 70%, rgba(45, 212, 191, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
    z-index: -1;
    animation: teal-flow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes teal-flow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

body.teal .bubble {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(45, 212, 191, 0.3), rgba(45, 212, 191, 0.1));
    z-index: 0;
    pointer-events: none;
    animation: bubble-rise 10s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes bubble-rise {
    0% {
        transform: translateY(100vh) scale(0.3);
        opacity: 0;
    }
    20% { 
        opacity: 0.7;
        transform: scale(0.8);
    }
    50% {
        transform: translateY(50vh) translateX(20px);
    }
    80% { 
        opacity: 0.7;
        transform: scale(1.2);
    }
    100% {
        transform: translateY(-10vh) scale(1.5);
        opacity: 0;
    }
}

body.cyber {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: rgba(30, 36, 44, 0.8);
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --link-primary: #58a6ff;
    --link-hover: #79c0ff;
    --accent-green: #3fb950;
    --accent-purple: #a371f7;
    --border-color: rgba(240, 246, 252, 0.1);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 4px 20px rgba(88, 166, 255, 0.2);
}

body.cyber::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(88, 166, 255, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(163, 113, 247, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(63, 185, 80, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: cyber-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cyber-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

body.cyber::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(88, 166, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 166, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    animation: cyber-grid 15s linear infinite;
    pointer-events: none;
}

@keyframes cyber-grid {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

body.cyber .scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.6), transparent);
    z-index: 0;
    pointer-events: none;
    animation: scan-line-move 3s linear infinite;
}

@keyframes scan-line-move {
    0% { top: -10px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100vh; opacity: 0; }
}

body.cyber .hexagon {
    position: fixed;
    width: 40px;
    height: 46px;
    background: transparent;
    border: 1px solid rgba(88, 166, 255, 0.3);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 0;
    pointer-events: none;
    animation: hex-pulse 4s ease-in-out infinite;
}

@keyframes hex-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.1) rotate(10deg); }
}

body.parchment {
    --bg-primary: #f4e4bc;
    --bg-secondary: #faf0e6;
    --bg-card: rgba(255, 248, 230, 0.9);
    --text-primary: #4a3728;
    --text-secondary: #6b5344;
    --text-muted: #8b7355;
    --link-primary: #8b4513;
    --link-hover: #a0522d;
    --accent-green: #6b8e23;
    --accent-brown: #cd853f;
    --border-color: rgba(139, 69, 19, 0.2);
    --shadow-light: 0 2px 8px rgba(139, 69, 19, 0.1);
    --shadow-hover: 0 4px 15px rgba(139, 69, 19, 0.15);
}

body.parchment::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(205, 133, 63, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(107, 142, 35, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 90, 43, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

body.parchment::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

body.parchment .quill {
    position: fixed;
    color: rgba(139, 69, 19, 0.15);
    font-size: 40px;
    z-index: 0;
    pointer-events: none;
    animation: quill-float 15s ease-in-out infinite;
}

@keyframes quill-float {
    0% {
        transform: translateY(100vh) rotate(-10deg) scale(0.5);
        opacity: 0;
    }
    20% { 
        opacity: 0.5; 
        transform: translateY(70vh) rotate(5deg) scale(1);
    }
    50% {
        transform: translateY(50vh) rotate(-5deg);
    }
    80% { 
        opacity: 0.5; 
        transform: translateY(20vh) rotate(10deg);
    }
    100% {
        transform: translateY(-10vh) rotate(-10deg) scale(0.5);
        opacity: 0;
    }
}

body.parchment .ink-spot {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 55, 40, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: ink-spread 8s ease-in-out infinite;
}

@keyframes ink-spread {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.4;
    }
}

body.cosmos {
    --bg-primary: #000000;
    --bg-secondary: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --link-primary: #8a2be2;
    --link-hover: #a855f7;
    --accent-green: #00bfff;
    --accent-pink: #ff6b9d;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 12px rgba(138, 43, 226, 0.3);
}

body.cosmos::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #000000 0%, #0a0a1a 30%, #1a0a2e 60%, #0d0d1f 100%);
    z-index: -2;
}

body.cosmos::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 105, 180, 0.08) 0%, transparent 60%);
    z-index: -1;
    animation: nebula-drift 30s ease-in-out infinite;
    pointer-events: none;
}

body.cosmos .stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

body.cosmos .star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

@keyframes nebula-drift {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

body.cosmos .fixed-top {
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.cosmos .fixed-left {
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

body.cosmos .website-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

body.cosmos .website-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(138, 43, 226, 0.1), transparent, rgba(0, 191, 255, 0.1), transparent);
    animation: rotate-bg 10s linear infinite;
}

@keyframes rotate-bg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body.cosmos .website-card .inner-content {
    position: relative;
    z-index: 1;
}

body.cosmos .website-card:hover {
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(138, 43, 226, 0.3);
    transform: translateY(-5px);
}

body.cosmos .main-content h2.h4 {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

body.cosmos .main-content h2.h4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #8a2be2 0%, #00bfff 50%, #ff6b9d 100%);
}

body.cosmos .main-content h2.h4::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    animation: rotate-bg 15s linear infinite;
}

body.cosmos .main-content h2.h4 span {
    position: relative;
    z-index: 1;
}

body.cosmos .fixed-left ul li a {
    color: rgba(255, 255, 255, 0.7);
}

body.cosmos .fixed-left ul li a:hover {
    color: #ffffff;
    background-color: rgba(138, 43, 226, 0.2);
}

body.cosmos .fixed-left ul li a::after {
    background: linear-gradient(90deg, #8a2be2 0%, #00bfff 100%);
}

body.cosmos #search-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.cosmos #search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

body.cosmos #search-input:focus {
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

body.cosmos .btn-outline-secondary {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

body.cosmos .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #8a2be2 0%, #00bfff 100%);
    border-color: #8a2be2;
    color: #ffffff;
}

body.cosmos footer {
    background-color: rgba(10, 10, 26, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

body.cosmos .back-to-top {
    background: linear-gradient(135deg, #8a2be2 0%, #00bfff 100%);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

body.cosmos .back-to-top:hover {
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

body.cosmos .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

body.cosmos .nav-link:hover {
    color: #ffffff;
}

body.cosmos .custom-logo {
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.5));
}

body.cosmos .theme-dropdown {
    background: rgba(10, 10, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.cosmos .theme-dropdown-title {
    color: rgba(255, 255, 255, 0.4);
}

body.cosmos .theme-option {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

body.cosmos .theme-option:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.5);
}

body.cosmos .theme-option.active {
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

body.cosmos .theme-option-name {
    color: rgba(255, 255, 255, 0.7);
}

body.cosmos .mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

body.cosmos .mode-btn.active {
    background: linear-gradient(135deg, #8a2be2 0%, #00bfff 100%);
    border-color: #8a2be2;
}

body.cosmos .mode-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

body.cosmos .website-card img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.cosmos .website-card:hover img {
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

body.cosmos .website-card a {
    color: #a8edea;
}

body.cosmos .website-card a:hover {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(168, 237, 234, 0.8);
}

body.cosmos .website-card p {
    color: rgba(255, 255, 255, 0.5);
}

body.cosmos .theme-toggle-btn svg {
    color: #a8edea;
}

body.cosmos .theme-toggle-btn:hover svg {
    color: #ffffff;
}

body.cosmos .search-icon-btn svg {
    color: rgba(255, 255, 255, 0.7);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
}

.fixed-top {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

body.dark .fixed-top {
    background-color: rgba(36, 36, 36, 0.95);
}

.fixed-left {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.website-card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s ease;
}

.website-card:hover::before {
    left: 100%;
}

body.dark .website-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.website-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.website-card a { 
    color: var(--link-primary); 
    position: relative;
    z-index: 1;
}
.website-card a:hover { 
    color: var(--link-hover); 
}
.website-card p { 
    color: var(--text-secondary); 
    position: relative;
    z-index: 1;
}

.fixed-left ul li a { 
    color: var(--link-primary); 
    position: relative;
}
.fixed-left ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--link-primary);
    transition: width 0.3s ease;
}
.fixed-left ul li a:hover::after {
    width: 100%;
}
.fixed-left ul li a:hover {
    color: var(--link-hover);
    background-color: rgba(45, 125, 70, 0.1);
}

#search-input {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}
#search-input:focus {
    border-color: var(--link-primary);
    box-shadow: 0 0 0 3px rgba(45, 125, 70, 0.1);
    transform: translateY(-1px);
}
#search-input::placeholder { color: var(--text-muted); }

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
    transition: all 0.3s ease;
}
.btn-outline-secondary:hover {
    background-color: var(--link-primary);
    color: #fff;
    border-color: var(--link-primary);
    transform: translateY(-2px);
}

footer {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.back-to-top {
    background: linear-gradient(135deg, var(--link-primary) 0%, var(--accent-green) 100%);
    box-shadow: 0 4px 15px rgba(45, 125, 70, 0.4);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 80px;
    right: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border: none;
    padding: 0;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(45, 125, 70, 0.5);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
}

.main-content h2.h4 {
    background: linear-gradient(135deg, rgba(45, 125, 70, 0.05) 0%, rgba(34, 197, 94, 0.03) 100%);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.main-content h2.h4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--link-primary) 0%, var(--accent-green) 100%);
}

body.dark .main-content h2.h4 {
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
}

.nav-pills .nav-link { 
    color: var(--link-primary); 
    transition: all 0.3s ease;
}
.nav-pills .nav-link:hover { 
    color: var(--link-hover); 
    transform: translateY(-2px);
}

.website-card img { 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); 
    transition: all 0.3s ease;
}
.website-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.dark .website-card img { 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); 
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover svg {
    transform: rotate(15deg);
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
}

.sun-icon { color: #f59e0b; }
.moon-icon { color: #64748b; }
body.dark .sun-icon { color: #fbbf24; }
body.dark .moon-icon { color: #94a3b8; }

.icon-sun, .icon-moon { display: none; }
body:not(.dark) .icon-moon { display: block; }
body.dark .icon-sun { display: block; }
body.dark .icon-moon { display: none; }

.search-theme-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.search-theme-container .input-group {
    flex-grow: 1;
    margin: 0;
}

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: none;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 320px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-dropdown.show { display: block; }

.theme-dropdown-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    grid-template-rows: repeat(3, 1fr);
}

.theme-option {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.theme-option:hover { 
    transform: scale(1.05); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.theme-option.active { 
    border-color: var(--link-primary); 
    box-shadow: 0 0 0 3px rgba(45, 125, 70, 0.1);
}

.theme-option-preview {
    height: 40px;
    border-radius: 6px;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
}

.theme-option:hover .theme-option-preview {
    transform: scale(1.05);
}

.theme-option-name {
    font-size: 11px;
    color: var(--text-secondary);
}

.mode-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.mode-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.mode-btn.active {
    background: var(--link-primary);
    color: white;
    border-color: var(--link-primary);
}

.mode-btn:hover:not(.active) {
    background: var(--bg-primary);
    transform: translateY(-2px);
}

.search-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-btn svg {
    width: 18px;
    height: 18px;
}

.search-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: var(--link-primary);
    color: white;
    border-color: var(--link-primary);
    transform: scale(1.1);
}

body.dark .search-clear-btn:hover {
    background: var(--link-primary);
    color: white;
    border-color: var(--link-primary);
}
