/* Custom styles for Pourfection */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #ff6b35;
}

/* Selection color */
::selection {
    background: #ff6b35;
    color: #1a1a1a;
}

/* Hero animations */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    animation: heroSlideIn 1s ease-out forwards;
}

.hero-card {
    opacity: 1;
    transform: translateY(0);
    animation: heroCardIn 0.8s ease-out forwards;
}

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

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

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

/* Navigation transitions */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Menu tabs */
.menu-tab {
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
}

.menu-tab.active {
    color: #1a1a1a;
    background: #ff6b35;
}

.menu-tab:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
}

/* Menu items */
.menu-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    padding-left: 0.5rem;
}

/* Reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu animations */
@media (max-width: 767px) {
    #mobileMenu {
        pointer-events: none;
    }
    
    #mobileMenu.open {
        pointer-events: all;
    }
    
    #mobileMenu.open .mobile-link {
        animation: mobileLinkIn 0.4s ease forwards;
        opacity: 0;
    }
    
    #mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
    #mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
    #mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
    #mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
    #mobileMenu.open .mobile-link:nth-child(5) { animation-delay: 0.3s; }
    
    @keyframes mobileLinkIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Image hover effects */
img {
    transition: transform 0.7s ease;
}

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

/* Loading state for form */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
