:root {
    --bg: #050505; 
    --ink: #ffffff;
    --subtle-ink: #888888;
    --accent: #FFC63E; 
    
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;
    --glass-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
    
    --font-display: 'Syne', sans-serif;
    --font-data: 'Space Mono', monospace;
    
    --space-md: clamp(1.5rem, 4vw, 4rem);
    --space-lg: clamp(4rem, 8vw, 8rem);
    --space-xl: clamp(6rem, 12vh, 12rem); 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis { height: auto; }

/* 1. CURSOR SYSTEM */
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-data);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    cursor: none; 
}
.cursor-dot {
    width: 6px; height: 6px; background-color: var(--accent);
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-outline {
    width: 30px; height: 30px;
    border: 1px solid var(--accent);
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9998; pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
body.hovering .cursor-outline {
    width: 50px; height: 50px; background-color: rgba(255, 198, 62, 0.1);
    mix-blend-mode: difference;
}

/* 2. SCROLL TO TOP */
.scroll-top-btn {
    position: fixed; bottom: 3rem; right: 3rem;
    width: 44px; height: 44px; 
    border-radius: 0px; 
    background: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    cursor: none; z-index: 90; opacity: 0; transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.scroll-top-btn svg { width: 20px; height: 20px; }
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* 3. NEW EDITORIAL LOADER */
.loader-screen {
    position: fixed; inset: 0; background: #000; z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    /* CHANGED TO WHITE TEXT FOR EDITORIAL LOOK */
    color: #fff; 
}
.loader-content { text-align: center; }
.loader-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.loader-meta {
    font-family: var(--font-data);
    font-size: 0.8rem;
    color: var(--subtle-ink);
    letter-spacing: 0.1em;
}
.sep { margin: 0 0.5rem; color: var(--accent); }


/* 4. BACKGROUND & UTILS */
.noise-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.07;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg"); mix-blend-mode: overlay;
}
.curtain-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #000; }
.curtain-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.1); filter: blur(20px) grayscale(100%);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
    will-change: opacity, transform;
}
.curtain-img.active-project { opacity: 0.3; transform: scale(1); filter: blur(0px) grayscale(0%); }
.curtain-img.default-visible { opacity: 0.3; transform: scale(1); filter: blur(20px) grayscale(100%); }
.vignette { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at center, transparent 10%, #050505 120%); }

.glass-panel {
    background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-radius: 4px;
}

/* 5. NAV (UPDATED WHITE BUTTON) */
.hud-nav {
    position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%);
    width: 92%; max-width: 1400px; padding: 0.8rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center; z-index: 100;
    background: rgba(10, 10, 10, 0.6); border: 1px solid rgba(255,255,255,0.05); border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hud-nav.scrolled {
    top: 0; width: 100%; border-radius: 0; background: rgba(5, 5, 5, 0.95);
    border: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1rem 1.5rem;
}
.nav-logo { height: 22px; width: auto; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 8px; box-shadow: 0 0 10px var(--accent); }

/* WHITE NAV BUTTON */
.nav-btn { 
    font-weight: 700; 
    letter-spacing: -0.02em; 
    color: #ffffff; /* FORCED WHITE */
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.3s; 
}
.nav-btn:hover { opacity: 0.7; }

/* 6. HERO */
main { position: relative; z-index: 10; width: 100%; overflow: hidden; }
.hero-section {
    min-height: 100vh; width: 100%; display: flex; flex-direction: column;
    justify-content: center; padding: 12vh var(--space-md) 10vh; 
    max-width: 1600px; margin: 0 auto;
}
.mega-type {
    font-family: var(--font-display); font-size: clamp(3rem, 9vw, 8rem); 
    line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; font-weight: 800;
    margin-bottom: 3rem; width: 100%;
}
.indent { margin-left: 8vw; display: block; color: var(--accent); }
.hero-meta {
    display: flex; justify-content: space-between; align-items: flex-end; width: 100%;
    padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); flex-wrap: wrap; gap: 2rem;
}
.hero-meta p { max-width: 450px; font-size: 1rem; line-height: 1.6; color: var(--subtle-ink); }

/* MINIMAL BOLD BUTTON */
.btn-terminal {
    background: transparent; color: var(--ink); border: 2px solid #fff;
    padding: 1.2rem 2.5rem; text-align: center; text-decoration: none; font-family: var(--font-data);
    text-transform: uppercase; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; display: block; transition: all 0.3s;
}
.btn-terminal:hover { background: #fff; color: #000; border-color: #fff; }

/* 7. MARQUEE & SERVICES */
.marquee-section {
    width: 100%; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
    padding: 2rem 0; overflow: hidden; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
    margin-bottom: var(--space-xl); max-width: 100vw;
}
.marquee-track { width: 100%; display: flex; overflow: hidden; }
.marquee-content { display: flex; animation: marquee 30s linear infinite; flex-shrink: 0; min-width: 100%; }
.marquee-content span {
    font-family: var(--font-display); font-weight: 800; font-size: 2rem;
    color: #444; margin: 0 2rem; letter-spacing: -0.02em; white-space: nowrap; transition: 0.3s;
}
.marquee-content span:hover { color: var(--ink); }
.marquee-content .divider { color: var(--accent); position: relative; top: -5px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

.services-section { padding: 0 0 var(--space-xl); max-width: 1400px; margin: 0 auto; }
.section-header { 
    display: flex; justify-content: space-between; padding: 0 var(--space-md) 2rem; 
    border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 3rem; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--subtle-ink);
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; padding: 0 var(--space-md); }
.service-item { padding: 2.5rem; transition: border-color 0.3s; }
.service-item:hover { border-color: var(--accent); }
.service-item h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--accent); margin-bottom: 1.5rem; }
.service-item ul { list-style: none; }
.service-item li { font-size: 0.9rem; color: var(--subtle-ink); margin-bottom: 0.8rem; padding-left: 1rem; border-left: 1px solid #333; transition: 0.3s; }
.service-item:hover li { border-left-color: var(--accent); color: var(--ink); }

/* 8. PROJECTS */
.list-section { padding: 0 0 var(--space-xl); max-width: 1400px; margin: 0 auto; }
.project-item {
    display: block; position: relative; padding: var(--space-lg) var(--space-md); 
    border-bottom: 1px solid rgba(255,255,255,0.1); text-decoration: none; color: #fff;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.p-title {
    font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700; line-height: 1; margin: 0.8rem 0; text-transform: uppercase; transition: color 0.3s;
}
.p-meta { color: var(--accent); font-size: 0.8rem; margin-bottom: 0.5rem; display: block; letter-spacing: 0.1em; }
.arrow { display: inline-block; transition: transform 0.4s; margin-left: 1rem; opacity: 0; }
@media (hover: hover) {
    .project-item:hover { 
        border-color: rgba(255, 198, 62, 0.5); padding-left: calc(var(--space-md) + 20px); 
        background: linear-gradient(90deg, rgba(255, 198, 62, 0.05) 0%, transparent 100%);
    }
    .project-item:hover .p-title { color: var(--accent); }
    .project-item:hover .arrow { transform: translateX(20px) rotate(-45deg); opacity: 1; }
}

/* 9. PROFILE & CONTACT */
.testimonials-section { padding: 0 0 var(--space-xl); max-width: 1400px; margin: 0 auto; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; padding: 0 var(--space-md); }
.review-card { padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; }
.stars { color: var(--accent); margin-bottom: 1rem; letter-spacing: 2px; }
.review-text { font-size: 0.95rem; line-height: 1.6; color: #ccc; margin-bottom: 2rem; }
.review-author strong { display: block; color: #fff; font-family: var(--font-display); }

.profile-section { padding: var(--space-lg) var(--space-md) var(--space-xl); background: #050505; position: relative; z-index: 2; border-top: 1px solid #111; }
.profile-content { max-width: 1400px; margin: 0 auto; }
.profile-header h2 { font-family: var(--font-display); font-size: clamp(3.5rem, 11vw, 10rem); line-height: 0.8; color: #fff; margin-bottom: 4rem; letter-spacing: -0.04em; }
.profile-grid-new { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.img-container { aspect-ratio: 4/5; width: 100%; max-width: 500px; border: 1px solid #333; overflow: hidden; }
.img-container img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.img-container:hover img { filter: grayscale(0%); }
.bio-container { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.bio-text { font-size: 1.25rem; line-height: 1.6; color: #bbb; margin-bottom: 3rem; max-width: 600px; }
.stats-row { display: flex; gap: 4rem; margin-bottom: 4rem; padding-top: 2rem; border-top: 1px solid #222; }
.stat .val { font-family: var(--font-display); font-size: 3rem; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.stat .label { font-size: 0.8rem; letter-spacing: 0.1em; color: #666; }
.contact-links { margin-top: 2rem; }
.social-row { display: flex; gap: 2rem; margin-top: 1.5rem; }
.social-link { color: var(--subtle-ink); text-decoration: none; font-size: 0.9rem; transition: 0.3s; border-bottom: 1px solid transparent; }
.social-link:hover { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* FOOTER */
.site-footer { border-top: 1px solid #222; padding: 2rem var(--space-md); background: #000; display: flex; justify-content: space-between; font-size: 0.7rem; color: #555; letter-spacing: 0.05em; z-index: 20; position: relative; }

/* MEDIA QUERIES */
@media(max-width: 900px) {
    .profile-grid-new { grid-template-columns: 1fr; gap: 3rem; }
    .img-container { max-width: 100%; aspect-ratio: 1/1; }
    .img-container img { filter: grayscale(0%); } 
    .stats-row { gap: 2rem; justify-content: space-between; }
    .stat .val { font-size: 2.2rem; }
}
@media(max-width: 768px) {
    .cursor-dot, .cursor-outline, .scroll-top-btn { display: none !important; }
    body { cursor: auto; }
    .hero-section { justify-content: center; padding-top: 15vh; overflow: hidden; }
    .mega-type { font-size: 10vw; line-height: 0.95; margin-bottom: 2rem; }
    .indent { margin-left: 0; }
    .hero-meta { flex-direction: column; align-items: flex-start; border-top: none; }
    .glass-panel { backdrop-filter: none !important; background: rgba(15, 15, 15, 0.95); }
    .hud-nav { padding: 0.6rem 1rem; width: 95%; }
    .hud-nav.scrolled { padding: 0.8rem 1rem; }
    .nav-logo { height: 16px; }
    .site-footer { flex-direction: column; gap: 1rem; text-align: center; }
    .btn-terminal { width: 100%; }
}