/* ============================================
   Icream Yogurt & Crepes — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: rgba(20, 184, 166, 0.2);
    color: #134e4a;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Default visible state for reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Feature Items Hover --- */
.feature-item {
    transition: transform 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-4px);
}

/* --- Nav Link Hover --- */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-link:hover::after {
    width: 100%;
}

/* --- Mobile Menu --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* --- Image hover containers --- */
.group img {
    will-change: transform;
}

/* --- Smooth section transitions --- */
section {
    position: relative;
}

/* --- Focus styles for accessibility --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Mobile-specific adjustments --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
    
    /* Ensure hero text is readable on mobile */
    #hero h1 {
        text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    }
}

/* --- Print styles --- */
@media print {
    nav, #experience, .scroll-reveal {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
