/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fafaf9;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Selection color */
::selection {
    background: #99f6e4;
    color: #134e4a;
}

/* Navbar transition */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0d9488;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu transitions */
.mobile-link {
    display: block;
    text-align: center;
}

/* Reveal animations - progressive enhancement via JS */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Hero entrance animations */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.3s;
}
.hero-title {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.5s;
}
.hero-text {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.7s;
}
.hero-cta {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero-subtitle,
    .hero-title,
    .hero-text,
    .hero-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .reveal-up,
    .reveal-left,
    .reveal-right {
        animation: none;
    }
    .aspect-\[4\/3\] img,
    .aspect-\[3\/4\] img,
    .aspect-square img,
    .aspect-\[4\/5\] img {
        transition: none;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .hero-cta,
    iframe {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
