/* Custom styles for Maxx Nails & Spa */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F5;
}
::-webkit-scrollbar-thumb {
    background: #ba2045;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #991839;
}

/* Selection color */
::selection {
    background: #ba2045;
    color: white;
}

/* Hero animations */
.hero-badge {
    animation: fadeInDown 0.8s ease-out forwards;
    opacity: 0;
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

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

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

/* Geometric shapes animation */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #ff7a9a;
    top: 10%;
    right: -50px;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #ffb0c2;
    bottom: 20%;
    left: 5%;
    animation-delay: -5s;
}

.geo-circle-3 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffd4dc;
    top: 40%;
    left: 15%;
    animation-delay: -10s;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #ff4070;
    top: 20%;
    left: -30px;
    animation-delay: -3s;
}

.geo-square {
    width: 120px;
    height: 120px;
    background: #f9d0d9;
    bottom: 15%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: -7s;
}

.geo-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 20px solid #fce7eb;
    top: 60%;
    right: 20%;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Service cards */
.service-card {
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ba2045, #ff4070);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 0 0 2xl 2xl;
}

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

/* Section labels */
.section-label {
    position: relative;
    display: inline-block;
}

.section-label::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ba2045;
    border-radius: 50%;
}

/* Section titles */
.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ba2045, #ff4070);
    border-radius: 2px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .section-title::after {
        margin-top: 20px;
    }
}

/* Gallery items */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(126, 23, 52, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Review cards */
.review-card {
    transition: all 0.4s ease;
}

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-serif {
    color: #3d0715;
}

#navbar.scrolled .text-burgundy-600 {
    color: #ba2045;
}

#navbar.scrolled .menu-line {
    background: #ba2045;
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

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

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ba2045;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 80%;
}

/* Button hover effects */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::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 ease;
}

.cta-primary:hover::before {
    left: 100%;
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Back to top button */
#backToTop.show {
    opacity: 1;
    pointer-events: all;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ba2045;
    outline-offset: 2px;
    border-radius: 4px;
}
