/* Custom Styles for Analei HairCare Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #b82d4f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9c2341;
}

/* Hero geometric animations */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 45, 79, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 122, 82, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(184, 45, 79, 0.06) 0%, transparent 70%);
    top: 40%;
    left: 45%;
    animation: float 10s ease-in-out infinite;
}

.hero-rect {
    position: absolute;
    pointer-events: none;
}

.rect-1 {
    width: 80px;
    height: 80px;
    background: rgba(184, 45, 79, 0.05);
    border-radius: 20px;
    top: 20%;
    right: 5%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.rect-2 {
    width: 50px;
    height: 50px;
    background: rgba(255, 122, 82, 0.06);
    border-radius: 12px;
    bottom: 25%;
    right: 15%;
    transform: rotate(30deg);
    animation: spin 15s linear infinite reverse;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Service card hover effect */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(129, 29, 54, 0.15);
}

/* Gallery hover effect */
.gallery-item {
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 12px 40px rgba(129, 29, 54, 0.2);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 248, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(129, 29, 54, 0.08);
}

.nav-scrolled .font-display {
    color: #6b1a2f !important;
}

.nav-scrolled .text-burgundy-600 {
    color: #b82d4f !important;
}

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-open .menu-line:nth-child(3) {
    width: 6 !important;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile link hover animation */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #b82d4f;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Reduced motion preference */
@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;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Selection color */
::selection {
    background: rgba(184, 45, 79, 0.2);
    color: #3a0b16;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #b82d4f;
    outline-offset: 2px;
}
