/* Custom styles for Brilla Hair Salon */

/* Geometric shapes for visual interest */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

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

/* Custom selection color */
::selection {
    background: #9f153c;
    color: white;
}

/* Service card hover glow effect */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #fad0d9 100%);
}

/* Ensure mobile menu backdrop */
#menuOverlay {
    backdrop-filter: blur(4px);
}

/* Custom focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #9f153c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Animation for floating elements */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.float-slow { animation: float1 6s ease-in-out infinite; }
.float-medium { animation: float2 4.5s ease-in-out infinite; }
.float-fast { animation: float3 3.5s ease-in-out infinite; }

/* Pulse animation for CTA */
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(159, 21, 60, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(159, 21, 60, 0); }
}

.cta-pulse { animation: pulse-soft 2.5s ease-in-out infinite; }

/* Slow rotation for decorative elements */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.spin-slow { animation: spin-slow 20s linear infinite; }
.spin-slow-reverse { animation: spin-slow-reverse 25s linear infinite; }

/* Scroll reveal animation */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Staggered delays for grid items */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* Mobile menu transition */
.mobile-menu {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Geometric decorations */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-square {
    position: absolute;
    pointer-events: none;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Striped pattern for hero */
.stripe-pattern {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(159, 21, 60, 0.03) 10px,
        rgba(159, 21, 60, 0.03) 20px
    );
}

/* Dot pattern */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(159, 21, 60, 0.1) 1px, transparent 1px);
    background-size: 16px 16px;
}

/* Image overlay gradient */
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 17, 43, 0.6) 0%, rgba(159, 21, 60, 0.2) 100%);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9f153c;
}

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .float-slow,
    .float-medium,
    .float-fast {
        animation: none;
    }
    
    .spin-slow,
    .spin-slow-reverse {
        animation: none;
    }
    
    .cta-pulse {
        animation: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geo-circle {
        display: none;
    }
    
    .geo-square,
    .geo-triangle {
        display: none;
    }
}
