/* Custom styles for L and L Life Enrichment Services */

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

/* Selection color */
::selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: #fff;
}

/* Navbar transitions */
#navbar.scrolled {
    background-color: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .mobile-menu-line-1,
#navbar.scrolled .mobile-menu-line-2,
#navbar.scrolled .mobile-menu-line-3 {
    background-color: rgba(212, 175, 55, 0.8);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Approach cards */
.approach-card {
    position: relative;
    overflow: hidden;
}

.approach-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    transition: width 0.5s ease;
}

.approach-card:hover::after {
    width: 80%;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    color: rgba(212, 175, 55, 0.05);
    line-height: 1;
    pointer-events: none;
}

/* Form inputs */
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1) !important;
}

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

::-webkit-scrollbar-track {
    background: #050a14;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0);
}

/* Mobile menu line animations */
.mobile-menu-line-1 {
    transform-origin: center;
}

.mobile-menu-line-2 {
    transform-origin: center;
}

.mobile-menu-line-3 {
    transform-origin: center;
    transition: width 0.3s ease, margin-left 0.3s ease;
}

/* Mobile menu open state */
body.menu-open .mobile-menu-line-1 {
    transform: rotate(45deg) translate(4px, 4px);
}

body.menu-open .mobile-menu-line-2 {
    opacity: 0;
}

body.menu-open .mobile-menu-line-3 {
    width: 24px;
    margin-left: 0;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Scroll reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

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

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

    #hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}
