:root {
    --bg: #030303;
    --text: #fcfcfc;
    --accent: #f44849;
    --muted: #737373;
    --border: rgba(255, 255, 255, 0.15); 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none; 
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Helvetica Neue', Inter, Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- 1. MODERN PARTICLE BACKGROUND --- */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -3;
    background-color: var(--bg);
    pointer-events: none;
}

#mouse-glow {
    position: fixed;
    top: 0; left: 0;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(244, 72, 73, 0.04) 0%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -2;
    will-change: transform;
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.04"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: -1;
}

/* --- 2. DUAL-LAYER CUSTOM CURSOR --- */
#cursor-icon {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    background-image: url('68384fb10e12e8d4c16e38e5_cursor-default.svg');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-3px, -3px);
    transition: width 0.15s, height 0.15s, transform 0.15s;
}

#cursor-icon.text-mode {
    width: 27px; height: 27px;
    background-image: url('68384fb09ef00eb464b45496_cursor-text.svg');
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 30px; height: 30px;
    border: 2px solid var(--accent);
    background: rgba(244, 72, 73, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.cursor-ring.hovering {
    width: 70px; height: 70px;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.cursor-ring.text-hovering {
    opacity: 0.3; 
    width: 40px; height: 40px;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0; width: 100%;
    padding: 25px 5%;
    z-index: 1000;
    background: rgba(3, 3, 3, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}
nav { display: flex; gap: 40px; align-items: center; }
nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
}
nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }

/* --- Layout & Typography --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1; 
}
section {
    padding: 150px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: none;
    padding-top: 80px; 
}
h1 {
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: 1.1; 
    text-transform: uppercase;
    letter-spacing: -0.04em;
}
.hero p {
    margin-top: 30px;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 650px;
    color: var(--muted);
    line-height: 1.6;
}

/* --- MARQUEE --- */
.marquee-wrapper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    margin-bottom: 80px;
    display: flex; 
}
.marquee-track {
    display: flex;
    width: max-content; 
    animation: scroll-marquee 25s linear infinite;
}

.marquee-text {
    display: flex;
    align-items: center; 
    gap: 30px; 
    padding-right: 30px;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px; 
    line-height: 1.1; 
}

.m-filled {
    display: inline-block;
    color: var(--text);
    text-shadow: none;
    transition: all 0.4s ease;
}

.m-outlined {
    display: inline-block;
    color: var(--bg); 
    text-shadow: 
        -1px -1px 0 var(--muted),
         0px -1px 0 var(--muted),
         1px -1px 0 var(--muted),
         1px  0px 0 var(--muted),
         1px  1px 0 var(--muted),
         0px  1px 0 var(--muted),
        -1px  1px 0 var(--muted),
        -1px  0px 0 var(--muted);
    transition: all 0.4s ease;
}

/* Hover Invert Effect */
.interactive-marquee:hover .m-filled {
    color: var(--bg);
    text-shadow: 
        -1px -1px 0 var(--muted),
         0px -1px 0 var(--muted),
         1px -1px 0 var(--muted),
         1px  0px 0 var(--muted),
         1px  1px 0 var(--muted),
         0px  1px 0 var(--muted),
        -1px  1px 0 var(--muted),
        -1px  0px 0 var(--muted);
}
.interactive-marquee:hover .m-outlined {
    color: var(--text);
    text-shadow: none;
}

.marquee-star {
    display: inline-block;
    color: var(--accent);
    text-shadow: none;
    font-size: 0.8em;
    transition: transform 0.4s ease;
}
.interactive-marquee:hover .marquee-star {
    transform: scale(1.3) rotate(90deg);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- MODERN SECTION TITLES & SVG OUTLINES --- */
.modern-section-title {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-kicker {
    color: var(--accent);
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.modern-section-title h2 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.15; 
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text);
    font-weight: bold;
}

.outline-text {
    position: relative;
    color: transparent; 
    display: inline-block;
}

.outline-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; color: #000; 
    filter: url(#true-outline);
    pointer-events: none;
}

.outline-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; color: var(--text);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; 
}

.modern-section-title:hover .outline-text::after {
    opacity: 1;
}

/* --- EDITORIAL ASYMMETRIC GRID INTRO --- */
.editorial-intro {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 0;
    margin: 10vh 0 15vh 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.intro-left {
    padding: 60px 40px 60px 0;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center; 
    gap: 20px;
}

.intro-right {
    padding: 60px 0 60px 60px;
    display: flex;
    align-items: center;
}

.huge-type {
    font-size: clamp(3rem, 5.5vw, 5rem); 
    line-height: 0.95;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.ghost-word {
    color: rgba(255, 255, 255, 0.15); 
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.huge-type:hover .ghost-word {
    color: var(--accent); 
    text-shadow: 0 0 15px rgba(244, 72, 73, 0.4); 
}

.intro-paragraph {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.6;
    font-weight: 300;
    color: var(--muted);
    max-width: 800px;
}

/* --- PREMIUM CARD GRID LAYOUT --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 80px 40px; 
}

.project-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
}

.img-mask {
    width: 100%;
    aspect-ratio: 16/9; 
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
    background: #000;
    transform: translateZ(0); 
    transition: box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item:hover .img-mask {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.75);
}

.img-mask img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    transform: scale(1.08); 
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0.9; 
}

.project-item:hover .img-mask img {
    transform: scale(1); 
    opacity: 1; 
}

.project-meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px; 
}

.tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text); 
    letter-spacing: 1px;
    font-weight: 700;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 40px; 
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s ease;
}

.project-item:hover .tag {
    border-color: rgba(244, 72, 73, 0.3);
}

.project-meta h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: var(--accent); 
    transition: color 0.3s ease;
}

.project-item:hover .project-meta h3 {
    color: #ff6b6b; 
}

.project-meta p {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.play-link {
    margin-top: auto;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.play-link span {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item:hover .play-link {
    color: var(--accent);
}

.project-item:hover .play-link span {
    transform: translateX(8px);
}

/* --- PREMIUM EDITORIAL CALLOUT RIBBON --- */
.editorial-archive-ribbon {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid var(--border); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.archive-ribbon-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archive-ribbon-text h3 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
}

.archive-ribbon-btn {
    padding: 18px 40px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.3s ease;
}

.archive-ribbon-btn:hover {
    background: var(--text); 
    border-color: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
}

/* --- DYNAMIC MARKETPLACES --- */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.market-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 120%, var(--brand), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.market-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.market-card:hover::before {
    opacity: 0.15; 
}

.market-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
    z-index: 1;
}

.market-card:hover .market-icon-wrapper {
    transform: scale(1.1);
    background: var(--brand); 
}

.market-icon {
    width: 35px;
    height: 35px;
    filter: invert(1) opacity(0.6);
    transition: filter 0.4s ease;
}

.market-card:hover .market-icon {
    filter: invert(1) opacity(1); 
}

.market-info {
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.market-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.market-link-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    font-weight: 700;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.market-card:hover .market-link-text {
    color: var(--text);
    transform: translateX(5px); 
}

/* --- SCROLL SCRUB TRANSITION SECTION --- */
.quote-transition {
    padding: 180px 0;
    border-bottom: none; 
    display: flex;
    justify-content: center;
    text-align: center;
}
.scrub-text {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 1200px;
    
    color: rgba(255, 255, 255, 0.1); 
    background: linear-gradient(to right, var(--text) 50%, rgba(255,255,255,0.1) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
}

/* --- EXPERIENCE SECTION --- */
.experience-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.experience-item {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.4s ease, padding-left 0.4s ease, padding-right 0.4s ease;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
    padding-left: 20px;
    padding-right: 20px;
}

.exp-meta {
    color: var(--muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exp-meta span {
    display: block;
    margin-bottom: 5px;
}

.exp-role {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    line-height: 1.2; 
    margin-bottom: 10px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.experience-item:hover .exp-role {
    color: var(--accent);
}

.exp-company {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: bold;
}

.exp-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
}

/* --- Software Section --- */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.software-tile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none; 
}

.software-tile:hover {
    transform: translateY(-5px);
    background: rgba(244, 72, 73, 0.05); 
    border-color: rgba(244, 72, 73, 0.4); 
    box-shadow: 0 10px 30px rgba(244, 72, 73, 0.1);
}

.software-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.5);
    transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.software-tile:hover .software-icon {
    filter: brightness(0) invert(1) opacity(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    transform: scale(1.15);
}

.software-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

/* --- Open to Work & Contact Section --- */
.contact-section {
    text-align: center;
    padding: 200px 0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 40px;
}

.status-dot {
    width: 10px; height: 10px;
    background-color: #4ade80; 
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.contact-title {
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
}

.contact-desc {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--muted);
    max-width: 750px;
    margin-bottom: 60px;
    line-height: 1.6;
}

.contact-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bg);
    background: var(--text);
    padding: 20px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-5px);
    background: var(--accent);
    color: #fff;
}

.contact-btn.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.contact-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .editorial-intro {
        grid-template-columns: 1fr;
    }
    .intro-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 40px 0;
    }
    .intro-right {
        padding: 40px 0;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    .editorial-archive-ribbon {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        padding: 40px 0;
    }
    .experience-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }
    .experience-item:hover {
        padding-left: 10px;
        padding-right: 10px;
    }
    .modern-section-title h2 {
        font-size: 3.5rem;
    }
}