/* Suki's Salon - Enhanced Premium Styling */

/* Custom CSS Variables */
:root {
    --suki-primary: #2c1810;
    --suki-secondary: #8B4513;
    --suki-accent: #CD853F;
    --suki-cream: #FDF5E6;
    --luxury-gold: #D4AF37;
    --luxury-rose: #E8B4B8;
    --luxury-cream: #F5F5DC;
    --luxury-charcoal: #36454F;
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 1s ease-out forwards;
}

/* Gradient Text Effects */
.gradient-text {
    background: linear-gradient(135deg, var(--luxury-gold), var(--suki-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Button Styles */
.btn-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--luxury-gold), var(--suki-accent));
    transition: all 0.3s ease;
}

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

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

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

/* Enhanced Card Styles */
.service-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(44, 24, 16, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(205, 133, 63, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

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

/* Floating Elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* Premium Input Styles */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    border-color: var(--luxury-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* Enhanced FAQ Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44, 24, 16, 0.1);
}

.faq-button {
    transition: all 0.3s ease;
}

.faq-content {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.faq-content:not(.hidden) {
    max-height: 200px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 200px;
        opacity: 1;
    }
}

/* Luxury Testimonial Cards */
.testimonial-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 60px;
    font-family: 'Playfair Display', serif;
    color: var(--luxury-gold);
    opacity: 0.3;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
    border-color: var(--luxury-gold);
}

/* Premium Background Patterns */
.bg-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(205, 133, 63, 0.1) 0%, transparent 50%);
}

/* Enhanced Scroll Indicators */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--luxury-gold), var(--suki-accent));
    transform-origin: left;
    z-index: 1000;
}

/* Loading Animation */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .btn-premium {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-card {
        border-width: 0.5px;
    }
}

/* Accessibility Enhancements */
.focus-visible {
    outline: 3px solid var(--luxury-gold);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .float-animation {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .bg-gradient-to-r,
    .bg-gradient-to-br {
        background: white !important;
        color: black !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .service-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
    }
}

/* Enhanced Hover Effects */
.hover-glow:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    transition: box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--suki-cream);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--luxury-gold), var(--suki-accent));
    border-radius: 6px;
    border: 2px solid var(--suki-cream);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--suki-accent), var(--luxury-gold));
}

/* Selection Styling */
::selection {
    background: var(--luxury-gold);
    color: white;
}

::-moz-selection {
    background: var(--luxury-gold);
    color: white;
}

/* Enhanced Typography */
.font-heading {
    letter-spacing: -0.02em;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(44, 24, 16, 0.1);
}

/* Advanced Grid Layouts */
.masonry-grid {
    column-count: 1;
    column-gap: 2rem;
    column-fill: balance;
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

/* Intersection Observer Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Premium Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Enhanced Button States */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Luxury Particle Effects */
.particle-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--luxury-gold);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 8s infinite ease-in-out;
}

/* Enhanced Image Loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(5px);
}

.lazy-load.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Advanced Form Styling */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    color: var(--luxury-charcoal);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.875rem;
    color: var(--luxury-gold);
    background: white;
    padding: 0 0.5rem;
}

/* Performance Indicators */
.perf-monitor {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(44, 24, 16, 0.9);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 1000;
    display: none;
}

/* Development Mode Indicators */
.dev-mode .perf-monitor {
    display: block;
}

/* Critical CSS Inlined Above */
/* Non-critical styles loaded asynchronously */