body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #111111;
}

.text-huge {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    text-align: left;
}

.card-hover:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Nav Link Animation */
.nav-link {
    display: inline-block;
    position: relative;
}

.nav-text {
    display: inline-block;
}

.nav-char {
    display: inline-block;
    overflow: hidden;
}

/* Simple CSS Animation */
.ml13 .letter {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover Effect: Wave */
h1:hover .letter {
    animation: wave 0.6s ease infinite alternate;
}

@keyframes wave {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-15px);
    }
}

/* Add delays via nth-child in CSS is hard for dynamic text, 
   but we can rely on the JS adding the spans and then use JS to set delays 
   OR just use a simple transition. 
   
   Actually, let's keep the JS to wrap letters, and purely control animation via CSS.
   We can add style="--i: index" in JS to make CSS clean.
*/
.ml13 .letter {
    animation-play-state: paused;
}

h1:hover .ml13 .letter {
    animation-play-state: running;
    animation: wave 1s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.05s);
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Custom Cursor Styles */
* {
    cursor: none !important;
}

#custom-cursor {
    pointer-events: none;
    will-change: transform, width, height;
}

/* Active state (mousedown) */
.cursor-active {
    transform: translate(-50%, -50%) scale(0.8) !important;
}

/* Hover state (links/buttons) */
.cursor-hover {
    transform: translate(-50%, -50%) scale(2.5) !important;
    background-color: white;
    mix-blend-mode: difference;
}

/* Text label state */
.cursor-hidden {
    opacity: 0;
}

/* Typewriter Cursor */
.txt-rotate>.wrap {
    border-right: 0.08em solid #666;
}

/* Spotlight Effect (Generic) */
.spotlight-group:hover .spotlight-item {
    opacity: 0.4;
    filter: blur(3px);
    transform: scale(0.98);
    transition: all 0.4s ease;
}

.spotlight-group .spotlight-item:hover {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.1);
    background-color: #09090b;
    /* Zinc-950 roughly */
}

/* Description Animation */
.spotlight-item p {
    transition: all 0.3s ease;
}

.spotlight-item:hover p {
    color: #d4d4d8;
    /* Zinc-300 */
    transform: translateX(10px);
}

/* Alternative Description Animation: Glow + Brighten */
.spotlight-item:hover p {
    color: #ffffff;
    /* Pure White */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: none;
    /* Remove slide */
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 15s linear infinite;
    width: max-content;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Marquee Reverse Animation */
.animate-marquee-reverse {
    animation: marquee 15s linear infinite;
    animation-direction: reverse;
    width: max-content;
}

.animate-marquee-reverse:hover {
    animation-play-state: paused;
}

/* Expanding Photo Gallery */
.photo-gallery {
    display: flex;
    width: 100%;
    padding: 2% 0;
    box-sizing: border-box;
    height: 70vh;
    gap: 1rem;
}

.photo-box {
    flex: 1;
    overflow: hidden;
    transition: 0.5s ease;
    border-radius: 1.5rem;
    position: relative;
}

.photo-box>img {
    width: 200%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.photo-box:hover {
    flex: 1 1 50%;
}

.photo-box:hover>img {
    width: 100%;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {

    .photo-box,
    .photo-box>img {
        transition: none;
    }
}

/* Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slideshow 21s infinite;
    transition: 0.5s ease;
}

.photo-box:hover .slideshow img {
    width: 100%;
}

.slideshow img:nth-child(1) {
    animation-delay: 0s;
}

.slideshow img:nth-child(2) {
    animation-delay: 3s;
}

.slideshow img:nth-child(3) {
    animation-delay: 6s;
}

.slideshow img:nth-child(4) {
    animation-delay: 9s;
}

.slideshow img:nth-child(5) {
    animation-delay: 12s;
}

.slideshow img:nth-child(6) {
    animation-delay: 15s;
}

.slideshow img:nth-child(7) {
    animation-delay: 18s;
}

@keyframes slideshow {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }

    3% {
        opacity: 1;
        transform: scale(1);
    }

    12% {
        opacity: 1;
        transform: scale(1);
    }

    15% {
        opacity: 0;
        transform: scale(0.98);
    }

    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slideshow img {
        animation: none;
    }

    .slideshow img:first-child {
        opacity: 1;
    }
}