/* =============================================
   ADT EXPORT — ADVANCED ANIMATIONS (animations.css)
   Scroll animations, counters, shimmer, parallax,
   gradient text, floating elements, stagger, etc.
   ============================================= */

/* ==========================================
   KEYFRAME DEFINITIONS
   ========================================== */

@keyframes fadeInUp {
    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 fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-16px) rotate(4deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

@keyframes shimmer {
    0% {
        background-position: -800px 0;
    }

    100% {
        background-position: 800px 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(26, 92, 42, 0);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(26, 92, 42, 0.12);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes underlineExpand {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ==========================================
   SCROLL REVEAL — BASE
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Directional variants */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for child items */
.reveal:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal:nth-child(2) {
    transition-delay: 0.12s;
}

.reveal:nth-child(3) {
    transition-delay: 0.19s;
}

.reveal:nth-child(4) {
    transition-delay: 0.26s;
}

.reveal:nth-child(5) {
    transition-delay: 0.33s;
}

.reveal:nth-child(6) {
    transition-delay: 0.40s;
}

/* ==========================================
   HERO ANIMATIONS
   ========================================== */

/* Animated gradient background overlay on hero */
.hero__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(-45deg,
            rgba(26, 92, 42, 0.15),
            rgba(200, 146, 42, 0.08),
            rgba(26, 92, 42, 0.2),
            rgba(10, 40, 16, 0.1));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* Hero badge entrance */
.hero__badge {
    animation: fadeInDown 0.7s ease both;
}

/* Hero tagline animated entrance */
.hero__tagline {
    animation: fadeInUp 0.8s 0.1s ease both;
}

/* Hero subtitle */
.hero__subtitle {
    animation: fadeInUp 0.8s 0.25s ease both;
}

/* Hero buttons */
.hero__actions {
    animation: fadeInUp 0.8s 0.4s ease both;
}

/* Hero stats bar */
.hero__stats {
    animation: fadeInUp 0.8s 0.55s ease both;
}

/* Hero stat numbers — count-up feel on page load */
.hero__stat-number {
    animation: countUp 0.6s 0.8s ease both;
}

/* ==========================================
   ANIMATED GRADIENT TEXT
   ========================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-secondary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

/* ==========================================
   CARD HOVER EFFECTS
   ========================================== */

/* Why cards — lift + glow */
.why-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.why-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 50px rgba(26, 92, 42, 0.18);
    animation: borderGlow 1.5s ease infinite;
}

.why-card__icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.35s ease;
}

.why-card:hover .why-card__icon {
    transform: scale(1.18) rotate(-5deg);
}

/* Product cards */
.product-card,
.product-card-full {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease;
}

.product-card:hover,
.product-card-full:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 24px 60px rgba(26, 92, 42, 0.2);
}

/* Value cards */
.value-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(26, 92, 42, 0.15);
}

/* ==========================================
   BUTTON ANIMATIONS
   ========================================== */

.btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.btn:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.btn:active {
    transform: translateY(-1px);
}

/* ==========================================
   NAVBAR LOGO ANIMATION
   ========================================== */

.navbar__logo:hover .navbar__logo-img {
    animation: float 2.5s ease-in-out infinite;
}

.navbar__logo-img {
    transition: transform 0.3s ease;
}

/* ==========================================
   FLOATING DECORATIVE ELEMENTS
   ========================================== */

/* Section labels */
.section__label {
    position: relative;
    display: inline-block;
}

.section__label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: underlineExpand 0.8s 0.3s ease forwards;
}

/* ==========================================
   COUNTER ANIMATION (JS hooks)
   ========================================== */
.counter-value {
    display: inline-block;
    animation: countUp 0.8s ease both;
}

/* ==========================================
   SHIMMER LOADING EFFECT (for images loading in)
   ========================================== */
img.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite;
}

/* ==========================================
   FACTORY PROCESS STEPS
   ========================================== */
.process-step {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease;
}

.process-step:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(26, 92, 42, 0.15);
}

.process-step__num {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease;
}

.process-step:hover .process-step__num {
    transform: scale(1.2) rotate(-8deg);
    animation: pulse 1.2s ease infinite;
}

/* ==========================================
   ABOUT SECTION IMAGE FLOAT
   ========================================== */
.about-story__img-main,
.about-preview__img-main {
    transition: transform 0.5s ease;
    animation: floatSlow 6s ease-in-out infinite;
}

.about-story__img-main:hover,
.about-preview__img-main:hover {
    animation-play-state: paused;
    transform: scale(1.03);
}

/* ==========================================
   FOOTER LINK HOVER
   ========================================== */
.footer__links a {
    position: relative;
    transition: color 0.25s ease, gap 0.25s ease, padding-left 0.25s ease;
}

/* ==========================================
   WHATSAPP BUTTON ENHANCED
   ========================================== */
.whatsapp-float__btn {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease;
}

/* ==========================================
   PAGE HERO ANIMATED PARTICLES
   ========================================== */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 85%, rgba(200, 146, 42, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 15%, rgba(26, 92, 42, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    animation: gradientShift 6s ease infinite;
    pointer-events: none;
}

/* ==========================================
   ABOUT CTA SECTION GLOW
   ========================================== */
.about-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, var(--color-primary-dark), var(--color-secondary), #0d4820, #1a5c2a);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
}

.about-cta h2 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.about-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
}

.about-cta__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   SECTION HEADER DIVIDER ANIMATION
   ========================================== */
.divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-pill);
    position: relative;
    overflow: hidden;
}

.divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    animation: shimmer 2s 1s ease infinite;
}

/* ==========================================
   NUMBERS / STATISTICS GLOW
   ========================================== */
.hero__stat-number,
.factory-stat__num,
.about-preview__img-badge-num {
    text-shadow: 0 0 20px rgba(200, 146, 42, 0.3);
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.hero__stat:hover .hero__stat-number,
.factory-stat:hover .factory-stat__num {
    text-shadow: 0 0 30px rgba(200, 146, 42, 0.6);
    transform: scale(1.1);
}

/* ==========================================
   AVAILABILITY BADGE (24/7)
   ========================================== */
.badge-24h {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #1a5c2a, #2d8a45);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
    animation: pulse 2.5s ease infinite;
    box-shadow: 0 0 0 0 rgba(26, 92, 42, 0.4);
}

.badge-24h::before {
    content: '●';
    font-size: 0.55rem;
    color: #7dff9e;
    animation: twinkle 1.5s ease infinite;
}

/* ==========================================
   REDUCED MOTION SUPPORT
   ========================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}