/* =============================================
   PORTFOLIO - Custom Styles
   ============================================= */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Matrix Rain Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

html.matrix #matrix-canvas {
    opacity: 0.15;
}

/* =============================================
   Light Mode Overrides
   ============================================= */
html.light body {
    background-color: #fafafa !important;
    color: #18181b !important;
}

html.light header {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom-color: #e4e4e7 !important;
}

html.light h1,
html.light h2,
html.light h3,
html.light h4 {
    color: #18181b !important;
}

html.light .text-zinc-400,
html.light .text-zinc-500 {
    color: #52525b !important;
}

html.light .text-zinc-300 {
    color: #3f3f46 !important;
}

html.light .text-zinc-600 {
    color: #71717a !important;
}

html.light .text-white {
    color: #18181b !important;
}

html.light .bg-zinc-950,
html.light .bg-zinc-900,
html.light .bg-zinc-900\/50,
html.light .bg-zinc-900\/80,
html.light .bg-zinc-900\/20 {
    background-color: #ffffff !important;
}

html.light .bg-zinc-950\/80,
html.light .bg-zinc-950\/50 {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

html.light .border-zinc-800,
html.light .border-zinc-800\/30 {
    border-color: #e4e4e7 !important;
}

html.light .border-zinc-900 {
    border-color: #f4f4f5 !important;
}

html.light .bg-zinc-800\/50 {
    background-color: #f4f4f5 !important;
}

html.light .btn-primary,
html.light .bg-white.text-black {
    background-color: #18181b !important;
    color: #ffffff !important;
}

html.light .btn-primary:hover {
    background-color: #27272a !important;
}

html.light .placeholder-zinc-600::placeholder,
html.light .placeholder-zinc-500::placeholder {
    color: #a1a1aa !important;
}

html.light .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1) !important;
}

html.light .bg-gradient-to-b {
    background: none !important;
    -webkit-text-fill-color: #18181b !important;
}

/* =============================================
   Matrix Theme Overrides
   ============================================= */
html.matrix body {
    background-color: #000000 !important;
    color: #00ff41 !important;
    font-family: 'JetBrains Mono', monospace !important;
}

html.matrix header {
    background-color: rgba(0, 0, 0, 0.9) !important;
    border-bottom-color: #00ff41 !important;
}

html.matrix h1,
html.matrix h2,
html.matrix h3,
html.matrix h4 {
    color: #00ff41 !important;
}

html.matrix .text-zinc-400,
html.matrix .text-zinc-500,
html.matrix .text-zinc-300,
html.matrix .text-zinc-600 {
    color: #008f11 !important;
}

html.matrix .text-white {
    color: #00ff41 !important;
}

html.matrix .bg-zinc-950,
html.matrix .bg-zinc-900,
html.matrix .bg-zinc-900\/50,
html.matrix .bg-zinc-900\/80,
html.matrix .bg-zinc-900\/20,
html.matrix .bg-zinc-950\/80,
html.matrix .bg-zinc-950\/50 {
    background-color: #000000 !important;
}

html.matrix .border-zinc-800,
html.matrix .border-zinc-800\/30,
html.matrix .border-zinc-900 {
    border-color: #00ff41 !important;
}

html.matrix .btn-primary,
html.matrix .bg-white.text-black {
    background-color: #00ff41 !important;
    color: #000000 !important;
    font-family: 'JetBrains Mono', monospace !important;
    border-radius: 0 !important;
}

html.matrix input,
html.matrix textarea {
    background-color: #000000 !important;
    border-color: #00ff41 !important;
    color: #00ff41 !important;
    border-radius: 0 !important;
}

html.matrix .bg-gradient-to-b {
    background: none !important;
    -webkit-text-fill-color: #00ff41 !important;
}

html.matrix .text-purple-400 {
    color: #00ff41 !important;
}

html.matrix .border-purple-400\/20,
html.matrix .border-purple-500\/20 {
    border-color: rgba(0, 255, 65, 0.3) !important;
}

html.matrix .bg-purple-400\/5,
html.matrix .bg-purple-500\/5 {
    background-color: rgba(0, 255, 65, 0.05) !important;
}

/* =============================================
   UI Components
   ============================================= */

/* Theme Dropdown */
.theme-dropdown {
    position: relative;
    display: inline-block;
}

.theme-dropdown-content {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 160px;
    z-index: 100;
}

/* SPA View transition */
.view-section {
    animation: fadeIn 0.4s ease-out;
}

/* Active nav link */
.nav-link-active {
    color: white !important;
    border-bottom: 2px solid white;
    padding-bottom: 2px;
}

html.light .nav-link-active {
    color: #18181b !important;
    border-bottom-color: #18181b !important;
}

html.matrix .nav-link-active {
    color: #00ff41 !important;
    border-bottom-color: #00ff41 !important;
}
