/**
 * CSS animations for domain.com
 * Contains animations and transitions used throughout the site
 */

/* ========== Fade In Animation ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* ========== Slide Up Animation ========== */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

/* ========== Staggered animations for sections ========== */
.stagger-animation > * {
    opacity: 0;
}

.stagger-animation > *:nth-child(1) {
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.stagger-animation > *:nth-child(2) {
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.stagger-animation > *:nth-child(3) {
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.stagger-animation > *:nth-child(4) {
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

.stagger-animation > *:nth-child(5) {
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.5s;
}

/* ========== Pulse Animation (for CTA buttons) ========== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 180, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 180, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 180, 0, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* ========== Hover Effects ========== */
/* Image Zoom on Hover */
.zoom-hover {
    overflow: hidden;
}

.zoom-hover img {
    transition: transform 0.5s ease;
}

.zoom-hover:hover img {
    transform: scale(1.05);
}

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn:hover:before {
    left: 100%;
}

/* Card Hover Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Link Hover Underline Effect */
.hover-underline {
    position: relative;
}

.hover-underline:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--honey-amber);
    transition: width 0.3s ease;
}

.hover-underline:hover:after {
    width: 100%;
}

/* ========== Reveal on Scroll Animations ========== */
/* These animations are triggered by PHP scroll detection */
.reveal-left {
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal-right {
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal-up {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal-down {
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal-fade {
    opacity: 0;
    transition: all 0.8s ease;
}

.revealed {
    transform: translate(0);
    opacity: 1;
}
