/* Custom styles for Teeny Hearts in Home Child Care */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8645b;
}

/* Selection color */
::selection {
    background: #e8645b;
    color: #1a1a1a;
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(61, 61, 61, 0.5);
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

/* Hero animations */
.hero-tagline {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title-line {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(100%);
}

.hero-title-line:nth-child(1) { animation-delay: 0.1s; }
.hero-title-line:nth-child(2) { animation-delay: 0.2s; }
.hero-title-line:nth-child(3) { animation-delay: 0.3s; }
.hero-title-line:nth-child(4) { animation-delay: 0.4s; }
.hero-title-line:nth-child(5) { animation-delay: 0.5s; }

.hero-fade-in {
    animation: fadeIn 0.8s ease-out 0.7s forwards;
    opacity: 0;
}

.hero-image-group {
    animation: slideLeft 1s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateX(40px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll indicator */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* Scroll reveal animations (below the fold only) */
.about-image,
.about-content,
.services-header,
.service-card,
.why-us-content,
.why-item,
.why-us-images,
.gallery-header,
.gallery-item,
.cta-content,
.contact-info,
.contact-form-wrap {
    opacity: 1;
    transform: none;
}

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

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

/* Gallery items */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Contact form focus states */
input:focus,
textarea:focus {
    border-color: #e8645b !important;
    box-shadow: 0 0 0 3px rgba(232, 100, 91, 0.1);
}

/* Mobile menu */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }

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

/* Tablet */
@media (max-width: 768px) {
    .hero-title-line {
        font-size: 2.5rem;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .hero-title-line {
        font-size: 5.5rem;
    }
}
