:root {
    --bg-main: #0a0a0a;
    --text-main: #f3f4f6;
    --font-family: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior: none; 
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; }
#hero-hello-space, #expertise-wrapper, #projects, #work-together, #contact-page { padding: 0; border: none; margin: 0; }
.font-8bit { font-family: 'Press Start 2P', cursive; }

/* Custom Scrollbar */
::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; -ms-overflow-style: none; }

#custom-scrollbar {
    position: fixed; top: 0; right: 12px; width: 6px; height: 100vh;
    z-index: 999; pointer-events: none; display: flex; justify-content: center;
    padding: 20vh 0; opacity: 0; transition: opacity 0.4s ease-in-out;
}
#custom-scrollbar.is-active { opacity: 1; }

.scroll-track {
    width: 2px; height: 100%; background-color: rgba(255, 255, 255, 0.1);
    position: relative; border-radius: 4px; transition: background-color 0.3s ease;
}
.scroll-thumb {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 4px; height: 40px; background-color: white; border-radius: 4px; will-change: transform; transition: background-color 0.3s ease;
}

/* Typography */
.outline-text { color: transparent; -webkit-text-stroke: 1px white; text-stroke: 1px white; }

.hover-underline-trigger {
    text-shadow: 4px 0 #060d23, -4px 0 #060d23, 0 4px #060d23, 0 -4px #060d23;
    z-index: 10; position: relative; display: inline-block;
}
.custom-underline-top, .custom-underline-bottom { z-index: -1; }

/* =========================================
   NAVBAR THEMES
   ========================================= */
.nav-btn-custom {
    background-color: transparent; border: 1px solid rgba(255,255,255,0.3); color: white;
}
.nav-btn-custom:hover {
    background-color: #e5e7eb; color: black; border-color: #e5e7eb;
}

/* Light Theme Zone */
.theme-light { color: black !important; }
.theme-light .brand-text { color: black; }
.theme-light .nav-btn-custom {
    background-color: white; border: 1px solid rgba(0,0,0,0.8); color: black;
}
.theme-light .nav-btn-custom:hover {
    background-color: #e5e7eb; border-color: #e5e7eb; color: black;
}
.theme-light .dot-indicator { background-color: black; }

#custom-scrollbar.theme-light .scroll-track { background-color: rgba(0, 0, 0, 0.1); }
#custom-scrollbar.theme-light .scroll-thumb { background-color: #4b5563; }

#dropdown-menu.is-open .menu-text-anim { transform: translateY(0); opacity: 1; }
.menu-text-anim { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease; }
.menu-link:nth-child(1) .menu-text-anim { transition-delay: 0.05s; }
.menu-link:nth-child(2) .menu-text-anim { transition-delay: 0.10s; }
.menu-link:nth-child(3) .menu-text-anim { transition-delay: 0.15s; }
.menu-link:nth-child(4) .menu-text-anim { transition-delay: 0.20s; }

/* =========================================
   MUSIC WAVE ANIMATIONS
   ========================================= */
.wave-bar {
    transform-origin: bottom;
    border-radius: 2px;
}
@keyframes wave-dance {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(2.5); }
}
.music-waves-active .wave-bar {
    animation: wave-dance 1s ease-in-out infinite;
}
.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: -0.2s; }
.wave-bar:nth-child(3) { animation-delay: -0.4s; }
.wave-bar:nth-child(4) { animation-delay: -0.6s; }
.wave-bar:nth-child(5) { animation-delay: -0.8s; }

/* 3D CARDS */
.card-scene { perspective: 1500px; }
.card-3d-wrapper {
    position: relative; width: 100%; height: 100%;
    transform-style: preserve-3d; transform: rotateY(180deg); will-change: transform;
}
.card-face {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    border-radius: 12px; background-clip: padding-box; overflow: hidden;
}
.card-front { background-color: white; transform: rotateY(0deg); }
.card-back {
    background-image: url('images/card.png'); 
    background-size: 100% 100%; background-repeat: no-repeat;
    background-position: center; transform: rotateY(180deg);
}