/* Custom styles for Dream Nails & Spa */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fffdf9;
}
::-webkit-scrollbar-thumb {
    background: #f0c4d8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e5678a;
}

/* Navbar transitions */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
    background-color: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(139, 26, 74, 0.06);
}

/* Mobile menu */
.mobile-menu-link {
    position: relative;
}
.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B1A4A, #D4678A);
    transition: width 0.3s ease;
}
.mobile-menu-link:hover::after {
    width: 100%;
}

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

.hero-content {
    animation: slideUp 0.8s ease forwards;
}
.hero-images {
    animation: slideUp 0.8s ease 0.2s forwards;
}

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

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B1A4A, #D4678A);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}

/* Gallery */
.gallery-item {
    cursor: pointer;
    position: relative;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(139, 26, 74, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(139, 26, 74, 0.1);
}

/* CTA section */
.cta-content {
    animation: slideUp 0.8s ease forwards;
}

/* Section headers */
.section-header {
    animation: slideUp 0.8s ease forwards;
}

/* About section */
.about-content {
    animation: slideRight 0.8s ease forwards;
}
.about-images {
    animation: slideLeft 0.8s ease forwards;
}

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contact section */
.contact-info {
    animation: slideLeft 0.8s ease forwards;
}
.contact-form {
    animation: slideRight 0.8s ease forwards;
}

/* Input focus effects */
input:focus,
select:focus,
textarea:focus {
    border-color: #e5678a !important;
    box-shadow: 0 0 0 4px rgba(229, 103, 138, 0.1) !important;
}

/* Button ripple effect */
button {
    position: relative;
    overflow: hidden;
}
button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
button:active::after {
    width: 300px;
    height: 300px;
}

/* Decorative dots pattern */
.dot-pattern {
    background-image: radial-gradient(circle, #f0c4d8 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-images {
        order: 1;
    }
    .hero-content {
        order: 2;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobileMenu {
        display: none;
    }
    body {
        background: white;
    }
}
