/* Custom Styles for RFP Plastics */

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

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

::-webkit-scrollbar-track {
    background: #05080A;
}

::-webkit-scrollbar-thumb {
    background: #151E26;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2DD4BF;
}

/* Hero Animations */
.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-reveal:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-reveal:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-reveal:nth-child(3) {
    animation-delay: 0.5s;
}

.hero-reveal:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.reveal.animated.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(5, 8, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold Accent Line */
.gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #F3E5AB);
}

/* Card Hover Effects */
.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(45, 212, 191, 0.1), transparent);
    transition: left 0.5s ease;
}

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

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

/* Image Placeholder Fallback */
img {
    background: linear-gradient(135deg, #151E26 0%, #0B1116 100%);
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}
