:root {
    --bg: #111111;
    --text: #e1e1e1;
    --text-muted: #888888;
    --accent: #D2B48C;
    /* Beige/Tan from hoodie */
    --neon: #00F0FF;
    /* Cyan from graffiti */

    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
}

/* Enforce custom cursor on everything */
a,
button,
.scroll-indicator,
.nav-item,
.work-item,
.fixed-resume {
    cursor: none !important;
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

@media (max-width: 768px) {

    .cursor,
    .cursor-follower {
        display: none !important;
    }
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

/* Canvas Hero */
#gl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0.8;
    /* Let bg blend */
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 8rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.8;
    cursor: pointer;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-10px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 8vw;
    font-weight: 600;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--accent);
    /* mix-blend-mode: color-dodge; Removed as it makes text invisible on dark bg */
}

.subtitle {
    font-size: 1.2rem;
    margin-top: 2rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* About */
.section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    display: inline-block;
}

.big-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 3rem;
}

.highlight {
    color: var(--accent);
}

.stats {
    display: flex;
    gap: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .num {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--neon);
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Work */
.work-list {
    position: relative;
    z-index: 2;
}

.work-list:hover .work-item {
    opacity: 0.3;
}

.work-item {
    border-top: 1px solid #333;
    padding: 3rem 0;
    transition: all 0.3s;
    cursor: none;
    /* Hide cursor to show custom one or just aesthetics */
}

.work-item:hover {
    background: transparent;
    padding-left: 2rem;
    opacity: 1 !important;
}

.project-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 250px;
    background-color: #222;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 99;
    opacity: 0;
    transform: scale(0.8);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .project-preview {
        display: none !important;
    }

    .work-item {
        opacity: 1 !important;
        padding-left: 0 !important;
    }

    .work-item:hover {
        padding-left: 0;
        background: transparent;
    }
}

.work-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.work-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
}

.role {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.desc {
    color: var(--text-muted);
    max-width: 600px;
}

/* Interests */
.interest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.interest-text h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: var(--text);
}

.interest-images {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.image-card img {
    width: 100%;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s;
    filter: grayscale(100%) contrast(1.2);
}

.image-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1);
}

@media (max-width: 768px) {
    .interest-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Skills Marquee */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    border: none;
    padding: 4rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.track {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.content {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    color: #1a1a1a;
    text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.03), 1px 1px 0 rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: -2px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
.footer {
    padding: 5rem 0;
    text-align: center;
}

.footer h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.email-link {
    font-size: 3rem;
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-heading);
    display: block;
    margin-bottom: 3rem;
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--neon);
}

.socials {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #333;
    padding-top: 2rem;
    color: var(--text-muted);
}

.socials a {
    color: var(--text);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 15vw;
    }

    .big-text {
        font-size: 2rem;
    }

    .email-link {
        font-size: 1.5rem;
        word-break: break-all;
    }

    .stats {
        gap: 2rem;
    }
}

/* Side Navigation */
.side-nav {
    position: fixed;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
    align-items: flex-end;
}

.nav-item {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
    padding-right: 20px;
    transition: all 0.3s;
    cursor: none !important;
}

.nav-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-item:hover,
.nav-active {
    color: var(--text);
    padding-right: 30px;
}

.nav-item:hover::after,
.nav-active::after {
    width: 20px;
}

/* Cinematic Grain Overlay Removed */

/* Fixed Resume Link */
.fixed-resume {
    position: fixed;
    top: 2rem;
    right: 3rem;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 1000;
    transition: color 0.3s;
    mix-blend-mode: difference;
}

.fixed-resume:hover {
    color: var(--accent);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 0 5%;
        justify-content: center;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 15vw;
    }

    .side-nav {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: none;
        flex-direction: row;
        justify-content: space-around;
        background: rgba(17, 17, 17, 0.9);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-top: 1px solid #333;
        align-items: center;
    }

    .nav-item {
        font-size: 0.7rem;
        padding-right: 0;
    }

    .nav-item::after {
        display: none;
    }

    .nav-item:hover,
    .nav-active {
        padding-right: 0;
        color: var(--accent);
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .interest-grid {
        grid-template-columns: 1fr;
    }

    .big-text {
        font-size: 1.8rem;
    }

    .fixed-resume {
        top: 1rem;
        right: 1rem;
    }
}