/* Custom Styles for Lume Loft */

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

/* Custom Selection Color */
::selection {
    background-color: #047857;
    color: #FAF8F2;
}

/* Navbar Scroll State */
.navbar-scrolled {
    background-color: rgba(26, 31, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.navbar-scrolled .nav-logo-text {
    color: #FAF8F2 !important;
}

.navbar-scrolled .nav-logo-sub {
    color: #6ee7b7 !important;
}

/* Service Card Hover Effects */
.service-card {
    transform: translateY(0);
}

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

/* Approach Step Animation */
.approach-step {
    opacity: 1;
}

/* Mobile Menu States */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile Menu Button Animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Navigation Links */
.mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Scroll Reveal Animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Reduced Motion */
@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;
    }
}

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

::-webkit-scrollbar-track {
    background: #1A1F2E;
}

::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Form Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px #047857;
}

/* Button Ripple Effect */
button::after,
a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

/* Image Loading Placeholder */
img {
    background-color: #F5F0E6;
}

/* Loading State for Form */
.form-loading #form-submit-text {
    opacity: 0;
}

.form-loading #form-submit-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    nav,
    #contact-form,
    .service-card:hover {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .service-card {
        border: 1px solid ButtonText;
    }
    
    button,
    a[href^="tel:"] {
        border: 1px solid ButtonText;
    }
}

/* Focus Visible for Keyboard Navigation */
:focus-visible {
    outline: 2px solid #047857;
    outline-offset: 2px;
}

/* Smooth Image Transitions */
img {
    transition: transform 0.5s ease;
}

/* Aspect Ratio Support */
.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}
