/* Custom Animations and Design System Tokens */

:root {
    --transition-speed: 0.8s;
    --cubic-bezier: cubic-bezier(0.16, 1, 0.3, 1);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}
html::-webkit-scrollbar {
    display: none;
}

/* Splash Screen Animation */
#greeting {
    transition: opacity 0.4s ease, transform 0.4s var(--cubic-bezier);
}

.greeting-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.greeting-out {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
}

/* Reveal Effects */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-speed) var(--cubic-bezier), 
                transform var(--transition-speed) var(--cubic-bezier);
}

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

.reveal-delay {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-speed) var(--cubic-bezier) 0.2s, 
                transform var(--transition-speed) var(--cubic-bezier) 0.2s;
}

.reveal-delay.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Scroll Handling */
html.loading {
    overflow: hidden;
}

body {
    background-color: #131315;
    color: #e5e1e4;
}

/* Portfolio Specific Tweaks */
.tonal-shift {
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0) 100%);
}

/* Terminal-style skill tags */
.skill-tag {
    display: inline-block;
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #a1a1aa; /* zinc-400 */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 5px 14px;
    background: transparent;
    transition: all 0.25s ease;
    cursor: default;
}

.skill-tag:hover {
    color: #A27DFF; /* Primary Purple */
    border-color: rgba(162, 125, 255, 0.4);
    background: rgba(162, 125, 255, 0.08);
}

/* Grid Backgrounds */
.bg-grid-white {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    background-attachment: fixed;
}

.bg-grid-black {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    background-attachment: fixed;
}

/* Map Line Draw Animation */
#mask-path {
    transition: stroke-dashoffset 0.2s ease-out;
}

.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link.active {
    color: #ffffff !important;
}

/* Chatbot Scrollbar Aesthetics */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}
.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: #27272a; /* zinc-800 */
    border-radius: 20px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background-color: #3f3f46; /* zinc-700 */
}
