:root {
    --cursor-size: 20px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #050505;
    color: #e5e5e5;
    overflow-x: hidden;
    margin: 0;
    cursor: none;
}

h1, h2, h3, .display-font {
    font-family: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* Hide scrollbar for slider but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.content-wrapper {
    position: relative;
    z-index: 10;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Standard Outline Text */
.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}
.group:hover .outline-text {
    color: white;
    -webkit-text-stroke: 1px white;
}

/* --- HERO SPOTLIGHT EFFECT --- */
.spotlight-container {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.layer-top {
    opacity: 1; 
    pointer-events: none;
}

/* --- CUSTOM CURSOR --- */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 1px solid white; 
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference; 
}

/* Dynamic Cursor Text State */
#cursor.has-label,
#cursor.hovered-video {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

#cursor.has-label::after {
    content: attr(data-text);
    font-size: 10px;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.2;
}

#cursor.hovered-video::after {
    content: 'PLAY';
    font-size: 10px;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
}

@media (hover: none) and (pointer: coarse) {
    #cursor {
        display: none !important;
    }
    body {
        cursor: auto; 
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out;
}
.loader-line {
    width: 0%;
    height: 1px;
    background: white;
    transition: width 1s cubic-bezier(0.85, 0, 0.15, 1);
}

/* --- MOBILE SPECIFIC STYLES --- */
@media (max-width: 768px) {
    /* STUDIO SECTION: Interactions now triggered by .mobile-active */
    /* Only the active item expands and highlights */
    .group.mobile-active .mobile-text-white { color: white; }
    .group.mobile-active .mobile-translate-x { transform: translateX(0.5rem); }
    .group.mobile-active .mobile-grid-expand { grid-template-rows: 1fr; }
    .group.mobile-active .mobile-opacity-100 { opacity: 1; padding-top: 1rem; }

    /* WORK SECTION: Scroll-focused activation for Project Tiles */
    .group.mobile-active .project-overlay { opacity: 1 !important; }
    .group.mobile-active img { opacity: 1 !important; transform: scale(1.05) !important; }
    .group.mobile-active .outline-text { color: white !important; -webkit-text-stroke: 1px white !important; }
}

/* --- PROJECT PAGE ANIMATIONS --- */

.reveal-text {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.is-visible {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
    transform: translateY(0);
}

.reveal-image-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: inherit;
    /* Hidden State: Clipped from the TOP (inset 100% from top) */
    clip-path: inset(100% 0 0 0); 
    transition: clip-path 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

.reveal-image-wrapper.is-visible {
    /* Visible State: No clip */
    clip-path: inset(0 0 0 0);
}

.reveal-image-wrapper img, 
.reveal-image-wrapper video {
    transform: scale(1.1);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-image-wrapper.is-visible img,
.reveal-image-wrapper.is-visible video {
    transform: scale(1);
}

.separator {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 2rem 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.separator.is-visible {
    transform: scaleX(1);
}