/* ====== FONT FACES ====== */
@font-face {
    font-family: 'TWKEverett';
    src: url('../assets/fonts/TWKEverett-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TWKEverett';
    src: url('../assets/fonts/TWKEverett-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TWKEverett';
    src: url('../assets/fonts/TWKEverett-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ====== BASE STYLES ====== */
:root {
    font-family: 'TWKEverett', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    font-weight: 300;
    color-scheme: dark;
    color: rgba(255, 255, 255, 0.87);
    background-color: #000000;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ====== LOADING SCREEN ANIMATIONS ====== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes write {
    0% {
        stroke-dashoffset: 1200;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.animate-write {
    animation: write 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fill-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-fill {
    animation: fill-in 0.8s ease-out 2.2s forwards;
}

/* ====== Glass Navbar Containers ====== */
.glass-nav {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ====== SCROLLBAR HIDING ====== */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ====== ABOUT PANEL SCROLLBAR ====== */
.about-scroll::-webkit-scrollbar {
    width: 4px;
}

.about-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.about-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.about-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.about-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* ====== HERO TEXT ANIMATIONS (JS-driven) ====== */

/* SVG Stroke — starts hidden (offset = full dash) */
.stroke-text {
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 1px;
    stroke-dasharray: 5000;
    stroke-dashoffset: 5000;
}

/* Fade elements — hidden by default, shown via .show */
.hero-fade {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
}

.hero-fade.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Smooth text reveal — clip-path left-to-right */
.hero-type {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-type.show {
    clip-path: inset(0 0% 0 0);
}

/* ====== ABOUT OVERLAY GRID (Extracted) ====== */
#about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 60px 1fr;
}

@media (min-width: 768px) {
    #about-grid {
        grid-template-columns: 250px 1fr;
        grid-template-rows: 60px 1fr 60px;
    }
}

/* Stack panels vertically on mobile */
@media (max-width: 767px) {
    #main-content {
        flex-direction: column !important;
    }

    #main-content>div:first-child {
        display: none;
    }

    #main-content>div:last-child {
        flex: 1 1 auto !important;
    }
}