/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* System Animations */
@import url('animations.css');

/* --- MATERIAL 3 DESIGN TOKENS --- */
:root {
    /* M3 Dark Theme Colors */
    --md-sys-color-background: #121212;
    --md-sys-color-surface: #1E1E1E;
    --md-sys-color-surface-container: #252529;
    --md-sys-color-primary: #a6f7bd;
    --md-sys-color-on-primary: #003915;
    --md-sys-color-secondary: #c2c9bd;
    --md-sys-color-tertiary: #a0cfd0;
    --md-sys-color-error: #ffb4ab;
    --md-sys-color-outline: #8e918f;

    /* Elevations */
    --md-sys-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-3: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--md-sys-color-background);
    color: #E3E3E3;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: 'Outfit', sans-serif;
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}


/* --- M3 NAVBAR (Floating Pill) --- */
.m3-navbar {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    box-shadow: var(--md-sys-elevation-2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.m3-navbar:hover {
    background: rgba(37, 37, 41, 0.8);
    border-color: rgba(166, 247, 189, 0.2);
    box-shadow: var(--md-sys-elevation-3);
}


/* --- SLIDESHOW (Increased Opacity) --- */
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 8s ease-in-out;
    transform: scale(1.1);
    z-index: 0;
    /* Removed brightness filter to increase visibility as requested */
    filter: brightness(0.6);
}

.slide-bg.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Gradient Overlay for Text Readability */
.hero-overlay {
    background: linear-gradient(to top,
            var(--md-sys-color-background) 5%,
            rgba(18, 18, 18, 0.6) 50%,
            rgba(18, 18, 18, 0.2) 100%);
}


/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--md-sys-color-background);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}

#preloader.hide {
    transform: translateY(-100%);
}

.typewriter h1 {
    overflow: hidden;
    border-right: .15em solid var(--md-sys-color-primary);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 2.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--md-sys-color-primary);
    }
}


/* --- CUSTOM SCROLLBAR --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--md-sys-color-surface-container);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #353539;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--md-sys-color-outline);
}


/* --- MATERIAL 3 CARDS --- */
.m3-card {
    background-color: var(--md-sys-color-surface);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.m3-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--md-sys-elevation-3);
    border-color: rgba(166, 247, 189, 0.2);
    background-color: #232326;
}