/* Custom styles for M.B.A. Concrete Construction */

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

/* Scroll indicator animation */
@keyframes scrollDown {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(400%); opacity: 0; }
}

.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menuBtn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active #bar2 {
    opacity: 0;
}

#menuBtn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Service card hover effects */
.service-card {
    transition: background-color 0.5s ease;
}

/* Project card */
.project-card {
    cursor: pointer;
}

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(31, 69, 44, 0.08);
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: #1f452c !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-line {
        animation: none;
    }
    
    .project-card img {
        transition: none;
    }
}

/* Selection color */
::selection {
    background-color: #c5dfcc;
    color: #1f452c;
}
