/* Custom styles for JWCA International */

/* CSS Variables for Animations */
:root {
    --animation-duration: 0.3s;
    --animation-delay: 0.05s;
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Modern Keyframe Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Text Reveal Animation */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Hero Slider Styles */
.slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-1 { 
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero-slide-1.jpg'); 
}

.slide-2 { 
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero-slide-2.jpg'); 
}

.slide-3 { 
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero-slide-3.jpg'); 
}

.hero-slide {
    transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide:not(.active) {
    opacity: 0;
}

/* Slide Indicators */
.slide-indicator {
    transition: all 0.3s ease;
}

.slide-indicator.active {
    background-color: #fbbf24;
    transform: scale(1.2);
}

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

/* Mobile Menu Animation */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Service Card Hover Effects */
.service-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Contact Form Styles */
.contact-input:focus {
    border-color: #fbbf24;
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* Button Hover Effects */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Statistics Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    animation: countUp 0.8s ease-out;
}

/* Footer Links */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fbbf24;
}

/* Modern Button Effects */
.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animated Underline */
.nav-link-animated {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fbbf24;
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link-animated:hover::after {
    width: 100%;
}

/* Glass Morphism Effect */
.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Loading Animation */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background-color: #fbbf24;
    border-radius: 50%;
    animation: loadingDot 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Parallax Effect Helper */
.parallax {
    transition: transform 0.6s var(--ease-out-expo);
}

/* Text Animation Classes */
.text-reveal {
    overflow: hidden;
}

.text-reveal-inner {
    display: inline-block;
    animation: textReveal 0.8s var(--ease-out-expo) forwards;
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

/* Animated Gradient Background */
.animated-gradient {
    background: linear-gradient(-45deg, #fbbf24, #f59e0b, #d97706, #fbbf24);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Glow Effect */
.glow {
    transition: all 0.3s ease;
}

.glow:hover {
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.6),
                 0 0 40px rgba(251, 191, 36, 0.4),
                 0 0 60px rgba(251, 191, 36, 0.2);
}

/* Footer Modern Styling - Simplified */
.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent, #1f2937);
}

.footer-bg-animation {
    display: none;
}

.footer-link-modern {
    position: relative;
    display: inline-block;
    transition: all 0.3s var(--ease-out-expo);
}

.footer-link-modern::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transform: translateX(-50%);
    transition: width 0.3s var(--ease-out-expo);
}

.footer-link-modern:hover::before {
    width: 100%;
}

.footer-link-modern:hover {
    color: #fbbf24;
    transform: translateY(-2px);
}

.social-icon-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--ease-out-expo);
    overflow: hidden;
}

.social-icon-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.social-icon-modern:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon-modern:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.5);
}

.footer-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.5), transparent);
    overflow: hidden;
}


.footer-content-animate {
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
    animation-fill-mode: both;
}

.footer-content-animate:nth-child(1) { animation-delay: 0.1s; }
.footer-content-animate:nth-child(2) { animation-delay: 0.2s; }
.footer-content-animate:nth-child(3) { animation-delay: 0.3s; }

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Footer visibility fix */
footer {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

footer * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* About Section Animations */
.about-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 20% 50%, #fbbf24 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, #f59e0b 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, #d97706 0%, transparent 50%);
    animation: floatPattern 20s ease-in-out infinite;
}

@keyframes floatPattern {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-20px, -20px) scale(1.1);
    }
    66% {
        transform: translate(20px, -10px) scale(0.95);
    }
}

.welcome-text {
    position: relative;
    display: inline-block;
}

.company-name {
    position: relative;
    display: inline-block;
    animation: subtleGlow 3s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

.about-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    position: relative;
    overflow: hidden;
}

.about-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    animation: slideThrough 3s ease-in-out infinite;
}

@keyframes slideThrough {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.about-description {
    position: relative;
}

.about-description::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -40px;
    font-size: 80px;
    color: #fbbf24;
    opacity: 0.1;
    font-family: Georgia, serif;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    :root {
        --animation-duration: 0.4s;
    }
    
    .about-description::before {
        display: none;
    }
}