/* ============================================
   PHYOE DHANA - Advanced Animations
   ============================================ */

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   TEXT ANIMATIONS
   ============================================ */

/* Split text animation */
.split-text {
    display: inline-block;
    overflow: hidden;
}

.split-text .char {
    display: inline-block;
    transform: translateY(100%);
    animation: charReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes charReveal {
    to {
        transform: translateY(0);
    }
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--color-accent);
    white-space: nowrap;
    animation: typing 3.5s steps(50, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--color-accent); }
}

/* Glowing text */
.glow-text {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 
            0 0 5px rgba(201, 162, 39, 0.5),
            0 0 10px rgba(201, 162, 39, 0.3);
    }
    to {
        text-shadow: 
            0 0 10px rgba(201, 162, 39, 0.8),
            0 0 20px rgba(201, 162, 39, 0.5),
            0 0 30px rgba(201, 162, 39, 0.3);
    }
}

/* ============================================
   BUTTON ANIMATIONS
   ============================================ */

/* 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 ease, height 0.6s ease;
}

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

/* Magnetic button effect */
.btn-magnetic {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-shine:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* ============================================
   CARD ANIMATIONS
   ============================================ */

/* 3D Tilt effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Card glow */
.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--color-accent), 
        transparent, 
        var(--color-accent)
    );
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-glow:hover::before {
    opacity: 1;
}

/* Card lift */
.card-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-lift:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(201, 162, 39, 0.1);
}

/* ============================================
   IMAGE ANIMATIONS
   ============================================ */

/* Parallax effect */
.parallax-img {
    transform: translateY(var(--parallax-offset, 0));
    transition: transform 0.1s linear;
}

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

.img-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform-origin: right;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-reveal.active::after {
    transform: scaleX(0);
}

/* Ken Burns effect */
.ken-burns {
    animation: kenBurns 20s ease infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */

/* Film strip loader */
.film-loader {
    display: flex;
    gap: 4px;
}

.film-loader span {
    width: 10px;
    height: 30px;
    background: var(--color-accent);
    animation: filmLoad 1s ease-in-out infinite;
}

.film-loader span:nth-child(1) { animation-delay: 0s; }
.film-loader span:nth-child(2) { animation-delay: 0.1s; }
.film-loader span:nth-child(3) { animation-delay: 0.2s; }
.film-loader span:nth-child(4) { animation-delay: 0.3s; }
.film-loader span:nth-child(5) { animation-delay: 0.4s; }

@keyframes filmLoad {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Camera shutter */
.shutter-loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.shutter-loader::before,
.shutter-loader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.shutter-loader::before {
    animation: shutterPulse 1.5s ease-out infinite;
}

.shutter-loader::after {
    animation: shutterPulse 1.5s ease-out 0.75s infinite;
}

@keyframes shutterPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   BACKGROUND ANIMATIONS
   ============================================ */

/* Gradient animation */
.animated-gradient {
    background: linear-gradient(
        -45deg,
        var(--color-bg-primary),
        var(--color-bg-secondary),
        var(--color-bg-tertiary),
        var(--color-bg-primary)
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.5;
    animation: particleFloat 10s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Scan line effect */
.scan-lines {
    position: relative;
    overflow: hidden;
}

.scan-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* ============================================
   SPECIAL EFFECTS
   ============================================ */

/* Glitch effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--color-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--color-accent);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 31px, 0); }
    5% { clip: rect(70px, 9999px, 71px, 0); }
    10% { clip: rect(30px, 9999px, 95px, 0); }
    15% { clip: rect(5px, 9999px, 14px, 0); }
    20% { clip: rect(68px, 9999px, 88px, 0); }
    25% { clip: rect(40px, 9999px, 23px, 0); }
    30% { clip: rect(15px, 9999px, 100px, 0); }
    35% { clip: rect(75px, 9999px, 54px, 0); }
    40% { clip: rect(22px, 9999px, 67px, 0); }
    45% { clip: rect(90px, 9999px, 12px, 0); }
    50% { clip: rect(35px, 9999px, 82px, 0); }
    55% { clip: rect(8px, 9999px, 45px, 0); }
    60% { clip: rect(55px, 9999px, 27px, 0); }
    65% { clip: rect(48px, 9999px, 99px, 0); }
    70% { clip: rect(12px, 9999px, 35px, 0); }
    75% { clip: rect(62px, 9999px, 78px, 0); }
    80% { clip: rect(25px, 9999px, 55px, 0); }
    85% { clip: rect(80px, 9999px, 42px, 0); }
    90% { clip: rect(18px, 9999px, 88px, 0); }
    95% { clip: rect(42px, 9999px, 15px, 0); }
    100% { clip: rect(65px, 9999px, 70px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 70px, 0); }
    5% { clip: rect(18px, 9999px, 88px, 0); }
    10% { clip: rect(42px, 9999px, 15px, 0); }
    15% { clip: rect(80px, 9999px, 42px, 0); }
    20% { clip: rect(25px, 9999px, 55px, 0); }
    25% { clip: rect(62px, 9999px, 78px, 0); }
    30% { clip: rect(12px, 9999px, 35px, 0); }
    35% { clip: rect(48px, 9999px, 99px, 0); }
    40% { clip: rect(55px, 9999px, 27px, 0); }
    45% { clip: rect(8px, 9999px, 45px, 0); }
    50% { clip: rect(35px, 9999px, 82px, 0); }
    55% { clip: rect(90px, 9999px, 12px, 0); }
    60% { clip: rect(22px, 9999px, 67px, 0); }
    65% { clip: rect(75px, 9999px, 54px, 0); }
    70% { clip: rect(15px, 9999px, 100px, 0); }
    75% { clip: rect(40px, 9999px, 23px, 0); }
    80% { clip: rect(68px, 9999px, 88px, 0); }
    85% { clip: rect(5px, 9999px, 14px, 0); }
    90% { clip: rect(30px, 9999px, 95px, 0); }
    95% { clip: rect(70px, 9999px, 71px, 0); }
    100% { clip: rect(10px, 9999px, 31px, 0); }
}

/* VHS effect */
.vhs-effect {
    position: relative;
}

.vhs-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(
            transparent 0%,
            rgba(255, 255, 255, 0.02) 50%,
            transparent 100%
        );
    animation: vhsScan 5s linear infinite;
    pointer-events: none;
}

@keyframes vhsScan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

/* Underline animation */
.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

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

/* Scale up */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Rotate */
.hover-rotate {
    transition: transform 0.5s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Color shift */
.hover-color-shift {
    transition: filter 0.3s ease;
}

.hover-color-shift:hover {
    filter: hue-rotate(30deg);
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

/* Fade in up */
.page-transition {
    animation: pageIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Curtain reveal */
.curtain-reveal {
    position: relative;
    overflow: hidden;
}

.curtain-reveal::before,
.curtain-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--color-bg-primary);
    z-index: 10;
    animation: curtainOpen 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.curtain-reveal::before {
    left: 0;
    transform-origin: left;
}

.curtain-reveal::after {
    right: 0;
    transform-origin: right;
}

@keyframes curtainOpen {
    to {
        transform: scaleX(0);
    }
}

/* ============================================
   MEDIA QUERY FOR REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .typewriter {
        animation: none;
        border-right: none;
    }
    
    .parallax-img {
        transform: none;
    }
    
    .glitch::before,
    .glitch::after {
        display: none;
    }
}

/* ============================================
   ENHANCED FILMMAKER/DOCUMENTARY EFFECTS
   ============================================ */

/* Cinematic Letterbox */
.letterbox {
    position: absolute;
    left: 0;
    width: 100%;
    height: 8vh;
    background: #000;
    z-index: 10;
    pointer-events: none;
}

.letterbox-top {
    top: 0;
    animation: letterboxReveal 1.5s ease 0.5s forwards;
}

.letterbox-bottom {
    bottom: 0;
    animation: letterboxReveal 1.5s ease 0.5s forwards;
}

@keyframes letterboxReveal {
    from { height: 50vh; }
    to { height: 8vh; }
}

/* Camera Viewfinder Overlay */
.viewfinder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}

.vf-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: rgba(255, 255, 255, 0.4);
    border-style: solid;
}

.vf-tl { top: 12vh; left: 5%; border-width: 2px 0 0 2px; }
.vf-tr { top: 12vh; right: 5%; border-width: 2px 2px 0 0; }
.vf-bl { bottom: 12vh; left: 5%; border-width: 0 0 2px 2px; }
.vf-br { bottom: 12vh; right: 5%; border-width: 0 2px 2px 0; }

.vf-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.vf-crosshair::before,
.vf-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
}

.vf-crosshair::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
}

.vf-crosshair::after {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
}

.vf-rec {
    position: absolute;
    top: 13vh;
    right: 8%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #ff3333;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

.rec-dot {
    width: 10px;
    height: 10px;
    background: #ff3333;
    border-radius: 50%;
    animation: recBlink 1s ease infinite;
    box-shadow: 0 0 10px #ff3333;
}

@keyframes recBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.rec-text {
    letter-spacing: 0.2em;
    font-weight: bold;
}

.vf-timecode {
    position: absolute;
    bottom: 13vh;
    right: 8%;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

/* Scanline Effect */
.scanline-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Vignette Overlay */
.vignette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
}

/* Lens Flare */
.lens-flare {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(201, 162, 39, 0.3) 0%,
        rgba(201, 162, 39, 0.1) 30%,
        transparent 70%
    );
    pointer-events: none;
    animation: lensFlare 8s ease-in-out infinite;
}

@keyframes lensFlare {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1) translate(0, 0);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.2) translate(-20px, 10px);
    }
}

/* Documentary Badge */
.documentary-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    margin-bottom: var(--space-xl);
}

.badge-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.badge-content {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.badge-content span {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.badge-content strong {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
}

/* Film Strip Decoration */
.hero-film-decoration {
    display: flex;
    gap: 8px;
    margin-top: var(--space-lg);
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.film-cell {
    width: 40px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    animation: filmFlicker 3s ease-in-out infinite;
}

.film-cell::before,
.film-cell::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 1px;
}

.film-cell::before { top: 3px; left: 3px; }
.film-cell::after { top: 3px; right: 3px; }

.film-cell:nth-child(2) { animation-delay: 0.5s; }
.film-cell:nth-child(3) { animation-delay: 1s; }

@keyframes filmFlicker {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Enhanced About Section - Cinematic Frame */
.cinematic-frame {
    position: relative;
}

.film-border-top,
.film-border-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 8px,
        rgba(201, 162, 39, 0.3) 8px,
        rgba(201, 162, 39, 0.3) 16px
    );
    z-index: 2;
}

.film-border-top { top: -10px; }
.film-border-bottom { bottom: -10px; }

.image-overlay-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(201, 162, 39, 0.1) 50%,
        transparent 60%
    );
    background-size: 200% 200%;
    animation: shimmer 3s ease infinite;
    pointer-events: none;
}

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

.viewfinder-marks {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    pointer-events: none;
}

.mark {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
}

.mark-top { top: 0; left: 50%; width: 1px; height: 10px; transform: translateX(-50%); }
.mark-bottom { bottom: 0; left: 50%; width: 1px; height: 10px; transform: translateX(-50%); }
.mark-left { left: 0; top: 50%; width: 10px; height: 1px; transform: translateY(-50%); }
.mark-right { right: 0; top: 50%; width: 10px; height: 1px; transform: translateY(-50%); }

.pulse-glow {
    animation: float 6s ease-in-out infinite, pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 162, 39, 0.3); }
    50% { box-shadow: 0 0 40px rgba(201, 162, 39, 0.6); }
}

.floating-film-strip {
    position: absolute;
    bottom: -40px;
    left: 20%;
    width: 100px;
    height: 30px;
    background: repeating-linear-gradient(
        90deg,
        var(--color-accent) 0px,
        var(--color-accent) 4px,
        transparent 4px,
        transparent 12px
    );
    opacity: 0.3;
    transform: rotate(-15deg);
    animation: floatStrip 8s ease-in-out infinite;
}

@keyframes floatStrip {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-15deg) translateY(-10px); }
}

/* Profile Photo Enhancement */
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%) contrast(1.05);
    transition: all 0.5s ease;
}

.about-image:hover .profile-photo {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.02);
}

/* Timeline Enhancement */
.about-timeline {
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--color-accent),
        var(--color-accent) 50%,
        rgba(201, 162, 39, 0.3)
    );
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-md);
    opacity: 0;
    transform: translateX(-20px);
    animation: timelineReveal 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }

@keyframes timelineReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-xl) - 5px);
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--color-bg-primary);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.highlight::before {
    background: var(--color-accent);
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.5);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

/* Documentary Section Header Animation */
.section-header {
    position: relative;
}

.section-number {
    position: relative;
    display: inline-block;
}

.section-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
    animation: expandLine 0.8s ease forwards;
}

@keyframes expandLine {
    from { width: 0; }
    to { width: 30px; }
}

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

.cinematic-reveal > * {
    display: block;
    transform: translateY(100%);
    animation: cinematicUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cinematicUp {
    to { transform: translateY(0); }
}

/* Documentary Quote Style */
.quote-block {
    position: relative;
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
}

/* Camera Flash Effect */
.camera-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    pointer-events: none;
    opacity: 0;
    z-index: 9998;
}

.camera-flash.active {
    animation: flashBurst 0.5s ease forwards;
}

@keyframes flashBurst {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* Reel Spin Animation for Loading */
.reel-spin {
    animation: reelSpin 1.5s linear infinite;
}

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

/* Documentary Stats Counter */
.stat-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item {
    position: relative;
    padding: var(--space-md);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.stat-item:hover::after {
    width: 50%;
}

/* Hero Background Image */
.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) saturate(0.8);
    animation: slowZoom 30s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* ============================================
   PREMIUM RECORD LOGO STYLES
   ============================================ */
.premium-records-badge {
    flex-direction: row;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pr-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-right: var(--space-md);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.pr-initials {
    font-family: 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 400;
    color: white;
    letter-spacing: 0.3em;
    line-height: 1;
}

.pr-script {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 0.65rem;
    color: white;
    letter-spacing: 0.1em;
    margin-top: 2px;
    white-space: nowrap;
}

.premium-records-badge .badge-content {
    text-align: left;
}

.premium-records-badge .badge-content span {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
}

.premium-records-badge .badge-content strong {
    font-size: 0.7rem;
    color: white;
    letter-spacing: 0.2em;
    font-weight: 400;
}

/* ============================================
   FILM RECORDING ANIMATION
   ============================================ */
.film-recording-animation {
    margin: var(--space-lg) 0;
    opacity: 0;
    animation: fadeIn 1s ease 1.8s forwards;
}

.film-reel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.film-reel-mini {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-left {
    animation: reelSpin 3s linear infinite;
}

.reel-right {
    animation: reelSpin 3s linear infinite reverse;
}

.reel-center {
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
}

.film-reel-mini::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    top: 5px;
}

.film-reel-mini::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    bottom: 5px;
}

.film-tape {
    width: 60px;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--color-accent) 0px,
        var(--color-accent) 4px,
        transparent 4px,
        transparent 8px
    );
    position: relative;
    animation: tapeMove 0.5s linear infinite;
}

@keyframes tapeMove {
    from { background-position: 0 0; }
    to { background-position: 8px 0; }
}

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

/* ============================================
   ENHANCED FILM CELL ANIMATION
   ============================================ */
.hero-film-decoration {
    display: flex;
    gap: 6px;
    margin-top: var(--space-md);
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}

.film-cell {
    width: 32px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    animation: filmFlicker 2s ease-in-out infinite;
}

.film-cell::before,
.film-cell::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1px;
}

.film-cell::before { top: 2px; left: 2px; }
.film-cell::after { top: 2px; right: 2px; }

/* Film cell inner glow effect */
.film-cell:nth-child(odd)::before {
    box-shadow: 0 0 4px var(--color-accent);
}

.film-cell:nth-child(1) { animation-delay: 0s; }
.film-cell:nth-child(2) { animation-delay: 0.2s; }
.film-cell:nth-child(3) { animation-delay: 0.4s; }
.film-cell:nth-child(4) { animation-delay: 0.6s; }
.film-cell:nth-child(5) { animation-delay: 0.8s; }

/* ============================================
   CAMERA ROLLING EFFECT
   ============================================ */
.camera-rolling {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    z-index: 50;
    opacity: 0;
    animation: fadeIn 0.5s ease 2.5s forwards;
}

.rolling-dot {
    width: 8px;
    height: 8px;
    background: #ff3333;
    border-radius: 50%;
    animation: recBlink 1s ease infinite;
}

.rolling-text {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: white;
    letter-spacing: 0.1em;
}

/* ============================================
   FILM GRAIN OVERLAY ENHANCED
   ============================================ */
.grain-overlay {
    animation: grainMove 0.5s steps(10) infinite;
}

@keyframes grainMove {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(1%, 1%); }
    30% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-1%, 0); }
    60% { transform: translate(1%, 0); }
    70% { transform: translate(0, 1%); }
    80% { transform: translate(0, -1%); }
    90% { transform: translate(1%, 1%); }
}

/* ============================================
   CLAPPERBOARD ANIMATION
   ============================================ */
.clapperboard {
    position: relative;
    width: 60px;
    height: 50px;
    margin: var(--space-md) auto;
}

.clapper-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: repeating-linear-gradient(
        -45deg,
        var(--color-accent),
        var(--color-accent) 5px,
        #000 5px,
        #000 10px
    );
    transform-origin: left bottom;
    animation: clapperSnap 2s ease-in-out infinite;
}

.clapper-bottom {
    position: absolute;
    top: 12px;
    left: 0;
    width: 100%;
    height: 38px;
    background: #222;
    border: 2px solid var(--color-accent);
}

@keyframes clapperSnap {
    0%, 90%, 100% { transform: rotate(0deg); }
    5% { transform: rotate(-30deg); }
    10% { transform: rotate(0deg); }
}

/* Mobile responsive for film animations */
@media (max-width: 768px) {
    .film-recording-animation {
        display: none;
    }
    
    .premium-records-badge {
        padding: var(--space-sm) var(--space-md);
    }
    
    .pr-initials {
        font-size: 1.5rem;
    }
    
    .pr-script {
        font-size: 0.5rem;
    }
    
    .camera-rolling {
        display: none;
    }
}
