/* Custom styles for Skyline Builders Inc */

/* Base transitions */
* {
    scroll-behavior: smooth;
}

/* Hover card effect */
.hover-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -15px rgba(16, 185, 129, 0.15);
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.hover-card {
    animation: float 6s ease-in-out infinite;
}

.hover-card:nth-child(2) {
    animation-delay: -1.5s;
}

.hover-card:nth-child(3) {
    animation-delay: -3s;
}

.hover-card:nth-child(4) {
    animation-delay: -4.5s;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(6, 13, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Mobile menu open state */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Selection color */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #FDFBF7;
}

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

::-webkit-scrollbar-track {
    background: #060D0A;
}

::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.5);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hover-card {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(212, 175, 55, 0.05));
}
