/* Custom Styles for A Line Fence Co. */

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

/* Floating Card Animations */
.floating-card {
    animation: float 3s ease-in-out infinite;
}

.floating-card-2 {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Service Card Hover Effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Gallery Item Hover */
.gallery-item {
    cursor: pointer;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Geometric Shape Animations */
@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #0a192f;
    border-radius: 5px;
}

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

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

/* Button Press Effect */
button:active {
    transform: scale(0.98);
}

/* Navigation Active State */
nav a.active {
    color: #f59e0b;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-card,
    .floating-card-2 {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 1rem;
    }
}

/* Loading State for Form */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Print Styles */
@media print {
    nav,
    .floating-card,
    .floating-card-2,
    #mobile-menu-btn {
        display: none;
    }
}
