/* Custom styles for River Supplies */

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

/* Hero clip path */
.clip-hero-right {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

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

.shape-circle-1 {
    top: 60vh;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #14b8a6, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    top: 120vh;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #14b8a6, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-triangle {
    top: 90vh;
    left: 20%;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #14b8a6;
    opacity: 0.04;
    animation: rotate 20s linear infinite;
}

.shape-square {
    top: 150vh;
    right: 15%;
    width: 100px;
    height: 100px;
    background: #14b8a6;
    transform: rotate(45deg);
    animation: rotate 15s linear infinite reverse;
}

.shape-dots {
    top: 180vh;
    left: 10%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #14b8a6 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.08;
}

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

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

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

.reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar styles */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

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

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

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal.animated {
        opacity: 1;
        transform: none;
    }
    .geo-shape {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .clip-hero-right {
        clip-path: polygon(0% 0, 100% 0, 100% 100%, 0% 100%);
        width: 100%;
        opacity: 0.15;
    }
    
    .geo-shape {
        display: none;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .clip-hero-right {
        width: 55%;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .clip-hero-right {
        width: 60%;
    }
}
