/* Custom styles for Virginia Pena Salon */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --navy-950: #040d1f;
    --navy-900: #0a1628;
    --navy-800: #0f2140;
    --gold-400: #d4af37;
    --gold-300: #e0c060;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(4, 13, 31, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* Service card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Mobile menu animations */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Menu icon animation */
#menuBtn.active #menuIcon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active #menuIcon span:nth-child(2) {
    opacity: 0;
}

#menuBtn.active #menuIcon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

::-webkit-scrollbar-track {
    background: var(--navy-950);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-300);
}

/* Selection color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: white;
}

/* Form select styling */
select option {
    background: var(--navy-900);
    color: white;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .font-playfair {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    nav .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-300) 50%, var(--gold-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pulse animation for CTA */
@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(212, 175, 55, 0.15);
    }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glow effect for gold elements */
.glow-gold {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

/* Fade in for mobile menu links */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    animation: slideIn 0.4s ease forwards;
    opacity: 0;
}

.mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-link:nth-child(4) { animation-delay: 0.4s; }
