/* ========================================
   Deerfield Nails Spa — Custom Styles
   ======================================== */

/* Base & Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

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

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

/* Selection */
::selection {
    background: #FF6B6B;
    color: #fff;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    transition: background-color 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FF6B6B;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #FF6B6B !important;
}

/* Mobile Menu */
.mobile-link {
    position: relative;
}

#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-eyebrow {
    animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-headline {
    animation: slideUp 0.8s ease forwards 0.4s;
}

.hero-subtext {
    animation: slideUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    animation: slideUp 0.8s ease forwards 0.8s;
}

.hero-scroll {
    animation: fadeIn 1s ease forwards 1.2s;
}

.hero-decorative {
    animation: fadeIn 1s ease forwards 1s;
}

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

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

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FF6B6B, #FF8E8E);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ========================================
   Gallery
   ======================================== */
.gallery-item {
    height: 280px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .gallery-item {
        height: 350px;
    }
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(3),
.gallery-item:nth-child(6),
.gallery-item:nth-child(8) {
    grid-row: span 2;
    height: 580px;
}

@media (max-width: 767px) {
    .gallery-item {
        height: 240px;
    }
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(6),
    .gallery-item:nth-child(8) {
        grid-row: span 1;
        height: 280px;
    }
}

/* ========================================
   Reveal Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal.visible:nth-child(2) { transition-delay: 0.1s; }
.reveal.visible:nth-child(3) { transition-delay: 0.2s; }
.reveal.visible:nth-child(4) { transition-delay: 0.3s; }
.reveal.visible:nth-child(5) { transition-delay: 0.4s; }
.reveal.visible:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   Back to Top
   ======================================== */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    pointer-events: all;
}

#backToTop:hover {
    transform: translateY(-3px);
}

/* ========================================
   Form Select
   ======================================== */
select option {
    background: #fff;
    color: #1A1A1A;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}
