/* Custom Styles for H & L Metal Fabricators */

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

/* Geometric background shapes */
.geometric-shape {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.shape-1 {
    top: 20%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #064e3b, #059669);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}

.shape-2 {
    bottom: 10%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #fde047, #eab308);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-3 {
    top: 50%;
    left: 30%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #10b981, #34d399);
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-4 {
    top: 10%;
    left: 20%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 20px;
    animation: float 4s ease-in-out infinite reverse;
}

/* Animations */
@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

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

@keyframes spin {
    from {
        transform: rotate(45deg);
    }
    to {
        transform: rotate(405deg);
    }
}

/* 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(6, 78, 59, 0.05), rgba(5, 150, 105, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

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

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

/* Image hover zoom effect */
.group:hover img {
    transform: scale(1.1);
}

/* Button ripple effect */
button,
a {
    position: relative;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-3 {
        width: 75px;
        height: 75px;
    }
    
    .shape-4 {
        width: 50px;
        height: 50px;
    }
}

/* Print styles */
@media print {
    .geometric-shape,
    .fixed {
        display: none;
    }
}
