/* Base & Utilities */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(4, 47, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar-scrolled .nav-logo-text {
    color: #ffffff !important;
}

.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Reveal animations — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    .reveal {
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Mobile nav links */
.mobile-nav-link {
    font-size: 1.25rem;
    padding: 0.5rem 0;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Image aspect ratio helpers */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}
.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: white;
}
