/* Custom Styles for Patrick Hassler Upholstery */

/* Geometric Shapes Animation */
.geo-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4ade80, #10b981);
    top: 10%;
    left: -5%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #99f6c4, #4ade80);
    top: 60%;
    right: -3%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #10b981, #059669);
    bottom: 20%;
    left: 10%;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4ade80, #99f6c4);
    top: 30%;
    right: 20%;
    border-radius: 50%;
    animation-delay: -15s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #059669, #10b981);
    bottom: -5%;
    right: 10%;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
    75% {
        transform: translate(20px, 30px) rotate(3deg);
    }
}

/* Service Card Hover Effect */
.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(74, 222, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

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

/* Gallery Item Hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

/* Custom Selection Color */
::selection {
    background: #4ade80;
    color: #0a1128;
}

/* Navbar Scroll Effect */
nav.scrolled {
    background: rgba(10, 17, 40, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Ripple Effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

/* Animation on Scroll */
.service-card,
.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible,
.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #4ade80, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* Responsive Typography */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}
