/* Custom Styles for Edgar's Tailor Shop */

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

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

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

::-webkit-scrollbar-thumb {
    background: #a34040;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8a3030;
}

/* Navbar Transition */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 248, 246, 0.98);
    box-shadow: 0 2px 20px rgba(74, 24, 24, 0.1);
    backdrop-filter: blur(10px);
}

/* Hero Animation */
.hero-content {
    animation: fadeInUp 1s ease-out forwards;
}

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

/* Scroll Indicator */
.scroll-indicator {
    animation: fadeInUp 1s ease-out 1.5s both;
}

/* Section Reveal Animations */
.section-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Service Card Hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Gallery Item */
.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 12, 12, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonial Card */
.testimonial-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Mobile Menu */
#mobile-menu {
    backdrop-filter: blur(10px);
}

.mobile-menu-link {
    opacity: 1;
}

/* Navigation Links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a34040;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 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;
    }
    
    .hero-content {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .scroll-indicator {
        animation: none;
        opacity: 1;
    }
    
    .section-reveal {
        opacity: 1;
        transform: none;
    }
    
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

/* Loading State */
.page-loaded .hero-content {
    animation: fadeInUp 1s ease-out forwards;
}

/* Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a34040;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    #navbar,
    .scroll-indicator,
    #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #1a1a1a;
        background: white;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}
