/* global.css */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography refinements */
.font-heading {
    letter-spacing: -0.02em; /* Tighter tracking for premium feel */
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* slate-300 */
    border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #475569; /* slate-600 */
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* slate-400 */
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b; /* slate-500 */
}

/* Base View Transition */
@view-transition {
    navigation: auto;
}

/* Sleek Entrance Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scale-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.animate-scale-fade-in {
    animation: scale-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger Utilities */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Modal styles (overridden for modern look) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Modern dark slate overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid #f1f5f9;
}

.dark .modal-content {
    background: #1e293b; /* slate-800 */
    border-color: rgba(255,255,255,0.1);
}

/* Premium Animations */
@keyframes float-3d {
    0%, 100% {
        transform: translateY(0) rotateX(5deg) rotateY(-5deg);
    }
    50% {
        transform: translateY(-20px) rotateX(-5deg) rotateY(10deg);
    }
}
.animate-float-3d {
    animation: float-3d 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.animate-scale-in {
    animation: scale-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}
.animate-slide-up {
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.4s; }
.stagger-4 { animation-delay: 0.6s; }

/* Premium Glass & Glow Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.dark .glass-effect {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}
.shadow-3d {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1), 0 20px 20px -10px rgba(0, 0, 0, 0.05);
}
.dark .shadow-3d {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 20px 20px -10px rgba(0, 0, 0, 0.3);
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animated Aurora Background Blobs */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob {
    animation: blob 8s infinite ease-in-out;
}
.animation-delay-2000 {
    animation-delay: 2s;
}
.animation-delay-4000 {
    animation-delay: 4s;
}
