/* Custom styles for Foley Exteriors */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #427d50;
}

/* Selection color */
::selection {
    background-color: #2a4f34;
    color: #FAFAF5;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(151, 197, 165, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 1rem;
}

.service-card:hover::before {
    opacity: 1;
}

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

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

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Menu button animations */
.menu-line {
    transition: all 0.3s ease;
}

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 24px;
    margin-left: 0;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(42, 79, 52, 0.1);
}

/* Image hover zoom */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(151, 197, 165, 0.3);
}

/* Button press effect */
button:active {
    transform: scale(0.98);
}

/* Subtle parallax for hero */
#hero {
    background-attachment: fixed;
}

/* Print styles */
@media print {
    #navbar,
    #contact {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
