/* Golden Vision - Enhanced Animations CSS */

/* Base Animation Keyframes */
@keyframes fadeIn { 
    0% { opacity: 0; } 
    100% { opacity: 1; } 
}

@keyframes fadeInUp { 
    0% { opacity: 0; transform: translateY(20px); } 
    100% { opacity: 1; transform: translateY(0); } 
}

@keyframes fadeInDown { 
    0% { opacity: 0; transform: translateY(-20px); } 
    100% { opacity: 1; transform: translateY(0); } 
}

@keyframes fadeInLeft { 
    0% { opacity: 0; transform: translateX(-20px); } 
    100% { opacity: 1; transform: translateX(0); } 
}

@keyframes fadeInRight { 
    0% { opacity: 0; transform: translateX(20px); } 
    100% { opacity: 1; transform: translateX(0); } 
}

@keyframes zoomIn { 
    0% { opacity: 0; transform: scale(0.95); } 
    100% { opacity: 1; transform: scale(1); } 
}

@keyframes pulse { 
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 165, 92, 0.7); } 
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(201, 165, 92, 0); } 
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 165, 92, 0); } 
}

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

@keyframes shake { 
    0%, 100% { transform: translateX(0); } 
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } 
    20%, 40%, 60%, 80% { transform: translateX(5px); } 
}

@keyframes shimmer {
    0% { left: -100%; opacity: 0.7; }
    50% { opacity: 0.3; }
    100% { left: 100%; opacity: 0.7; }
}

@keyframes spotlight { 
    0% { box-shadow: inset 0 0 0 rgba(201, 165, 92, 0); } 
    50% { box-shadow: inset 0 0 30px rgba(201, 165, 92, 0.3); } 
    100% { box-shadow: inset 0 0 0 rgba(201, 165, 92, 0); } 
}

@keyframes particle-move { 
    0% { transform: translate(0, 0); opacity: 0; } 
    25% { opacity: 1; } 
    50% { transform: translate(var(--move-x, 15px), var(--move-y, 15px)); } 
    75% { opacity: 1; } 
    100% { transform: translate(0, 0); opacity: 0; } 
}

/* Animation Classes */
.animated {
    animation-duration: 0.7s !important;
    animation-fill-mode: both !important;
    will-change: transform, opacity;
}

.fadeIn { animation-name: fadeIn !important; }
.fadeInUp { animation-name: fadeInUp !important; }
.fadeInDown { animation-name: fadeInDown !important; }
.fadeInLeft { animation-name: fadeInLeft !important; }
.fadeInRight { animation-name: fadeInRight !important; }
.zoomIn { animation-name: zoomIn !important; }
.pulse { animation: pulse 2s infinite !important; }
.float { animation: float 3s infinite !important; }

/* Animation Delays */
.delay-1 { animation-delay: 0.1s !important; }
.delay-2 { animation-delay: 0.2s !important; }
.delay-3 { animation-delay: 0.3s !important; }
.delay-4 { animation-delay: 0.4s !important; }
.delay-5 { animation-delay: 0.5s !important; }

/* Section Entry Animations */
.section-active {
    position: relative;
    animation: spotlight 1.2s ease-out !important;
}

/* Particle System */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle, .animated-particle {
    position: absolute;
    opacity: 0;
    animation: particle-move 15s infinite;
    border-radius: 50%;
    pointer-events: none;
}

/* Hero Section Animations */
.hero-content {
    opacity: 0;
}
.hero-content.animated {
    opacity: 1;
}

.hero-content h1, 
.hero-content h2, 
.hero-content p, 
.hero-content .btn {
    opacity: 0;
    transform: translateY(20px);
}

.hero-content.animated h1 {
    animation: fadeInUp 0.7s forwards;
    animation-delay: 0.1s;
}
.hero-content.animated h2 {
    animation: fadeInUp 0.7s forwards;
    animation-delay: 0.2s;
}
.hero-content.animated p {
    animation: fadeInUp 0.7s forwards;
    animation-delay: 0.3s;
}
.hero-content.animated .btn {
    animation: fadeInUp 0.7s forwards;
    animation-delay: 0.4s;
}

/* Service Card Animations */
.service-card {
    transition: transform 0.4s, box-shadow 0.4s !important;
    will-change: transform, box-shadow;
}

.service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-card .service-icon {
    transition: transform 0.4s, box-shadow 0.4s !important;
    will-change: transform, box-shadow;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg) !important;
    box-shadow: 0 10px 25px rgba(201, 165, 92, 0.5) !important;
}

/* Navigation Animations */
nav ul li a {
    transition: color 0.3s, transform 0.3s !important;
    will-change: color, transform;
}

nav ul li a:hover {
    transform: translateY(-3px);
}

nav ul li a::after {
    transition: width 0.3s ease-out !important;
    will-change: width;
}

/* Form Animations */
.form-group input,
.form-group textarea,
.form-group select {
    transition: border-color 0.3s, box-shadow 0.3s !important;
    will-change: border-color, box-shadow;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(201, 165, 92, 0.2) !important;
}

.shake-error {
    animation: shake 0.5s !important;
}

/* Social Media Animations */
.social-links a {
    transition: transform 0.3s, background-color 0.3s !important;
    will-change: transform, background-color;
}

.social-links a:hover {
    transform: translateY(-5px) !important;
}

/* WhatsApp Button Animation */
.whatsapp {
    animation: pulse 2s infinite !important;
}

/* Button Hover Animations */
.btn {
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: transform 0.4s, box-shadow 0.4s !important;
    will-change: transform, box-shadow;
}

.btn:hover {
    transform: translateY(-5px) !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
    transform: skewX(-15deg);
}

.btn:hover::before {
    left: 100%;
}

/* Optimize Animations for Mobile */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    .animated {
        animation-duration: 0.5s !important;
    }
    
    .section-active {
        animation: none !important;
    }
    
    .service-card:hover {
        transform: translateY(-5px) !important;
    }
} 