/* Royal Kare Home Cleaning Specialist — Custom Styles */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Navigation transitions */
.nav-link-text {
    position: relative;
}
.nav-link-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2dd4bf;
    transition: width 0.3s ease;
}
.nav-link-text:hover::after {
    width: 100%;
}

/* Service card hover */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.15);
}

/* Mobile nav links */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* Scroll reveal animations */
.reveal-item {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-item {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-item.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-item:nth-child(2) { transition-delay: 0.1s; }
    .reveal-item:nth-child(3) { transition-delay: 0.2s; }
    .reveal-item:nth-child(4) { transition-delay: 0.3s; }
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(8, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Hero parallax-like effect */
#hero {
    background-attachment: fixed;
}
@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Teal gradient text effect for special elements */
.text-gradient-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern for section backgrounds */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(13, 148, 136, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal-item {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
}
