/* Custom Styles for Promise Hair Studios */

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

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

::-webkit-scrollbar-track {
    background: #0a192f;
}

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

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-eyebrow {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtext {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stats {
    animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-badge {
    animation: scaleIn 0.6s ease-out 1.2s both;
}

/* Section Animations */
.section-eyebrow {
    animation: fadeInUp 0.6s ease-out both;
}

.section-title {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.section-subtitle {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Service Cards */
.service-card {
    animation: fadeInUp 0.6s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* About Section */
.about-image {
    animation: fadeInLeft 0.8s ease-out both;
}

.about-content {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

/* Testimonial Cards */
.testimonial-card {
    animation: fadeInUp 0.6s ease-out both;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

/* Contact Section */
.contact-info {
    animation: fadeInLeft 0.8s ease-out both;
}

.contact-form {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

/* Gallery Images */
.group img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selection Color */
::selection {
    background: #d4af37;
    color: #0a192f;
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Mobile Menu Transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

#mobile-menu.active {
    max-height: 400px;
}

/* Image Hover Effects */
.rounded-2xl.overflow-hidden {
    overflow: hidden;
}

/* Print Styles */
@media print {
    nav, #back-to-top, .hero-badge {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* 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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-white\/60,
    .text-white\/50,
    .text-navy-600,
    .text-navy-700 {
        opacity: 1;
    }
}

/* Landscape Mode on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 100px 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .group:hover img {
        transform: none;
    }
    
    .group:hover {
        transform: none;
    }
}
