/* Custom Styles for Enhanced Beauty by Maegan */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ff9e9e, #ff6b6b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ff6b6b, #ee5a6f);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #ff6b6b, #ff9e9e);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Service card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 1.5rem;
}

.service-card:hover::before {
    opacity: 1;
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile menu styles */
#mobile-menu {
    z-index: 40;
}

#mobile-menu.active {
    transform: translateX(0);
}

/* Hamburger animation */
.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Floating card shadows */
.animate-float,
.animate-float-delayed,
.animate-float-slow {
    will-change: transform;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Form input focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

/* Gallery hover overlay */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .animate-float,
    .animate-float-delayed,
    .animate-float-slow {
        animation: none;
    }
}

/* Print styles */
@media print {
    .animate-float,
    .animate-float-delayed,
    .animate-float-slow {
        animation: none;
    }

    nav,
    #back-to-top {
        display: none;
    }
}
