/* === Custom Styles for Simply Beautiful Hair Salon === */

:root {
    --coral-500: #FF7F66;
    --coral-400: #FF9E8A;
    --charcoal-800: #1E1E26;
    --charcoal-700: #2D2D36;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Navigation === */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral-500);
    transition: width 0.3s ease;
}

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

nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(30, 30, 38, 0.06);
}

nav.scrolled .nav-link {
    color: var(--charcoal-700);
}

nav.scrolled .font-serif {
    color: var(--charcoal-800);
}

/* === Mobile Menu === */
.mobile-menu-open #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open #menuIcon {
    transform: rotate(90deg);
    opacity: 0;
}

.mobile-menu-open #closeIcon {
    opacity: 1;
    transform: scale(1);
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* === Service Card Hover === */
.service-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* === Image Hover === */
.gallery-img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* === Button Ripple === */
.btn-primary {
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* === Testimonial Card === */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* === Form Inputs === */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 127, 102, 0.15);
}

/* === Floating Animation === */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

/* === Pulse Dot === */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a8a8b2;
}

/* === Selection === */
::selection {
    background: rgba(255, 127, 102, 0.2);
    color: var(--charcoal-800);
}
