/* Custom Styles for Black Sheep Building Products */

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

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

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

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

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

/* Selection Color */
::selection {
    background: #ff6b6b;
    color: #ffffff;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff7f7f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 107, 107, 0.1) 50%,
        transparent 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite linear;
}

/* Pulse Animation for CTA */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 107, 0.6);
    }
}

.cta-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

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

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

/* Fade In Animation (Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Product Card Hover Effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Button Focus States */
button:focus,
a:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* Input Focus States */
input:focus,
textarea:focus {
    outline: none;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    .font-serif {
        font-size: 1.875rem;
        line-height: 1.2;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .font-serif {
        font-size: 2.25rem;
        line-height: 1.2;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .font-serif {
        font-size: 3rem;
        line-height: 1.2;
    }
}

@media (min-width: 1025px) {
    .font-serif {
        font-size: 3.75rem;
        line-height: 1.1;
    }
}
