/* Custom styles for Debbie Andrea Hair */

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

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

::-webkit-scrollbar-track {
    background: #0d1826;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2c5282;
}

/* Selection color */
::selection {
    background: rgba(66, 168, 136, 0.3);
    color: #f0f4f8;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(6, 12, 21, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(66, 168, 136, 0.1);
}

/* Service card hover effects */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(66, 168, 136, 0.08);
}

/* Gallery hover overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 12, 21, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

/* Fade-in animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .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; }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #42a888;
    outline-offset: 2px;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Ensure hero text is always visible */
#hero h1,
#hero p,
#hero .flex {
    opacity: 1 !important;
    transform: none !important;
}

/* Custom underline animation for links */
a.underline-link {
    position: relative;
    text-decoration: none;
}

a.underline-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #6bc2a9;
    transition: width 0.3s ease;
}

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

/* Parallax-like subtle movement for hero */
@supports (background-attachment: fixed) {
    #hero .absolute {
        background-attachment: fixed;
    }
}

/* Form focus animations */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(66, 168, 136, 0.3);
}

/* Print styles */
@media print {
    nav, #contactForm, .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
