/* Custom Styles for June Wellness and Beauty */

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

/* Navbar Styles */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(107, 33, 168, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #9333ea, #f59e0b);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* Hero Decorative Circles */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.deco-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #fbbf24, transparent);
    top: 10%;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.deco-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #c084fc, transparent);
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.deco-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #fcd34d, transparent);
    top: 40%;
    left: 15%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Service Cards */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

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

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

/* Mobile Menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.mobile-link:hover {
    padding-left: 12px;
    color: #9333ea;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #9333ea, #f59e0b);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.mobile-link:hover::before {
    width: 8px;
}

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

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* Form Focus Styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c084fc, #fbbf24);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a855f7, #f59e0b);
}

/* Selection Color */
::selection {
    background-color: #e9d5ff;
    color: #581c87;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Print Styles */
@media print {
    #navbar,
    #backToTop,
    .deco-circle {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
