/* ===================================
   Mickey's Dairy Twist — Custom Styles
   =================================== */

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

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

/* ===================================
   Hero Animations
   =================================== */
.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-tagline {
    opacity: 0;
    transform: translateY(15px);
    animation: heroReveal 0.6s ease forwards;
    animation-delay: 0.1s;
}

.hero-image-container {
    opacity: 0;
    transform: translateX(40px);
    animation: heroImageReveal 1s ease forwards;
    animation-delay: 0.4s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating Card Animation */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

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

/* ===================================
   Navbar
   =================================== */
.nav-link {
    position: relative;
}

/* ===================================
   Menu Cards
   =================================== */
.menu-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
}

.menu-card:hover .shadow-lg {
    box-shadow: 0 25px 50px -12px rgba(120, 31, 46, 0.15);
}

/* ===================================
   Experience Items
   =================================== */
.experience-item {
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateX(6px);
}

/* ===================================
   Scroll Reveal Animations
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===================================
   Mobile Menu
   =================================== */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }

/* ===================================
   Mobile Menu Button
   =================================== */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* ===================================
   Custom Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf8f5;
}

::-webkit-scrollbar-thumb {
    background: #d4a0aa;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #781f2e;
}

/* ===================================
   Selection
   =================================== */
::selection {
    background: #781f2e;
    color: white;
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.75rem;
    }
    
    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
}

/* ===================================
   Focus Styles (Accessibility)
   =================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #781f2e;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    nav, #mobile-menu-btn, .floating-card {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-headline, .font-serif {
        color: #000 !important;
    }
}
