
/* ========================================================= */
/* ANIMATIONS & INTERACTIONS */
/* ========================================================= */

/* ---------------- Global Animations ---------------- */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ---------------- Scroll Animations ---------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------- Hero Section Animations ---------------- */
.hero-content h1 {
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-subtitle {
    animation: fadeIn 1s ease-out;
}

/* ---------------- Media Hover Effects ---------------- */
.media-hover-effect {
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
}

.media-hover-effect:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* ---------------- CTA Button Hover Animations ---------------- */
.cta-button {
    transition: background-color var(--transition-duration), transform var(--transition-duration), box-shadow var(--transition-duration);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* ---------------- Dropdown Animations ---------------- */
.nav-item.dropdown .dropdown-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------- Hamburger Menu Animations ---------------- */
.hamburger .bar {
    transition: all var(--transition-duration) ease-in-out;
}

.hamburger.is-active .bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.is-active .bar:nth-child(2) { opacity: 0; }
.hamburger.is-active .bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------------- Gallery / Modal Animations ---------------- */
.modal {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: none;
}

.modal.active {
    display: block;
    opacity: 1;
}

.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

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

.close-btn {
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-secondary);
}

/* ---------------- Gallery Slider Animations ---------------- */
.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-dot {
    transition: background-color 0.3s, transform 0.3s;
}

.gallery-dot.active {
    transform: scale(1.2);
}

/* ---------------- Footer Social Icon Animations ---------------- */
.social-links a {
    transition: color var(--transition-duration), transform var(--transition-duration);
}

.social-links a:hover {
    transform: scale(1.1);
    color: var(--color-accent);
}

/* ---------------- Responsive Adjustments for Animations ---------------- */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(20px);
    }

    .hero-content h1, .hero-content p {
        animation: none;
    }

    .media-hover-effect:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
}
