/* ==========================================================================
   Mohammad Jaber — Portfolio Design System
   Replicating: udaykaranam.framer.website
   Stack: Pure CSS (no frameworks)
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
    /* Colors */
    --bg-primary: #F3F3F3;
    --bg-surface: #FFFFFF;
    --bg-dark: #1A1A1A;
    --text-primary: #222222;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-inverse: #FFFFFF;
    --accent-green: #00D26A;
    --border-light: #E5E5E5;
    --btn-primary-bg: #000000;
    --btn-primary-text: #FFFFFF;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-hero: clamp(36px, 5vw, 56px);
    --fs-section: clamp(28px, 4vw, 40px);
    --fs-card-title: clamp(20px, 2.5vw, 24px);
    --fs-body: 16px;
    --fs-nav: 16px;
    --fs-small: 14px;
    --fs-name: 18px;

    /* Spacing */
    --container-max: 1080px;
    --container-px: 24px;
    --section-py: 80px;
    --card-radius: 24px;
    --nav-radius: 16px;
    --btn-radius: 12px;
    --img-radius: 16px;
    --tag-radius: 8px;

    /* Shadows */
    --shadow-nav: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
    --duration-fast: 200ms;
    --duration-normal: 300ms;
    --duration-slow: 600ms;
}

/* ---------- CSS Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--duration-fast) ease;
}

a:hover {
    opacity: 0.75;
}

button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ---------- Layout Utilities ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    box-sizing: border-box;
}

.section {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-24 {
    gap: 24px;
}

.gap-32 {
    gap: 32px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav-wrapper {
    position: sticky;
    top: 16px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 16px var(--container-px) 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border-radius: var(--nav-radius);
    padding: 8px 8px 8px 20px;
    box-shadow: var(--shadow-nav);
}

.nav__logo {
    display: flex;
    align-items: center;
    margin-right: 16px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.nav__logo-icon {
    width: 36px;
    height: 36px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav__link {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: var(--fs-nav);
    font-weight: 400;
    color: var(--text-primary);
    transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
    white-space: nowrap;
}

.nav__link:hover {
    background: var(--bg-primary);
    opacity: 1;
}

.nav__link--active {
    background: var(--bg-primary);
    font-weight: 500;
}

/* Mobile hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.nav__hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--duration-normal) ease, opacity var(--duration-fast) ease;
}

.nav__hamburger.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding-top: 100px;
    padding-bottom: 60px;
    text-align: center;
}

.hero__avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
}

.hero__identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: var(--fs-name);
    color: var(--text-primary);
}

.hero__separator {
    color: var(--text-muted);
    font-weight: 300;
}

.hero__title {
    font-size: var(--fs-hero);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto 20px;
}

.hero__subtitle {
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero__status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--fs-small);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.hero__scroll {
    display: flex;
    justify-content: center;
    animation: bounce-chevron 1.5s ease-in-out infinite;
}

.hero__scroll svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

@keyframes bounce-chevron {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    min-width: 160px;
    border: 1px solid transparent;
    border-radius: var(--btn-radius);
    font-size: var(--fs-body);
    font-family: var(--font-family);
    line-height: 1.6;
    box-sizing: border-box;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
    white-space: nowrap;
}

.btn:hover {
    transform: scale(1.02);
    opacity: 1;
}

.btn--primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn--primary:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn--secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn--secondary:hover {
    border-color: var(--text-muted);
}

.btn--large {
    width: 100%;
    max-width: 600px;
    justify-content: center;
    padding: 20px 32px;
    font-size: 18px;
    border: 1px solid var(--border-light);
    border-radius: 60px;
    background: var(--bg-surface);
    color: var(--text-primary);
    margin: 0 auto;
}

.btn--large:hover {
    border-color: var(--text-muted);
}

.btn__icon {
    width: 18px;
    height: 18px;
}

/* Copy email feedback */
.btn--copy .btn__label {
    transition: opacity var(--duration-fast) ease;
}

.btn--copy.is-copied .btn__label {
    opacity: 0;
}

.btn--copy .btn__feedback {
    position: absolute;
    opacity: 0;
    transition: opacity var(--duration-fast) ease;
}

.btn--copy.is-copied .btn__feedback {
    opacity: 1;
}

.btn--copy {
    position: relative;
}

/* ==========================================================================
   PROJECT CARDS
   ========================================================================== */
.projects {
    padding: 0 0 var(--section-py);
}

.projects__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-card {
    background: var(--bg-surface);
    border-radius: var(--card-radius);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: transform var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out);
    cursor: pointer;
    overflow: hidden;
    /* Added to ensure any child overflow is handled */
}

.project-card:hover {
    transform: translateY(-8px);
    /* Slightly more lift for premium feel */
    box-shadow: var(--shadow-card-hover);
}

a.project-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.project-card:hover {
    opacity: 1;
}

.project-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 4px;
}

.project-card__title {
    font-size: var(--fs-card-title);
    font-weight: 600;
    color: var(--text-primary);
}

.project-card__tag {
    padding: 6px 14px;
    border-radius: var(--tag-radius);
    background: var(--bg-primary);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.project-card__subtitle {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-card__image-wrapper {
    width: 100%;
    border-radius: var(--img-radius);
    overflow: hidden;
    /* This creates the clipping effect on hover */
    background: var(--bg-primary);
    aspect-ratio: 16 / 10;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
    /* Slower, smoother zoom */
}

/* Replicate udaykaranam.framer.website hover: scale image on card hover */
.project-card:hover .project-card__image {
    transform: scale(1.08);
    /* Sophisticated subtle zoom */
}

/* ==========================================================================
   VIEW ALL BUTTON (centered)
   ========================================================================== */
.view-all {
    display: flex;
    justify-content: center;
    padding: 80px 0 var(--section-py);
}

/* ==========================================================================
   VISUAL EXPLORATIONS (Dark Section)
   ========================================================================== */
.explorations {
    background: var(--bg-dark);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    /* Add position relative for scroll hint placement */
}

.explorations__heading {
    font-size: var(--fs-section);
    font-weight: 600;
    color: var(--text-inverse);
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

.explorations__gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 var(--container-px) 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.explorations__gallery::-webkit-scrollbar {
    display: none;
}

.explorations__gallery:active {
    cursor: grabbing;
}

.explorations__item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border-radius: var(--img-radius);
    overflow: hidden;
    aspect-ratio: 9 / 16;
    background: #2a2a2a;
}

.explorations__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explorations__scroll-hint {
    display: none;
    /* Hide by default */
}

@media (max-width: 768px) {
    .explorations__scroll-hint {
        display: flex;
        position: absolute;
        bottom: 35%;
        /* Adjust based on gallery position */
        right: 20px;
        background: rgba(255, 255, 255, 0.95);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        z-index: 100;
        animation: hint-bounce 2s infinite ease-in-out;
        pointer-events: none;
        opacity: 0.9;
    }

    .explorations__scroll-hint svg {
        width: 24px;
        height: 24px;
    }

    @keyframes hint-bounce {

        0%,
        100% {
            transform: translateX(0);
        }

        50% {
            transform: translateX(8px);
        }
    }

    /* Edge fading to suggest more content on mobile only */
    .explorations__gallery {
        mask-image: linear-gradient(to right,
                black 85%,
                transparent 100%);
        -webkit-mask-image: linear-gradient(to right,
                black 85%,
                transparent 100%);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.footer {
    background: var(--bg-surface);
    padding: 80px 0 40px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer__cta-heading {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__nav a {
    font-size: var(--fs-body);
    color: var(--text-primary);
}

.footer__nav a:hover {
    opacity: 0.6;
}

.footer__social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__social a {
    font-size: var(--fs-body);
    color: var(--text-primary);
}

.footer__social a:hover {
    opacity: 0.6;
}

.footer__bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-small);
    color: var(--text-muted);
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.about-hero {
    padding-top: 100px;
    padding-bottom: 60px;
    text-align: center;
}

.about-hero__photo {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    object-fit: cover;
    margin: 0 auto 24px;
}

.about-hero__name {
    font-size: var(--fs-card-title);
    font-weight: 600;
    margin-bottom: 8px;
}

.about-hero__role {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.about-hero__bio {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Experience Section */
.experience {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.experience__heading {
    font-size: var(--fs-section);
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.experience__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.experience__item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
}

.experience__date {
    font-size: var(--fs-small);
    color: var(--text-muted);
    padding-top: 2px;
}

.experience__role {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.experience__company {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.experience__desc {
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.6;
}

/* Tools Section */
.tools {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.tools__heading {
    font-size: var(--fs-section);
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.tools__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.tools__item {
    background: var(--bg-surface);
    border-radius: var(--btn-radius);
    padding: 20px;
    text-align: center;
    font-size: var(--fs-body);
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
    transition: transform var(--duration-fast) ease;
}

.tools__item:hover {
    transform: translateY(-2px);
}

/* Life Section */
.life {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.life__heading {
    font-size: var(--fs-section);
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.life__text {
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 32px;
}

.life__photos {
    display: flex;
    justify-content: center;
    gap: 0;
    position: relative;
    height: 280px;
    margin-bottom: 40px;
}

.life__photo {
    width: 220px;
    height: 260px;
    border-radius: var(--img-radius);
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: absolute;
    transition: transform var(--duration-normal) ease;
}

.life__photo:nth-child(1) {
    transform: rotate(-6deg) translateX(-40px);
    z-index: 1;
}

.life__photo:nth-child(2) {
    transform: rotate(4deg) translateX(40px);
    z-index: 2;
}

.life__photo:hover {
    transform: rotate(0) scale(1.05);
    z-index: 3;
}

/* ==========================================================================
   WORK PAGE
   ========================================================================== */
.work-hero {
    padding-top: 100px;
    padding-bottom: 40px;
    text-align: center;
}

.work-hero__heading {
    font-size: var(--fs-hero);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.work-hero__subtitle {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children */
.animate-stagger>*:nth-child(1) {
    transition-delay: 0ms;
}

.animate-stagger>*:nth-child(2) {
    transition-delay: 100ms;
}

.animate-stagger>*:nth-child(3) {
    transition-delay: 200ms;
}

.animate-stagger>*:nth-child(4) {
    transition-delay: 300ms;
}

.animate-stagger>*:nth-child(5) {
    transition-delay: 400ms;
}

.animate-stagger>*:nth-child(6) {
    transition-delay: 500ms;
}

/* Hero entrance animation */
.hero__avatar,
.hero__identity,
.hero__title,
.hero__subtitle,
.hero__cta,
.hero__status,
.hero__scroll {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-slide-up var(--duration-slow) var(--ease-out) forwards;
}

.hero__avatar {
    animation-delay: 0ms;
}

.hero__identity {
    animation-delay: 80ms;
}

.hero__title {
    animation-delay: 160ms;
}

.hero__subtitle {
    animation-delay: 240ms;
}

.hero__cta {
    animation-delay: 320ms;
}

.hero__status {
    animation-delay: 400ms;
}

.hero__scroll {
    animation-delay: 480ms;
}

@keyframes fade-slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --section-py: 64px;
        /* More vertical breathing room */
        --container-px: 24px;
        /* Better alignment on large mobile screens */
        --card-radius: 20px;
    }

    /* Nav mobile */
    .nav__links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 16px;
        border-radius: var(--nav-radius);
        box-shadow: var(--shadow-nav);
    }

    .nav__links.is-open {
        display: flex;
    }

    .nav__hamburger {
        display: flex;
    }

    .nav {
        position: relative;
    }

    /* Hero */
    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .hero__cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Project cards */
    .project-card {
        padding: 20px;
    }

    .project-card__header {
        flex-direction: column;
        gap: 8px;
    }

    .project-card__tag {
        align-self: flex-start;
    }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Experience */
    .experience__item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 32px 0;
    }

    .section {
        scroll-margin-top: 100px;
        /* Prevents nav overlap when jumping to sections */
    }

    /* About Page */
    .about-hero {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .about-hero__bio {
        font-size: 17px;
        line-height: 1.7;
        padding: 0;
        max-width: 100%;
        text-align: center;
        /* Better readability on mobile */
    }

    .experience__projects-list {
        padding-left: 20px;
        font-size: 15px;
        margin-top: 20px;
    }

    .tools__grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    /* Explorations & Life */
    .explorations__item {
        flex: 0 0 180px;
        aspect-ratio: 9 / 14;
    }

    .life__photos {
        height: 190px;
        margin-top: 20px;
    }

    .life__photo {
        width: 140px;
        height: 170px;
    }
}

@media (max-width: 480px) {
    .tools__grid {
        grid-template-columns: 1fr;
        /* Single column on very small screens */
    }

    .life__photo {
        width: 140px;
        height: 170px;
    }

    .life__photos {
        height: 180px;
    }
}

/* ==========================================================================
   PROJECT DETAIL PAGE
   ========================================================================== */
.project-detail {
    padding-top: 100px;
    padding-bottom: 0;
}

.project-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-small);
    color: var(--text-secondary);
    margin-bottom: 32px;
    transition: color var(--duration-fast) ease;
}

.project-detail__back:hover {
    color: var(--text-primary);
    opacity: 1;
}

.project-detail__back svg {
    width: 16px;
    height: 16px;
}

.project-detail__header {
    margin-bottom: 40px;
}

.project-detail__tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--tag-radius);
    background: var(--bg-primary);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.project-detail__title {
    font-size: var(--fs-hero);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.project-detail__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

.project-detail__hero-image {
    width: 100%;
    border-radius: var(--card-radius);
    margin-bottom: var(--section-py);
    background: var(--bg-surface);
    box-shadow: var(--shadow-card);
}

/* Overview Grid */
.project-overview {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding: 0 0 var(--section-py);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--section-py);
}

.project-overview__meta {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-overview__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-overview__meta-label {
    font-size: var(--fs-small);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.project-overview__meta-value {
    font-size: var(--fs-body);
    color: var(--text-primary);
    font-weight: 500;
}

.project-overview__description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Challenge & Solution Sections */
.project-section {
    padding: 0 0 var(--section-py);
}

.project-section__heading {
    font-size: var(--fs-section);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.project-section__text {
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: 24px;
}

.project-section__list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
}

.project-section__list li {
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
}

.project-section__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* Results / Metrics */
.project-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 0 var(--section-py);
}

.project-result {
    background: var(--bg-surface);
    border-radius: var(--card-radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.project-result__number {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.project-result__label {
    font-size: var(--fs-small);
    color: var(--text-secondary);
}

/* Project Image Gallery */
.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 0 var(--section-py);
}

.project-gallery__image {
    width: 100%;
    border-radius: var(--img-radius);
    background: var(--bg-surface);
    box-shadow: var(--shadow-card);
}

.project-gallery--full .project-gallery__image {
    grid-column: 1 / -1;
}

/* Next Project Link */
.next-project {
    border-top: 1px solid var(--border-light);
    padding: var(--section-py) 0;
    text-align: center;
}

.next-project__label {
    font-size: var(--fs-small);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.next-project__title {
    font-size: var(--fs-section);
    font-weight: 600;
    color: var(--text-primary);
    transition: opacity var(--duration-fast) ease;
}

.next-project__title:hover {
    opacity: 0.6;
}

/* Project Detail Responsive */
@media (max-width: 768px) {
    .project-overview {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-overview__meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .project-results {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-detail__title {
        font-size: clamp(28px, 6vw, 48px);
    }
}

/* Veil UI Custom Grid */
.veil-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #111111;
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid #333;
    margin-top: 24px;
}

.veil-grid__column {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
}

.veil-grid__column:last-child {
    border-right: none;
}

.veil-grid__title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    text-align: center;
    padding: 16px;
    margin: 0;
    border-bottom: 1px solid #333;
    background: #111111;
}

.veil-grid__image {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .veil-grid {
        grid-template-columns: 1fr;
    }

    .veil-grid__column {
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .veil-grid__column:last-child {
        border-bottom: none;
    }
}

.experience__projects-list {
    margin-top: 16px;
    padding-left: 20px;
    list-style: disc;
    color: var(--text-secondary);
    font-size: var(--fs-body);
}

.experience__projects-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}