:root {
    --bg: #050510;
    --surface: rgba(20, 20, 35, 0.6);
    --primary: #7000FF;
    --primary-glow: #8A2BE2;
    --accent: #00F0FF;
    --hydra: #FF003C;
    --partners: #FF8800;
    --text: #E8E8FF;
    --text-sec: #A0A0C0;
    --font-main: 'Nunito', sans-serif;
    --dock-bg: rgba(15, 15, 25, 0.15); 
    --blur-val: 20px;
    --card-radius: 24px;
}


[data-theme="light"] {
    --bg: #F5F7FF;
    --surface: rgba(255, 255, 255, 0.9);
    --primary: #8A4FFF;
    --primary-glow: #9D6BFF;
    --accent: #00C2D6;
    --hydra: #FF3366;
    --partners: #FF9933;
    --text: #2D2D5A;
    --text-sec: #6B6B8B;
    --dock-bg: rgba(255, 255, 255, 0.2); 
}


[data-glass="false"] {
    --surface: #151525;
    --dock-bg: #101015;
    --blur-val: 0px;
}

[data-theme="light"][data-glass="false"] {
    --surface: #FFFFFF;
    --dock-bg: #F0F0F5;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; user-select: none; }

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    height: 100vh;
    padding-bottom: 100px;
    transition: background-color 0.3s ease, color 0.3s ease;
}


::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { 
    background: #4A4A4A;
    border-radius: 3px; 
}

[data-theme="light"] ::-webkit-scrollbar-thumb { 
    background: #A0A0A0;
}


::selection { background: var(--primary); color: white; }


.has-ripple {
    position: relative;
    overflow: hidden; 
    transform: translateZ(0);
}

.dock-item.has-ripple, 
.social-btn.has-ripple,
.card-icon.has-ripple,
.partner-logo.has-ripple { 
    overflow: hidden;
    border-radius: inherit; 
}

.switch.has-ripple {
     overflow: hidden;
    border-radius: 34px; 
}

body[data-ripple="false"] .has-ripple {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px) brightness(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255,255,255,0.2);
    pointer-events: none;
    transform: scale(0);
    opacity: 1;
    animation: ripple-animation 0.6s ease-out;
}

[data-theme="light"] .ripple {
    background-color: rgba(138, 79, 255, 0.08);
    box-shadow: 0 0 15px rgba(138, 79, 255, 0.2), inset 0 0 10px rgba(138, 79, 255, 0.1);
}

@keyframes ripple-animation {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(3.5); opacity: 0; }
}


.preloader {
    position: fixed;
    inset: 0; background: var(--bg); z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.clock-container {
    position: relative;
    width: 140px; height: 140px;
    display: flex; justify-content: center; align-items: center;
}

.clock-blob {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: liquidMorph 8s infinite ease-in-out;
    box-shadow: 0 0 40px rgba(112, 0, 255, 0.3);
}

[data-theme="light"] .clock-blob {
    background: linear-gradient(135deg, rgba(138, 79, 255, 0.1), rgba(0, 194, 214, 0.05));
    border: 1px solid rgba(138, 79, 255, 0.2);
    box-shadow: 0 0 40px rgba(138, 79, 255, 0.2);
}

.clock-center { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; z-index: 10; }

.hand {
    position: absolute;
    bottom: 50%; left: 50%; border-radius: 4px;
    transform-origin: bottom center; z-index: 5;
}
.hand.hour { height: 35px; width: 4px; background: var(--text); }
.hand.min { height: 50px; width: 2px; background: var(--accent); }
.hand.sec { height: 60px; width: 1px; background: var(--hydra); }


.page-transition {
    position: fixed;
    inset: 0; background: var(--bg);
    z-index: 4000;
    pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
    display: flex; justify-content: center; align-items: center;
}
.page-transition.active { opacity: 1; pointer-events: all; }

.trans-loader {
    width: 50px;
    height: 50px; border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 1s linear infinite;
}

[data-theme="light"] .trans-loader {
    border: 3px solid rgba(138, 79, 255, 0.2);
    border-top-color: var(--primary);
}


.container {
    max-width: 1200px;
    margin: 0 auto; padding: 20px;
    min-height: 100vh;
}

.section {
    display: none;
    opacity: 0; transform: scale(0.95);
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding-bottom: 40px;
}
.section.active { display: block; opacity: 1; transform: scale(1); }


.hero { text-align: center; margin: 40px 0 60px; }

.avatar-box {
    position: relative;
    width: 160px; height: 160px; margin: 0 auto 20px;
    cursor: pointer;
    border-radius: 50%; 
    overflow: hidden;
}
.avatar-img {
    width: 100%;
    height: 100%; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--primary); padding: 4px;
    box-shadow: 0 0 50px var(--primary-glow);
    position: relative;
    z-index: 2;
}
.avatar-blob {
    position: absolute;
    inset: -10px; background: var(--primary);
    opacity: 0.3; filter: blur(20px); z-index: 1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: liquidMorph 6s infinite reverse;
}

h1 { font-size: 3rem; font-weight: 900; margin-bottom: 10px; letter-spacing: 1px; }
.role { color: var(--accent); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 20px; }
.desc { max-width: 700px; margin: 0 auto; color: var(--text-sec); line-height: 1.6; }


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px;
}


.card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--card-radius); padding: 30px;
    backdrop-filter: blur(var(--blur-val));
    position: relative; overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] .card {
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 40px rgba(0,0,0,0.3); }

[data-theme="light"] .card:hover { 
    box-shadow: 0 15px 40px rgba(138, 79, 255, 0.15);
}

.card[data-theme="hydra"] { border-color: rgba(255, 0, 60, 0.3); }
.card[data-theme="hydra"]:hover { border-color: var(--hydra); box-shadow: 0 10px 40px rgba(255, 0, 60, 0.2); }

.card[data-theme="anon"] { border-color: rgba(0, 240, 255, 0.3); }
.card[data-theme="anon"]:hover { border-color: var(--accent); box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2); }

.card[data-theme="minisir"] { border-color: rgba(138, 43, 226, 0.3); }
.card[data-theme="minisir"]:hover { border-color: var(--primary-glow); box-shadow: 0 10px 40px rgba(138, 43, 226, 0.2); }

.card-icon {
    width: 70px;
    height: 70px; display: grid; place-items: center;
    background: rgba(255,255,255,0.05); border-radius: 20px;
    font-size: 1.8rem; margin-bottom: 20px; color: var(--text);
    transition: 0.3s;
    cursor: pointer;
}

[data-theme="light"] .card-icon {
    background: rgba(138, 79, 255, 0.05);
}

[data-anim="true"] .card-icon { animation: liquidMorph 6s infinite ease-in-out; }

.card[data-theme="hydra"] .card-icon { color: var(--hydra); background: rgba(255,0,60,0.1); }
.card[data-theme="anon"] .card-icon { color: var(--accent); background: rgba(0,240,255,0.1); }
.card[data-theme="minisir"] .card-icon { color: var(--primary-glow); background: rgba(138, 43, 226, 0.1); }

.card h3 { font-size: 1.5rem; margin-bottom: 10px; font-weight: 800; }
.card p { color: var(--text-sec); line-height: 1.6; margin-bottom: 20px; font-size: 0.95rem; }

.card-list { list-style: none; }
.card-list li {
    display: flex;
    align-items: center; gap: 10px;
    color: var(--text-sec); margin-bottom: 8px; font-size: 0.9rem;
}
.card-list li i { font-size: 0.8rem; opacity: 0.8; }
.card[data-theme="hydra"] li i { color: var(--hydra); }
.card[data-theme="anon"] li i { color: var(--accent); }
.card[data-theme="minisir"] li i { color: var(--primary-glow); }

.badge {
    position: absolute;
    top: 20px; right: 20px;
    padding: 5px 12px; border-radius: 8px;
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
}
.bg-hydra { background: var(--hydra); color: white; }
.bg-accent { background: var(--accent); color: black; }
.bg-gray { background: #333; color: #aaa; }
.bg-purple { background: var(--primary-glow); color: white; }

[data-theme="light"] .bg-gray { background: #E0E0E0; color: #666; }

.btn {
    display: flex;
    justify-content: center; align-items: center; gap: 10px;
    width: 100%; padding: 12px; border-radius: 12px;
    text-decoration: none; font-weight: 700; transition: 0.3s;
    background: var(--primary);
    color: white; border: none; cursor: pointer;
}
.btn:hover { transform: scale(1.02); box-shadow: 0 5px 20px rgba(112,0,255,0.4); }
.btn-outline { background: transparent; border: 1px solid var(--text-sec); color: var(--text-sec); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: white; border-color: white; }

[data-theme="light"] .btn-outline { 
    border: 1px solid var(--text-sec);
    color: var(--text-sec); 
}
[data-theme="light"] .btn-outline:hover { 
    background: rgba(138, 79, 255, 0.1);
    color: var(--primary); border-color: var(--primary); 
}

[data-theme="light"] .hero .btn { 
    background: var(--primary);
    color: white; 
}
[data-theme="light"] .hero .btn:hover {
    box-shadow: 0 5px 20px rgba(138, 79, 255, 0.4);
}


.partner-box {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #1a0b00, #000);
    border: 1px solid var(--partners); border-radius: 30px;
    position: relative; overflow: hidden;
}

[data-theme="light"] .partner-box {
    background: linear-gradient(135deg, #FFF8F0, #FFEEDD);
    border: 1px solid var(--partners);
}

[data-theme="light"] .partner-box p {
    color: #1a1a2a !important;
}

[data-theme="light"] .partner-box .social-btn {
    border: 1px solid var(--partners);
    color: var(--partners);
}

[data-theme="light"] .partner-box div > div:nth-child(2) {
    color: #4a4a6b !important;
}

.partner-glow {
    position: absolute;
    width: 400px; height: 400px; background: var(--partners);
    filter: blur(120px); opacity: 0.15; top: 50%; left: 50%; transform: translate(-50%,-50%);
    animation: pulse 4s infinite;
}

.social-row { display: flex; justify-content: center; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
.social-btn {
    width: 50px;
    height: 50px; display: grid; place-items: center;
    border: 1px solid var(--partners); color: var(--partners);
    border-radius: 50%;
    text-decoration: none; transition: 0.3s;
}
.social-btn:hover { background: var(--partners); color: white; transform: rotate(10deg); }


.dock-wrapper {
    position: fixed;
    bottom: 30px; left: 0; width: 100%;
    display: flex; justify-content: center; z-index: 5000;
    pointer-events: none;
    perspective: 1000px;
}

.dock {
    pointer-events: auto;
    background: var(--dock-bg);
    backdrop-filter: blur(calc(var(--blur-val) + 10px)); 
    border-radius: 30px;
    padding: 10px 25px;
    display: flex; gap: 25px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    border: none; 
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    overflow: visible;
}

.dock::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px; 
    border-radius: 32px; 
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(112, 0, 255, 0.5), 0 0 15px 5px rgba(0, 240, 255, 0.2);
    opacity: 0.3;
    filter: blur(5px); 
}

[data-theme="light"] .dock::after {
    box-shadow: 0 0 10px rgba(138, 79, 255, 0.3), 0 0 15px 5px rgba(0, 194, 214, 0.1);
}

.dock::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.01) 50%, rgba(255,255,255,0.1) 100%);
    border-radius: 30px;
    z-index: 1;
    box-shadow: inset 0 0 15px rgba(255,255,255,0.05);
}

[data-theme="light"] .dock::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.15) 100%);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05);
}

.dock-item {
    position: relative;
    width: 50px; height: 50px;
    display: grid; place-items: center;
    color: rgba(255,255,255,0.8); 
    font-size: 1.4rem; z-index: 2;
    cursor: pointer; background: transparent; border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px; 
}

[data-theme="light"] .dock-item {
    color: rgba(45, 45, 90, 0.8);
}

.dock-item.active { 
    color: white;
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 0 20px var(--primary);
}

[data-theme="light"] .dock-item.active { 
    color: var(--text);
    text-shadow: 0 0 20px var(--primary-glow);
}

.active-blob {
    position: absolute;
    top: 7px; left: 0;
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    border-radius: 15px;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); 
    box-shadow: 0 5px 20px var(--primary), 0 0 0 1px rgba(255,255,255,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}

.goo-svg { position: absolute; width: 0; height: 0; }


.settings-row {
    display: flex;
    justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}

[data-theme="light"] .settings-row {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.switch { 
    position: relative;
    display: inline-block; 
    width: 50px; height: 26px; 
    overflow: hidden; 
    border-radius: 34px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333; transition: .4s; border-radius: 34px;
}

[data-theme="light"] .slider {
    background-color: #CCC;
}

.slider:before {
    position: absolute;
    content: ""; height: 20px; width: 20px;
    left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(24px); }


@keyframes liquidMorph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.1); } }

#particles-js { position: fixed; inset: 0; z-index: -1; }
.hidden { display: none !important; }


@media(min-width: 1000px) {
    h1 { font-size: 4rem; }
    .container { padding-top: 60px; }
    .dock { padding: 15px 40px; gap: 30px; }
    .dock-item { width: 60px; height: 60px; font-size: 1.6rem; }
    .active-blob { width: 60px; height: 60px; top: 15px; }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 6000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px); 
    padding: 25px;
    border-radius: 24px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

[data-theme="light"] .modal-content {
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.95);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-sec);
    transition: 0.2s;
}

.close-btn:hover {
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 20px 0;
    color: var(--text-sec);
    font-size: 1.1rem;
}