/* Custom styles for Rudy's Fade Factory */

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

/* Hero animations */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-image {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease 0.2s forwards;
}

.hero-float {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.5s forwards;
}

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

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

/* Service cards */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery items */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* About images */
.about-images {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-images.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile menu */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Navbar scroll effect */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(128, 27, 27, 0.08);
}

/* Back to top button */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:not(.visible) {
    transform: translateY(10px);
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #c93030 !important;
    box-shadow: 0 0 0 3px rgba(201, 48, 48, 0.1) !important;
}

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

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

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

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

/* Selection color */
::selection {
    background: #fce7e7;
    color: #741d1d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-image {
        animation: fadeInUp 0.8s ease 0.2s forwards;
        transform: translateY(30px);
    }

    .hero-float {
        left: 50% !important;
        transform: translateX(-50%) translateY(20px) !important;
    }

    .hero-float.visible {
        transform: translateX(-50%) translateY(0) !important;
    }

    .about-images {
        transform: translateY(20px);
    }

    .about-images.visible {
        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;
    }
}
