/* Custom styles for Heartland Construction */

:root {
    --forest-950: #121e12;
    --forest-900: #244024;
    --forest-800: #2c4e2c;
    --forest-700: #366136;
    --forest-600: #447a44;
    --forest-500: #5a9a5a;
    --forest-400: #7cb87c;
    --forest-300: #a8d9a8;
    --forest-200: #c5e8c5;
    --forest-100: #dcedce;
    --forest-50: #f0f7f0;
    --offwhite: #FAFAF5;
    --warmgray: #6B6560;
    --accent-yellow: #f5c33c;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--offwhite);
}
::-webkit-scrollbar-thumb {
    background: var(--forest-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--forest-500);
}

/* Selection color */
::selection {
    background: var(--forest-200);
    color: var(--forest-950);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Hamburger animation */
.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Geometric shape animations */
@media (prefers-reduced-motion: no-preference) {
    .geo-circle, .geo-rect {
        animation: float 6s ease-in-out infinite;
    }
    .geo-circle:nth-child(2) {
        animation-delay: -2s;
        animation-duration: 8s;
    }
    .geo-rect {
        animation-delay: -4s;
        animation-duration: 7s;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* Project card hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}
