/* Custom styles for Amendt Plumbing & Heating */

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

/* Geometric shape animations */
.geometric-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    border: 3px solid rgba(255, 191, 174, 0.5);
    border-radius: 50%;
    top: 10%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 147, 122, 0.3);
    border-radius: 50%;
    bottom: 20%;
    left: 8%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 191, 174, 0.4);
    border-radius: 50%;
    top: 40%;
    right: 15%;
    animation: float 5s ease-in-out infinite;
}

.shape-square-1 {
    width: 100px;
    height: 100px;
    background: rgba(255, 147, 122, 0.2);
    top: 60%;
    left: 3%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 191, 174, 0.2);
    top: 15%;
    left: 15%;
    animation: float 7s ease-in-out infinite;
}

.shape-dots {
    background-image: radial-gradient(circle, rgba(255, 191, 174, 0.4) 1px, transparent 1px);
    background-size: 30px 30px;
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 20%;
}

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

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

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7B2D3B, #FF947A);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Navigation active state */
.nav-link.active {
    color: #7B2D3B;
    background: #fdf0f2;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Scroll-triggered animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom selection color */
::selection {
    background: #D4445C;
    color: white;
}

/* Focus styles */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #D4445C;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 150px;
        height: 150px;
    }
    .shape-circle-2 {
        width: 80px;
        height: 80px;
    }
    .shape-square-1 {
        width: 60px;
        height: 60px;
    }
    .shape-triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 50px solid rgba(255, 191, 174, 0.2);
    }
    .shape-dots {
        background-size: 20px 20px;
        width: 100px;
        height: 100px;
    }
}

/* Print styles */
@media print {
    #navbar,
    #back-to-top,
    .geometric-shape {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
