:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --accent-color: #d4af37;
    --gradient-hero: radial-gradient(circle at center, #1a1a2e 0%, #050505 100%);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    overscroll-behavior: none;
}

/* ─── Global UI (Profile & Name floating layer) ─── */
.global-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

.profile-pic {
    position: absolute;
    /* Initial position: centered, offset slightly above midline */
    top: 42%;
    left: 50%;
    width: 280px;
    height: 280px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    pointer-events: auto;
    will-change: transform, width, height, top, left, border-radius, opacity;
    /* NO CSS transform — GSAP controls xPercent/yPercent exclusively */
}

.global-name {
    position: absolute;
    top: calc(42% + 170px);
    left: 50%;
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-shadow: 0 10px 40px rgba(0,0,0,0.9);
    pointer-events: auto;
    will-change: transform, font-size, top, left, opacity;
    /* NO CSS transform — GSAP controls xPercent/yPercent exclusively */
}

/* ─── Layout ─── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Hero ─── */
.hero {
    height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 280px; /* Space for absolute profile pic + name */
    opacity: 0.8;
    letter-spacing: 0.05em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.4;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(8px); }
}

/* ─── Polaroids Section ─── */
.polaroids-wrapper {
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #050505 0%, #000 100%);
}

.polaroids-container {
    display: flex;
    height: 100%;
    width: max-content;
    align-items: center;
    padding: 0 calc(50vw - 200px); /* Center the first polaroid */
    gap: 8vw;
}

.polaroid {
    flex-shrink: 0;
    width: 380px;
    height: 480px;
    background: #fff;
    padding: 18px;
    padding-bottom: 55px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    cursor: pointer;
    transform-origin: bottom center;
    will-change: transform;
    /* NO CSS transition on transform — GSAP handles it, hover is JS-driven */
}

.polaroid-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.polaroid img {
    width: 100%;
    height: calc(100% - 35px);
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.4s ease;
}

.polaroid:hover img {
    filter: grayscale(0%);
}

.polaroid p {
    color: #222;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: auto;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    padding-top: 8px;
}

/* ─── Approach ─── */
.approach {
    padding: 15vh 0;
    background: #080808;
    position: relative;
    z-index: 1;
}

.approach-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.6rem;
    font-weight: 300;
}

.approach-list li {
    padding: 2rem;
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    /* Start hidden — GSAP will animate opacity & y */
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

.approach-list span {
    color: var(--accent-color);
    font-weight: 800;
    margin-right: 1rem;
}

/* ─── Info Section ─── */
.info {
    padding: 15vh 0;
    background: #0a0a0a;
    position: relative;
    z-index: 1;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 60vh;
}

.info-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Invisible placeholder so the grid column has correct size */
.profile-target {
    width: 350px;
    height: 440px;
    border-radius: 20px;
}

.name-target {
    height: 50px;
    margin-top: 1.5rem;
}

.bio {
    font-size: 1.4rem;
    line-height: 1.7;
    color: #aaa;
    margin-bottom: 2.5rem;
}

.key-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.point {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.2rem;
    /* Start hidden — GSAP will animate */
    opacity: 0;
    transform: translateX(40px);
    will-change: transform, opacity;
}

.point .emoji {
    font-size: 2.2rem;
    background: rgba(255,255,255,0.05);
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ─── Contact ─── */
.contact {
    padding: 15vh 0;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.social-icon {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.social-icon:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* ─── Page Transition Overlay ─── */
.transition-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #050505;
    z-index: 9999;
    pointer-events: none;
    transform: translateY(100%);
}

/* ─── Project Pages ─── */
.project-header {
    padding: 4vh 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.back-btn {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.back-btn:hover {
    opacity: 0.7;
}

.project-grid {
    padding: 15vh 5vw 5vh;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    grid-auto-flow: dense;
}

.grid-item {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 0; /* Square corners per spec */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.grid-item:hover {
    filter: brightness(1.15);
    transform: scale(1.02);
}

/* ─── Lightbox ─── */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.6;
}
