/* Core Monochromatic Theme & Glassmorphism System */

:root {
    --bg-light: #fbfbfb;
    --bg-dark: #09090b;
    --border-light: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.08);
    --text-primary-light: #09090b;
    --text-primary-dark: #f4f4f5;
    --text-secondary-light: #52525b;
    --text-secondary-dark: #a1a1aa;
    --accent-glow-dark: rgba(255, 255, 255, 0.04);
    --accent-glow-light: rgba(0, 0, 0, 0.02);
}

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

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

/* Glassmorphism Cards */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.dark .glass {
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-dark);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Monochromatic Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #09090b 30%, #52525b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark .text-gradient {
    background: linear-gradient(135deg, #ffffff 40%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scroll Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive elements */
.scale-hover {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scale-hover:hover {
    transform: translateY(-4px) scale(1.01);
}

/* Monochromatic Background Blobs */
.bg-blob {
    filter: blur(140px);
    opacity: 0.4;
    mix-blend-mode: plus-lighter;
    animation: pulse-slow 20s infinite alternate;
}

.dark .bg-blob {
    opacity: 0.15;
    mix-blend-mode: screen;
}

@keyframes pulse-slow {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    50% {
        transform: translate(60px, -40px) scale(1.1);
    }
    100% {
        transform: translate(-40px, 50px) scale(0.95);
    }
}

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

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

.dark ::-webkit-scrollbar-track {
    background: #09090b;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Code mockup and terminal details */
.terminal-code {
    font-family: 'Courier New', Courier, monospace;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .glass {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
}
