﻿:root {
    --bg: #000000;
    --fg: #E7E7E7;
    --accent: #FF5C00;
    --muted: #9A9A9A;

    --font-main: 'Inter', sans-serif;

    /* REFINED FLUID TYPOGRAPHY */
    --text-massive: clamp(2.5rem, 8vw, 7rem);
    --text-xl: clamp(2rem, 6vw, 5rem);
    --text-lg: clamp(1.8rem, 4vw, 3rem);
    --text-md: 1.25rem;
    --text-sm: 0.9rem;

    /* FLUID SPACING */
    --section-padding: clamp(4rem, 10vw, 10rem);
    --container-padding: clamp(1.5rem, 5vw, 3rem);
}

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

html {
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor used instead */
}

body.is-touch {
    cursor: auto !important;
}

body.is-touch .cursor,
body.is-touch .cursor-blur {
    display: 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;
}

.cursor-blur {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 92, 0, 0.15) 0%, transparent 70%);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    filter: blur(20px);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-minimal {
    position: fixed;
    top: 3rem;
    right: 3rem;
    width: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3rem;
    z-index: 1000;
}

.nav-logo a {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo-digit {
    color: var(--fg);
    display: inline-block;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
    align-items: flex-end;
}

.nav-links li {
    font-size: var(--text-sm);
    position: relative;
    overflow: hidden;
    line-height: 1.2em;
    height: 1.2em;
}

.nav-links a {
    color: var(--fg);
    text-decoration: none;
    font-weight: 700;
    font-size: inherit;
    text-transform: uppercase;
    display: block;
    /* Expand hit-area with padding, compensate with negative margin */
    padding: 1.4rem 0.8rem;
    margin: -1.4rem -0.8rem;
}

.nav-links a span {
    display: block;
    transition: transform 0.35s cubic-bezier(0.7, 0, 0.3, 1);
    line-height: 1.2em;
}

.nav-links a::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--accent);
    line-height: 1.2em;
    transform: translateY(105%);
    transition: transform 0.35s cubic-bezier(0.7, 0, 0.3, 1);
    pointer-events: none;
    font-weight: 700;
    font-size: inherit;
    text-transform: uppercase;
    text-align: right;
}

.nav-links li:hover a span {
    transform: translateY(-105%);
}

.nav-links li:hover a::after {
    transform: translateY(0);
}

/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    /* Above nav links */
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--fg);
    position: absolute;
    right: 5px;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease, opacity 0.3s ease;
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hamburger Active State */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-minimal {
        top: 1.5rem;
        right: 1.5rem;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 1.5rem;
    }

    .nav-logo {
        margin-right: auto;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
        z-index: -1;
    }

    .nav-links.nav-open {
        transform: translateX(0);
    }

    .nav-links li {
        font-size: 2rem;
    }
}

/* ============================================
   SOCIAL SIDEBAR
   ============================================ */

.social-sidebar {
    position: fixed;
    left: 3rem;
    bottom: 3rem;
    z-index: 1000;
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links-vertical::after {
    content: '';
    display: block;
    width: 1px;
    height: 5rem;
    background: var(--muted);
    margin-top: 0.5rem;
    opacity: 0.4;
}

.social-links-vertical a {
    color: var(--muted);
    font-size: 1.1rem;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.social-links-vertical a:hover {
    color: var(--accent);
    transform: translateY(-3px) scale(1.2);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-container {
    text-align: center;
    width: 100%;
}

.hero-text-wrapper {
    display: grid;
    place-items: center;
    position: relative;
    width: 100%;
}

.hero-text-wrapper>* {
    grid-area: 1 / 1;
    width: 100%;
}

.massive-text {
    font-size: var(--text-massive);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
    /* Adjusted from 0.82 for better mobile stacking */
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    user-select: none;
    color: var(--fg);
    width: 100%;
    padding: 0 var(--container-padding);
}

.massive-text .line {
    display: block;
    height: auto;
    /* Changed from fixed 1.1em to auto for better wrapping */
    min-height: 1.1em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
}

.massive-text .line.accent {
    color: var(--accent) !important;
}

.hero-reveal-text {
    pointer-events: none;
    z-index: 2;
    /* Fixed to viewport so no parent element can clip the circle */
    position: fixed;
    inset: 0;
    clip-path: circle(var(--mask-size, 0px) at var(--mask-pos-x, 0px) var(--mask-pos-y, 0px));
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* Reveal layer specific color overrides to ensure opposite pattern */
.hero-reveal-text .line {
    color: var(--fg) !important;
}

.hero-reveal-text .line.accent {
    color: var(--accent) !important;
}

.hero-main-text {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Punch hole using sharp-edged pixel gradient */
    -webkit-mask-image: radial-gradient(circle 150px at var(--mask-pos-x, 0px) var(--mask-pos-y, 0px),
            rgba(0, 0, 0, 0) 0px,
            rgba(0, 0, 0, 0) 150px,
            rgba(0, 0, 0, 1) 151px);
    mask-image: radial-gradient(circle 150px at var(--mask-pos-x, 0px) var(--mask-pos-y, 0px),
            rgba(0, 0, 0, 0) 0px,
            rgba(0, 0, 0, 0) 150px,
            rgba(0, 0, 0, 1) 151px);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.line.accent {
    color: var(--accent) !important;
}


.hero-main-text {
    z-index: 1;
}

@media (max-width: 480px) {
    :root {
        --text-massive: clamp(1.8rem, 8vw, 2.5rem);
        --section-padding: 3rem;
        --container-padding: 1rem;
    }

    .massive-text {
        letter-spacing: -0.02em;
        line-height: 1.1;
    }

    .hero-reveal-text {
        display: none !important;
        /* Reveal layer is too complex/distracting on small touch screens */
    }

    .hero-main-text {
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .scroll-prompt {
        bottom: 1.5rem;
    }

    .hero-resume-wrapper {
        display: none !important;
    }
}

.hero-sub-text {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--muted);
    letter-spacing: 0.3em;
    margin-top: 2rem;
}

.scroll-prompt {
    position: absolute;
    bottom: 3rem;
    color: var(--muted);
}

.scroll-down-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.scroll-down-wrapper span {
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    animation: none !important;
    /* Text does NOT animate */
}

.scroll-arrow {
    font-size: 1.2rem;
    color: var(--accent);
    display: block;
    animation: scrollPullDown 1.8s ease-in-out infinite;
    animation-delay: 0s;
}

@keyframes scrollPullDown {
    0% {
        transform: translateY(0);
        opacity: 0.4;
    }

    60% {
        transform: translateY(8px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0.4;
    }
}

.hero-resume-wrapper {
    position: absolute;
    bottom: 3.2rem;
    right: 5%;
    z-index: 10;
}

.hero-resume-link {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.hero-resume-link i {
    color: var(--accent);
    font-size: 1.3rem;
}

.hero-resume-link:hover {
    color: var(--accent);
    letter-spacing: 6px;
    transform: skewX(-5deg) translateX(-10px);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 8rem 0;
}

/* Layout: vertical label | separator | content */
.projects-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.projects-heading {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-shrink: 0;
    padding-right: 3rem;
    padding-top: 0.5rem;
}

.projects-heading::after {
    content: '';
    display: block;
    width: 1px;
    height: 400px;
    background: var(--muted);
    opacity: 0.3;
}

.projects-content {
    flex: 1;
    padding-left: 2rem;
}

/* Project cards */
.proj-card {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.proj-card:last-child {
    border-bottom: none;
}

.proj-card:hover {
    padding-left: 0.5rem;
    border-left: 3px solid var(--accent);
}

.proj-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--fg);
    opacity: 0.08;
    line-height: 1;
    flex-shrink: 0;
    min-width: 60px;
}

.proj-body {
    flex: 1;
}

.proj-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--fg);
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.proj-role {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

.proj-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.proj-preview {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.proj-details {
    height: 0;
    overflow: hidden;
}

.proj-details ul {
    list-style: none;
    padding: 0.5rem 0;
}

.proj-details li {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
    padding: 0.3rem 0;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 92, 0, 0.15);
    margin-bottom: 0.4rem;
}


/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.about-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* Changed from center to match others */
    gap: 0;
    width: 100%;
}

.about-heading {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-shrink: 0;
    padding-right: 3rem;
    padding-top: 1rem;
    /* Added padding-top to align with line */
}

.section-label {
    font-weight: 900;
    font-size: 2rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

/* Vertical separator line */
.about-heading::after {
    content: '';
    display: block;
    width: 1px;
    height: 280px;
    background: var(--muted);
    opacity: 0.3;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: flex-end;
}

.about-text {
    flex: 1;
}

.about-side-actions {
    flex-shrink: 0;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
}

.profile-img-container {
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 50%;
    border: none;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    background: transparent;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.profile-img-container:hover {
    transform: translateY(-5px);
}

.profile-img-container:hover .profile-img {
    scale: 1.1;
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
}

.about-lead {
    font-weight: 400;
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    line-height: 1.5;
    color: var(--fg);
    margin-bottom: 2rem;
}

.about-lead strong {
    color: var(--fg);
    font-weight: 700;
}

.about-body {
    font-weight: 400;
    font-size: var(--text-md);
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.about-body strong {
    color: var(--fg);
    font-weight: 600;
}

.accent-text {
    color: var(--accent);
    font-weight: 700;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--fg);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 92, 0, 0.2);
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */

.experience {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 8rem 0;
}

/* Layout: vertical label | separator | content (matching About Me) */
.experience-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.experience-heading {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-shrink: 0;
    padding-right: 3rem;
    padding-top: 1rem;
}

.experience-heading::after {
    content: '';
    display: block;
    width: 1px;
    height: 400px;
    background: var(--muted);
    opacity: 0.3;
}

.experience-content {
    flex: 1;
    padding-left: 2rem;
}

/* Company group */
.company-group {
    margin-bottom: 1rem;
}

.company-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.company-name {
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--fg);
    letter-spacing: 0.05em;
    cursor: pointer;
}

.company-period {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 400;
}

.company-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 1.2rem 0;
}

/* Timeline entry */
.exp-entry {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 1.5rem;
    transition: all 0.3s ease;
}

/* Dot marker + connecting line */
.exp-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 0.4rem;
}

.exp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.exp-current .exp-dot {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(255, 92, 0, 0.5);
}

.exp-line {
    width: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    min-height: 20px;
}

/* Card */
.exp-card {
    flex: 1;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.exp-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--accent);
    transform: translateX(4px);
    box-shadow: -4px 0 20px rgba(255, 92, 0, 0.05);
}

/* Glow dot on card hover */
.exp-entry:hover .exp-dot {
    box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(255, 92, 0, 0.3);
}

.exp-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
}

.exp-date {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 400;
}

.exp-badge {
    background: var(--accent);
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.1em;
}

.exp-role {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--fg);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.exp-preview {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

/* Success Metrics */
.exp-metrics {
    display: flex;
    gap: 1.2rem;
    margin: 1.2rem 0;
    flex-wrap: wrap;
}

.metric-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--accent);
    padding: 0.6rem 1rem;
    border-radius: 0 4px 4px 0;
    transition: transform 0.3s ease, background 0.3s ease;
    min-width: 100px;
}

.metric-item:hover {
    background: rgba(255, 92, 0, 0.05);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.metric-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg);
    opacity: 0.7;
    margin-top: 0.2rem;
}

/* Expandable details */
.exp-details {
    height: 0;
    overflow: hidden;
}

.exp-details ul {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0;
}

.exp-details li {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.exp-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.exp-env {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.5rem;
}

/* Toggle button */
.exp-toggle {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.2s;
}

.exp-toggle:hover {
    opacity: 0.7;
}

.exp-toggle i {
    font-size: 0.65rem;
    transition: transform 0.3s;
}

.exp-toggle.active i {
    transform: rotate(180deg);
}

/* Promotion ladder */
.promotion-ladder {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0 1rem 0;
    margin-left: 4px;
}

.promotion-badge {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.15em;
    white-space: nowrap;
}

/* ============================================
   SKILLS MARQUEE
   ============================================ */

/* ============================================
   SKILLS BENTO GRID
   ============================================ */
.skills {
    padding: 4rem 0;
    background: var(--bg);
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

/* Badge-based skills layout */
.skills-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.skills-heading {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-shrink: 0;
    padding-right: 3rem;
    padding-top: 0.5rem;
}

.skills-heading::after {
    content: '';
    display: block;
    width: 1px;
    height: 300px;
    background: var(--muted);
    opacity: 0.3;
}

.skills-content {
    flex: 1;
    padding-left: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: min-content;
    gap: 1.5rem;
    align-content: flex-start;
    perspective: 1000px;
    /* Enable 3D tilt */
}

/* Bento Sizing */
.bento-small {
    grid-column: span 1;
}

.bento-medium {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-large {
    grid-column: span 2;
}

.bento-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    height: 100%;
    box-sizing: border-box;
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 92, 0, 0.2);
}

.bento-item .category-label {
    transform: translateZ(20px);
    /* Lift label in 3D */
}

.bento-item .skill-chips {
    transform: translateZ(10px);
    /* Lift chips in 3D */
}


.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.badge-row img {
    height: 22px;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: default;
}

.badge-row img:hover {
    transform: scale(1.15);
    filter: brightness(1.3);
}

/* Skill bar divisions */
.skill-category {
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    /* slightly more opaque */
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.2rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent);
}

/* Staggered bar widths for visual rhythm */
/* Removed staggered widths */

.category-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--fg);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    display: block;
    opacity: 0.9;
    /* high visibility */
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Informational tags — hover effect visible but not clickable */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.chip img {
    height: 14px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Make black SVGs white */
    opacity: 0.8;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.chip:hover {
    color: var(--fg);
    border-color: rgba(255, 92, 0, 0.3);
    background: rgba(255, 92, 0, 0.1);
    transform: translateY(-2px);
}

.chip:hover img {
    transform: scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 92, 0, 0.5));
    opacity: 1;
}

.chip.highlight {
    color: var(--fg);
    border-color: rgba(255, 92, 0, 0.3);
    background: rgba(255, 92, 0, 0.08);
}

.chip.highlight:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 92, 0, 0.15);
}

/* removed bento-visual visual logic */

/* ============================================
   PROJECT MODAL SYSTEM
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transform: translateY(50px);
    opacity: 0;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--fg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}

.modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.modal-content {
    padding: 3rem;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-meta {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.modal-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.5;
    font-family: 'Inter', sans-serif;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--fg);
    line-height: 1.1;
}

.modal-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.modal-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.modal-body p {
    margin-bottom: 1.5rem;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
}

.modal-body li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.modal-footer {
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 1.5rem;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--accent);
    color: #000;
}

.modal-link.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--fg);
}

.modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.modal-link.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.proj-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

.case-study-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.case-study-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 92, 0, 0.3);
}

.case-study-btn:hover i {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .proj-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .case-study-btn {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }

    .modal-content {
        padding: 2rem;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-footer {
        flex-direction: column;
        padding: 1.5rem 2rem;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

/* ============================================
   CONTACT SECTION (IMMERSIVE)
   ============================================ */
.contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0a0a0a 0%, #000000 100%);
}

/* Noise Texture Overlay */
.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.contact-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    position: relative;
    z-index: 2;
}

.contact-heading {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    flex-shrink: 0;
    padding-right: 3rem;
    padding-top: 1rem;
}

.contact-heading::after {
    content: '';
    display: block;
    width: 1px;
    height: 400px;
    background: var(--muted);
    opacity: 0.3;
}

.contact-content {
    flex: 1;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.contact-sub {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.4em;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-massive {
    margin-bottom: 4rem;
}

.massive-link {
    font-weight: 900;
    font-size: var(--text-xl);
    color: var(--fg);
    text-decoration: none;
    letter-spacing: -4px;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    display: inline-block;
}

.massive-link:hover {
    color: var(--accent);
    letter-spacing: 4px;
    transform: skewX(-5deg);
}

.contact-social-links {
    display: flex;
    gap: 3rem;
}

.contact-social-links a {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.contact-social-links a:hover {
    opacity: 1;
    color: var(--accent);
    transform: scale(1.1);
}

/* AI Agentic Terminal Styles */
.terminal-container {
    margin-top: 4rem;
    perspective: 1000px;
    width: 100%;
}

.terminal {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
    width: 100%;
    max-width: 600px;
}

.terminal:hover {
    border-color: var(--accent);
    box-shadow: 0 40px 100px rgba(255, 92, 0, 0.1);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    height: 250px;
    overflow-y: auto;
    scrollbar-width: none;
    text-align: left;
    /* Critical refinement */
}

.terminal-body::-webkit-scrollbar {
    display: none;
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
}

.prompt {
    color: var(--accent);
    font-weight: 700;
    margin-right: 0.8rem;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--fg);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.terminal-line.command {
    color: #fff;
}

.terminal-line.system {
    color: #888;
}

.terminal-line.success {
    color: var(--accent);
}

/* Mouse-following glow effect */
.contact-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 92, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
    transition: opacity 0.5s ease;
    left: var(--contact-x, 50%);
    top: var(--contact-y, 50%);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 8rem 0;
    text-align: center;
    border-top: 1px solid var(--muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-links a {
    color: var(--fg);
    text-decoration: none;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.footer-bottom p {
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.1em;
}

/* ============================================
   RECOMMENDATIONS
   ============================================ */

.recommendations {
    padding: 12rem 0 5rem 0;
    /* Increased top padding to avoid nav */
    min-height: 100vh;
    box-sizing: border-box;
    /* Fit within screen */
    display: flex;
    align-items: center;
    /* Prevent expansion */
}

.reco-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* Aligned to top within the padded safe zone */
    gap: 0;
    width: 100%;
    height: 100%;
}

.reco-heading {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    flex-shrink: 0;
    padding-right: 3rem;
    padding-top: 2rem;
}

.reco-heading::after {
    content: '';
    display: block;
    width: 1px;
    height: 50vh;
    /* Dynamic line height */
    background: var(--muted);
    opacity: 0.3;
}

.reco-content {
    flex: 1;
    padding-left: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center-align text content vertically */
    gap: 4rem;
    height: 100%;
}

.reco-main {
    flex: 1;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.active-quote {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--fg);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    min-height: 10rem;
}


.active-info h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--fg);
    margin-bottom: 0.1rem;
}

.reco-link {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s;
}

.reco-link:hover {
    color: var(--accent);
    background-size: 100% 2px;
}

.active-info p {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.reco-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Tightened gap */
    justify-content: center;
    width: 100px;
    height: 100%;
}

.reco-btn {
    width: 56px;
    /* Significantly reduced size */
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    overflow: hidden;
    opacity: 0.4;
    filter: grayscale(1);
}

.reco-btn:hover {
    opacity: 0.8;
    filter: grayscale(0.5);
}

.reco-btn.active {
    opacity: 1;
    filter: grayscale(0);
    border-color: var(--accent);
    transform: scale(1.1);
}

.reco-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reco-arrow-btn {
    display: none;
    /* Hidden on desktop */
    background: transparent;
    border: none;
    color: var(--fg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.reco-arrow-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .reco-layout {
        flex-direction: column;
    }

    .reco-heading {
        flex-direction: row;
        writing-mode: horizontal-tb;
        transform: none;
        padding-right: 0;
        padding-bottom: 2rem;
        gap: 2rem;
    }

    .reco-heading::after {
        width: 100px;
        height: 1px;
    }

    .reco-content {
        padding-left: 0;
        flex-direction: column;
        width: 100%;
    }

    .active-quote {
        font-size: 1rem;
        min-height: auto;
        word-wrap: break-word;
        word-break: break-word;
        width: 100%;
        max-width: 28ch;
        /* Restrict to approx 4-5 words per line */
        padding-right: 1rem;
        margin: 0 auto 2rem 0;
        /* Align left but allow natural wrapping */
    }

    .reco-main {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .reco-nav {
        flex-direction: row;
        margin-top: 3rem;
        width: 100%;
        justify-content: center;
    }
}

cite {
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   EXPERIENCE REFINEMENT (Journey)
   ============================================ */

.timeline-item[data-promoted="true"] .details h4::after {
    content: "PROMOTED";
    font-size: 0.6rem;
    background: var(--accent);
    color: var(--bg);
    padding: 2px 8px;
    margin-left: 1rem;
    vertical-align: middle;
    border-radius: 2px;
}

.walking-socks-container {
    position: absolute;
    left: 40px;
    top: 0;
    height: 100%;
    width: 40px;
    z-index: 5;
    pointer-events: none;
}

.socks-svg {
    width: 100%;
    transform: translateY(-50%);
}

html.lenis {
    height: auto;
}

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

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ============================================
   GLOBAL RESPONSIVE SECTION LAYOUTS
   ============================================ */

@media (max-width: 992px) {

    .about-layout,
    .experience-layout,
    .projects-layout,
    .skills-layout,
    .contact-layout {
        flex-direction: column;
    }

    .skills-content {
        grid-template-columns: 1fr;
        padding-left: 0;
        margin-top: 2rem;
    }

    .bento-small,
    .bento-medium,
    .bento-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .exp-metrics {
        gap: 0.8rem;
    }

    .metric-item {
        min-width: calc(50% - 0.4rem);
        flex: 1;
    }

    .about-heading,
    .experience-heading,
    .projects-heading,
    .skills-heading,
    .contact-heading {
        flex-direction: row;
        writing-mode: horizontal-tb;
        transform: none;
        padding-right: 0;
        padding-bottom: 2rem;
        gap: 2rem;
    }

    /* Target the rotated text specifically */
    .about-heading .section-label,
    .experience-heading .section-label,
    .projects-heading .section-label,
    .skills-heading .section-label,
    .contact-heading .section-label,
    .reco-heading .section-label {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .about-heading::after,
    .experience-heading::after,
    .projects-heading::after,
    .skills-heading::after,
    .contact-heading::after {
        width: 100%;
        max-width: 100px;
        height: 1px;
    }

    .about-content,
    .experience-content,
    .projects-content,
    .skills-content,
    .contact-content {
        padding-left: 0;
        width: 100%;
    }
}

/* ============================================
   MOBILE SPECIFIC REFINEMENTS
   ============================================ */
@media (max-width: 768px) {

    /* Hide Social Sidebar on scroll by making it absolute to Hero */
    .social-sidebar {
        position: absolute;
        top: 100vh;
        transform: translateY(calc(-100% - 3rem));
        bottom: auto;
    }

    /* Reduce About section typography */
    .about-lead {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .about-body {
        font-size: 0.85rem;
    }

    /* Hide About Profile Image */
    .profile-img-container {
        display: none !important;
    }

    /* Single column for skills */
    .skills-content {
        grid-template-columns: 1fr;
    }

    /* Shrink section headings to prevent text bleeding out */
    .section-label {
        font-size: 1.3rem;
        letter-spacing: 0.15em;
    }

    /* Prevent GET IN TOUCH text hover jumping on mobile */
    .contact-massive .massive-link {
        letter-spacing: 4px;
        color: var(--fg);
    }

    /* Show carousel arrows and hide avatars */
    .reco-arrow-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .reco-nav .avatar-btn {
        display: none !important;
    }

    .reco-nav {
        gap: 3rem;
        justify-content: center;
        width: 100%;
    }

    /* Center the resume button in About Me section */
    .about-side-actions {
        align-items: center;
        width: 100%;
    }
}