/* Custom CSS for Chateau Salon Website */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Hero background image enhancements */
.hero-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(147,51,234,0.4) 50%, rgba(0,0,0,0.6) 100%);
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Custom gradient background animations */
.gradient-bg {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Hover effects for service cards - moved to bottom of file */

/* Custom button animations */
.btn-animate {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-animate:hover::before {
    left: 100%;
}

/* Form input focus animations */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Loading animation for form submission */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Success message styling */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu animations */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

/* Parallax effect for hero sections */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Icon hover effects */
.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.1) rotate(5deg);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6b7280, #374151);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4b5563, #1f2937);
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Focus states for accessibility */
.focus-visible:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Utility classes */
.text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Enhanced hero styling */
.hero-bg {
    min-height: 600px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(147,51,234,0.1) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    z-index: 3;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Chateau Salon Logo Styles - Legacy styles (no longer used) */
/* 
.salon-logo-link {
    text-decoration: none;
    outline: none;
    transition: all 0.3s ease;
}

.salon-logo-link:hover {
    transform: scale(1.05);
}

.salon-logo-link:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 4px;
    border-radius: 50%;
}

.salon-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
*/

.logo-circle {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8d5ff 0%, #c7b3ff 50%, #a78bfa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #8b5cf6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.logo-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.initials {
    font-size: 18px;
    font-weight: 900;
    color: #4c1d95;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 2px;
    font-family: 'Georgia', serif;
}

.business-name {
    font-size: 12px;
    font-weight: 600;
    color: #2d1b69;
    line-height: 1;
    margin-bottom: 1px;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

.instagram-handle {
    font-size: 5px;
    color: #6b46c1;
    line-height: 1;
    font-weight: 400;
    font-style: italic;
}

.yelp-handle {
    font-size: 5px;
    color: #dc2626;
    line-height: 1;
    font-weight: 400;
    font-style: italic;
}

.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.leaf {
    position: absolute;
    font-size: 12px;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

.leaf-1 {
    top: 5px;
    left: 15px;
    animation-delay: 0s;
}

.leaf-2 {
    top: 15px;
    right: 8px;
    animation-delay: 0.5s;
    transform: rotate(45deg);
}

.leaf-3 {
    bottom: 8px;
    left: 8px;
    animation-delay: 1s;
    transform: rotate(-30deg);
}

.leaf-4 {
    bottom: 15px;
    right: 15px;
    animation-delay: 1.5s;
    transform: rotate(90deg);
}

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

/* Footer Logo Styles - Legacy styles (no longer used) */
/* 
.salon-logo-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.logo-circle-footer {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e8d5ff 0%, #c7b3ff 50%, #a78bfa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #8b5cf6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.logo-circle-footer:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.salon-logo-link:hover .logo-circle-footer {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}
*/

.logo-circle-footer .initials {
    font-size: 12px;
}

.logo-circle-footer .business-name {
    font-size: 6px;
}

.logo-circle-footer .instagram-handle {
    font-size: 4px;
}

.logo-circle-footer .yelp-handle {
    font-size: 4px;
}

.logo-circle-footer .leaf {
    font-size: 8px;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .initials {
        font-size: 12px;
    }
    
    .business-name {
        font-size: 6px;
    }
    
    .instagram-handle {
        font-size: 4px;
    }
    
    .yelp-handle {
        font-size: 4px;
    }
    
    .leaf {
        font-size: 8px;
    }
    
    .logo-circle-footer {
        width: 50px;
        height: 50px;
    }
    
    .logo-circle-footer .initials {
        font-size: 10px;
    }
    
    .logo-circle-footer .business-name {
        font-size: 5px;
    }
    
    .logo-circle-footer .instagram-handle {
        font-size: 3px;
    }
    
    .logo-circle-footer .yelp-handle {
        font-size: 3px;
    }
    
    .logo-circle-footer .leaf {
        font-size: 6px;
    }
}

/* Enhanced Service Cards */
.service-card {
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: white;
    min-height: 160px;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card h3 {
    transition: color 0.3s ease;
    color: #374151 !important;
}

.service-card:hover h3 {
    color: #8b5cf6 !important;
}

/* Service Icon Styling */
.service-card .w-12 {
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .w-12 {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Featured Service Card (gradient background) */
.service-card.bg-gradient-to-br {
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    color: white;
}

.service-card.bg-gradient-to-br h3 {
    color: white !important;
}

.service-card.bg-gradient-to-br p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.service-card.bg-gradient-to-br:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
}

/* Responsive Service Grid */
@media (max-width: 640px) {
    .service-card {
        margin-bottom: 1rem;
        min-height: 140px;
    }
    
    .service-card .w-12 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    .service-card h3 {
        font-size: 1rem !important;
    }
    
    .service-card p {
        font-size: 0.75rem !important;
    }
}

/* Service Card Display Override - Ensure Visibility */
.service-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: white !important;
}

.service-card.bg-gradient-to-br {
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
}

/* Prevent horizontal scroll during animations */
html, body {
    overflow-x: hidden;
}

/* Hero Section Background */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    opacity: 0;
    animation: fadeInBackground 1.5s ease-out forwards, backgroundShimmer 8s ease-in-out 3s infinite;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3), rgba(0, 0, 0, 0.4));
    z-index: 1;
    opacity: 0;
    animation: overlayFadeIn 2s ease-out 0.5s forwards;
}

/* Add shimmer effect overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 40%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.1) 60%, 
        transparent 70%);
    z-index: 1;
    opacity: 0;
    animation: shimmerSweep 6s ease-in-out 4s infinite;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Text Shadow for better readability */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Animation Classes */
.hero-title {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFadeIn 1s ease-out 0.5s forwards;
    position: relative;
    z-index: 15;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFadeIn 1s ease-out 1s forwards;
    position: relative;
    z-index: 15;
}

.hero-button {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    animation: scaleUpFadeIn 1s ease-out 1.5s forwards;
    position: relative !important;
    z-index: 20 !important;
    display: inline-block !important;
}

/* Stable state after animation + transition for hover */
.hero-button.animation-complete {
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
    animation: none !important;
    transition: all 0.3s ease !important;
}

/* Hover effect ONLY for completed animation state */
.hero-button.animation-complete:hover {
    background: #374151 !important;
    color: #fff !important;
    transform: translateY(-2px) scale(1) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Keyframe Animations */
@keyframes fadeInBackground {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes backgroundShimmer {
    0%, 100% {
        filter: brightness(1) contrast(1);
    }
    50% {
        filter: brightness(1.1) contrast(1.05);
    }
}

@keyframes shimmerSweep {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleUpFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Add a subtle glow effect on hover for the title */
.hero-title:hover {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.5);
    transition: text-shadow 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        animation: slideUpFadeIn 0.8s ease-out 0.3s forwards;
    }
    
    .hero-subtitle {
        animation: slideUpFadeIn 0.8s ease-out 0.6s forwards;
    }
    
    .hero-button {
        animation: scaleUpFadeIn 0.8s ease-out 0.9s forwards;
    }
    
    /* Reduce shimmer intensity on mobile */
    .hero-bg::after {
        background: linear-gradient(45deg, 
            transparent 35%, 
            rgba(255, 255, 255, 0.05) 45%, 
            rgba(255, 255, 255, 0.15) 50%, 
            rgba(255, 255, 255, 0.05) 55%, 
            transparent 65%);
    }
}

/* Gallery Section Animations */
.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    animation: galleryFadeIn 0.8s ease-out forwards;
}

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

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

/* Gallery hover effects */
.gallery-item:hover {
    z-index: 10;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gallery navigation dots */
.gallery-nav-btn {
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    transform: scale(1.2);
}

.gallery-nav-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Hero Slideshow Styles */
.hero-slideshow {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.5));
    z-index: 1;
}
