/* ==========================================
   PHOTOGRAPHE LANDING PAGE - ANIMATIONS
   v1.0.0 - Smooth & Premium Animations
   ========================================== */

/* ==========================================
   AOS Custom Configurations
   ========================================== */

[data-aos] {
    pointer-events: auto !important;
}

/* Fade Animations */
[data-aos="fade"] {
    opacity: 0;
    transition-property: opacity;
}

[data-aos="fade"].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition-property: opacity, transform;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-down"] {
    opacity: 0;
    transform: translateY(-30px);
    transition-property: opacity, transform;
}

[data-aos="fade-down"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
    transition-property: opacity, transform;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
    transition-property: opacity, transform;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Zoom Animations */
[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.8);
    transition-property: opacity, transform;
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

[data-aos="zoom-out"] {
    opacity: 0;
    transform: scale(1.2);
    transition-property: opacity, transform;
}

[data-aos="zoom-out"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* Flip Animations */
[data-aos="flip-up"] {
    opacity: 0;
    transform: perspective(2500px) rotateX(-100deg);
    transition-property: opacity, transform;
}

[data-aos="flip-up"].aos-animate {
    opacity: 1;
    transform: perspective(2500px) rotateX(0);
}

/* Custom Animation Durations */
[data-aos][data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos][data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos][data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos][data-aos-delay="400"] { transition-delay: 400ms; }
[data-aos][data-aos-delay="500"] { transition-delay: 500ms; }
[data-aos][data-aos-delay="600"] { transition-delay: 600ms; }
[data-aos][data-aos-delay="700"] { transition-delay: 700ms; }
[data-aos][data-aos-delay="800"] { transition-delay: 800ms; }
[data-aos][data-aos-delay="900"] { transition-delay: 900ms; }
[data-aos][data-aos-delay="1000"] { transition-delay: 1000ms; }

/* ==========================================
   CSS Keyframe Animations
   ========================================== */

/* Hero Animations */
@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroBlurIn {
    0% {
        opacity: 0;
        filter: blur(20px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

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

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 40px var(--accent-glow), 0 0 60px var(--accent-glow);
    }
}

/* Rotate Animation */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Slide In Animations */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Reveal Animation */
@keyframes reveal {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* Gradient Shift */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================
   Hover Animations & Effects
   ========================================== */

/* Card Hover Effect */
.card-hover {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Image Reveal on Hover */
.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.img-reveal:hover::before {
    transform: scaleX(1);
}

/* Underline Animation */
.underline-anim {
    position: relative;
    display: inline-block;
}

.underline-anim::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.underline-anim:hover::after {
    width: 100%;
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Icon Bounce on Hover */
.icon-hover {
    transition: transform 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.1);
    animation: bounce 0.5s ease;
}

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

/* ==========================================
   Page Load Animations
   ========================================== */

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

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

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--bg-tertiary);
    margin: 24px auto;
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: var(--accent);
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Initial Page Animation */
body {
    animation: pageLoad 1s ease forwards;
}

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

/* ==========================================
   Scroll-Triggered Animations
   ========================================== */

/* Parallax Effect for Backgrounds */
.parallax-bg {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Section Reveal on Scroll */
.section-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Counter Animation */
.counter {
    display: inline-block;
}

/* ==========================================
   Text Animations
   ========================================== */

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

.text-reveal span {
    display: inline-block;
    animation: textReveal 0.8s ease forwards;
    animation-delay: calc(var(--index) * 0.05s);
    opacity: 0;
    transform: translateY(100%);
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(
        90deg,
        var(--accent) 0%,
        var(--accent-light) 25%,
        var(--accent) 50%,
        var(--accent-light) 75%,
        var(--accent) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s linear infinite;
}

/* Letter Spacing Animation */
.letter-spacing-anim {
    transition: letter-spacing 0.4s ease;
}

.letter-spacing-anim:hover {
    letter-spacing: 4px;
}

/* ==========================================
   Interactive Animations
   ========================================== */

/* Magnetic Effect for Buttons */
.magnetic-btn {
    transition: transform 0.3s ease;
}

/* Form Input Focus Animation */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    animation: inputPulse 0.3s ease;
}

@keyframes inputPulse {
    0% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 0 5px var(--accent-glow);
    }
    100% {
        box-shadow: 0 0 0 3px var(--accent-glow);
    }
}

/* Lightbox Animation */
.lightbox {
    animation: lightboxIn 0.4s ease forwards;
}

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

.lightbox-img {
    animation: lightboxImageIn 0.5s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
    transform: scale(0.9);
}

@keyframes lightboxImageIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   Utility Animation Classes
   ========================================== */

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

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 10s linear infinite;
}

.animate-shimmer {
    animation: shimmer 3s linear infinite;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
}

.animate-slow {
    animation-duration: 3s !important;
}

.animate-fast {
    animation-duration: 0.5s !important;
}

/* Delay Utilities */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ==========================================
   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;
    }
    
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .hero-bg-img {
        animation: none !important;
        transform: none !important;
    }
    
    .scroll-line {
        animation: none !important;
    }
    
    .parallax-bg {
        transform: none !important;
    }
}

/* ==========================================
   Performance Optimizations
   ========================================== */

@media (prefers-reduced-motion: no-reduce) {
    .smooth-animations {
        will-change: transform, opacity;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}
