/* ===== Custom Styles for Colf Brothers Construction ===== */

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

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

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

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

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

/* ===== Hero Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.hero-badge {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-trust {
    animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-scroll {
    animation: fadeIn 1s ease-out 1.5s both;
}

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

/* ===== Section Header Animation ===== */
.section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Service Card Animation ===== */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Project Card Animation ===== */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Testimonial Card Animation ===== */
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== About Image Animation ===== */
.about-image {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out 0.2s;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-text {
    color: white;
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* ===== Contact Form Styles ===== */
.contact-form-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.contact-form-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Selection Color ===== */
::selection {
    background: #c9a84c;
    color: #102a43;
}

/* ===== Focus Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    #navbar,
    .hero-scroll,
    .mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
