/* Custom styles for Reneau Rocky Roofing */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Hero animations */
.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-desc {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

/* Service card hover effect */
.service-card {
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* Mobile menu animations */
.mobile-link {
    animation: fadeIn 0.4s ease-out forwards;
}

.mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-link:nth-child(4) { animation-delay: 0.25s; }

/* Navbar transition */
#navbar {
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #FF6B6B !important;
}

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

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

::-webkit-scrollbar-track {
    background: #F5F5F5;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-title span {
        display: block;
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .mobile-menu {
        display: none;
    }
}
