/* assets/css/animations.css - Scroll-triggered and cinematic animations */
/* ============================================
   ANIMATION STYLES
   - Scroll-triggered animations
   - Parallax effects
   - Transition classes for GSAP
   ============================================ */

/* GSAP Animation Target Classes */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-40px);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(40px);
}

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

/* Parallax Backgrounds */
.parallax-bg {
    position: relative;
    overflow: hidden;
}

.parallax-bg > * {
    transition: transform 0.1s linear;
}

/* Quote Section */
.parallax-quote {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.parallax-quote .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140%;
    background-image: url('/assets/images/Equator.jpeg?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.quote-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 3rem;
    color: white;
}

.quote-icon {
    font-size: 5rem;
    font-family: serif;
    opacity: 0.5;
}

.quote-container blockquote {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.4;
    margin: 1rem 0;
}

/* Instagram Gallery */
.instagram-gallery {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    text-align: center;
    color: white;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-primary);
    transition: width 0.1s ease;
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scroll Behavior */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Sticky Header Animation */
.site-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(var(--bg-primary-rgb), 0.98);
    backdrop-filter: blur(10px);
}

/* Section Transition Effects */
section {
    position: relative;
}

.section-transition {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
}

/* Hover Animations */
.destination-card,
.tour-card,
.gallery-item {
    will-change: transform;
}

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

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal.visible span {
    transform: translateY(0);
}