/* ============================================
   ENHANCED ANIMATIONS & EFFECTS
   ============================================ */

/* ============================================
   PAGE LOAD ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Page load - fade in main content */
body {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

.page-loaded body {
    opacity: 1;
}

.main-content {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

/* ============================================
   FLOATING MEDIA ICONS
   ============================================ */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-15px, -60px) rotate(-5deg);
    }
    75% {
        transform: translate(-25px, -30px) rotate(3deg);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -40px) rotate(8deg);
    }
    66% {
        transform: translate(-20px, -50px) rotate(-8deg);
    }
}

@keyframes floatVertical {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-40px);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    color: var(--white);
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.floating-icon.camera {
    top: 20%;
    left: 10%;
    animation-name: float;
    animation-delay: 0s;
}

.floating-icon.play-button {
    top: 60%;
    right: 15%;
    animation-name: floatSlow;
    animation-delay: 2s;
}

.floating-icon.lens {
    top: 40%;
    left: 80%;
    animation-name: floatVertical;
    animation-delay: 4s;
}

.floating-icon.sparkle {
    top: 10%;
    right: 30%;
    font-size: 1.5rem;
    animation-name: sparkle;
    animation-duration: 3s;
    animation-delay: 1s;
}

.floating-icon.sparkle-2 {
    top: 70%;
    left: 50%;
    font-size: 1.2rem;
    animation-name: sparkle;
    animation-duration: 4s;
    animation-delay: 3s;
}

.floating-icon.sparkle-3 {
    top: 30%;
    left: 30%;
    font-size: 1.8rem;
    animation-name: sparkle;
    animation-duration: 3.5s;
    animation-delay: 5s;
}

/* Gallery floating icons */
.gallery-section .floating-icon {
    color: var(--navy);
    opacity: 0.1;
}

/* ============================================
   HOVER ANIMATIONS - ICONS & BUTTONS
   ============================================ */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.6);
    }
}

@keyframes scaleUp {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

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

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

/* Button hover effects */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Icon hover effects */
.icon-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-hover:hover {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.5));
}

/* Social icons */
.social-icon,
.footer-social a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover,
.footer-social a:hover {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.6));
}

/* Service icons */
.service-type-icon:hover {
    transform: scale(1.2) rotate(5deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GALLERY HOVER ANIMATIONS
   ============================================ */
@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item img,
.gallery-item video {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.6s ease;
    will-change: transform;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.15);
    filter: brightness(0.7);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
    opacity: 1;
}

.gallery-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1.1);
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================ */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-scale-in.animated {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   TEXT REVEAL ANIMATIONS
   ============================================ */
@keyframes wordReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-reveal-word {
    display: inline-block;
    opacity: 0;
    animation: wordReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.text-reveal-line {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal-line.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PARALLAX EFFECTS
   ============================================ */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.parallax-slow {
    transform: translateY(0);
}

/* ============================================
   LENS FLARE & CINEMATIC EFFECTS
   ============================================ */
@keyframes lensFlare {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
    }
}

@keyframes lightBeam {
    0%, 100% {
        opacity: 0.2;
        transform: translateX(-100%) skewX(-20deg);
    }
    50% {
        opacity: 0.5;
        transform: translateX(100%) skewX(-20deg);
    }
}

.lens-flare {
    position: absolute;
    top: 30%;
    right: 20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    animation: lensFlare 8s ease-in-out infinite;
    filter: blur(20px);
}

.light-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    animation: lightBeam 10s ease-in-out infinite;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

/* ============================================
   SECTION TRANSITIONS
   ============================================ */
@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-transition {
    animation: sectionFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================
   SMOOTH TRANSITIONS FOR ALL ELEMENTS
   ============================================ */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance optimization */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
    .floating-icon {
        font-size: 1.5rem;
        opacity: 0.1;
    }
    
    .lens-flare {
        width: 100px;
        height: 100px;
        top: 20%;
        right: 10%;
    }
    
    .gallery-item:hover img,
    .gallery-item:hover video {
        transform: scale(1.05);
    }
    
    /* Reduce animation complexity on mobile */
    .scroll-fade-in,
    .scroll-slide-left,
    .scroll-slide-right,
    .scroll-scale-in {
        transition-duration: 0.5s;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
