/* ================================
   USS DZ - Animations Stylesheet
   ================================ */

/* ================================
   Scroll Animations Base
   ================================ */
.animate-fade-up,
.animate-fade-down,
.animate-fade-left,
.animate-fade-right,
.animate-zoom-in,
.animate-zoom-out {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-up {
    transform: translateY(50px);
}

.animate-fade-down {
    transform: translateY(-50px);
}

.animate-fade-left {
    transform: translateX(50px);
}

.animate-fade-right {
    transform: translateX(-50px);
}

.animate-zoom-in {
    transform: scale(0.9);
}

.animate-zoom-out {
    transform: scale(1.1);
}

/* Animated State */
.animate-fade-up.animated,
.animate-fade-down.animated,
.animate-fade-left.animated,
.animate-fade-right.animated,
.animate-zoom-in.animated,
.animate-zoom-out.animated {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* ================================
   Hero Animations
   ================================ */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content .hero-text {
    animation: heroFadeIn 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-content .hero-stats {
    animation: heroFadeIn 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

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

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

/* ================================
   Pulse Animation
   ================================ */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: inherit;
    animation: pulse-ring 1.5s ease-out infinite;
    z-index: -1;
}

/* ================================
   Service 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(212, 165, 116, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

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

/* ================================
   Button Shine Effect
   ================================ */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

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

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

.stat-number.counting,
.exp-number.counting,
.vs-number.counting {
    animation: countUp 0.5s ease forwards;
}

/* ================================
   Image Hover Effects
   ================================ */
.about-img-main,
.about-img-secondary {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-images:hover .about-img-main {
    transform: scale(1.02);
}

.about-images:hover .about-img-secondary {
    transform: translate(-10px, -10px);
}

/* ================================
   Gallery Item Animations
   ================================ */
.gallery-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Staggered Gallery Animation */
.gallery-grid .gallery-item:nth-child(1) { transition-delay: 0s; }
.gallery-grid .gallery-item:nth-child(2) { transition-delay: 0.05s; }
.gallery-grid .gallery-item:nth-child(3) { transition-delay: 0.1s; }
.gallery-grid .gallery-item:nth-child(4) { transition-delay: 0.15s; }
.gallery-grid .gallery-item:nth-child(5) { transition-delay: 0.2s; }
.gallery-grid .gallery-item:nth-child(6) { transition-delay: 0.25s; }
.gallery-grid .gallery-item:nth-child(7) { transition-delay: 0.3s; }
.gallery-grid .gallery-item:nth-child(8) { transition-delay: 0.35s; }

/* ================================
   Contact Card Animation
   ================================ */
.contact-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover .contact-icon {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* ================================
   Form Input Focus Animation
   ================================ */
.form-group input,
.form-group textarea,
.form-group select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: translateY(-2px);
}

/* ================================
   Lightbox Animations
   ================================ */
.lightbox {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox-content {
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: scale(0.9);
    opacity: 0;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

/* ================================
   WhatsApp Button Animation
   ================================ */
.whatsapp-btn {
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

/* ================================
   Navigation Link Underline
   ================================ */
.nav-link::after {
    transition: width 0.3s ease, left 0.3s ease;
}

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

/* ================================
   Footer Social Icons
   ================================ */
.footer-social a {
    transition: background 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    animation: bounce-small 0.4s ease;
}

@keyframes bounce-small {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ================================
   Section Header Animation
   ================================ */
.section-header .section-tag {
    animation: fadeInUp 0.6s ease forwards;
}

.section-header .section-title {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.section-header .section-subtitle {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

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

/* ================================
   Parallax Effect
   ================================ */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@supports (-webkit-touch-callout: none) {
    .parallax {
        background-attachment: scroll;
    }
}

/* ================================
   Smooth Scroll Reveal
   ================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ================================
   Loading Skeleton
   ================================ */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--light-gray) 0%,
        var(--white) 50%,
        var(--light-gray) 100%
    );
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite linear;
}

/* ================================
   Ripple Effect
   ================================ */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.ripple:active::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
    transition: 0s;
}

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

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
    to {
        transform: translateY(0);
    }
}

/* ================================
   Gradient Text Animation
   ================================ */
.gradient-text {
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--secondary),
        var(--primary)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s linear infinite;
}

@keyframes gradient {
    to {
        background-position: 200% center;
    }
}

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

    .parallax {
        background-attachment: scroll;
    }
}
