/* ==========================================
   CSS Variables & Reset
   ========================================== */
:root {
    --color-bg: #F5F2EB;
    --color-bg-dark: #EBE7DD;
    --color-text: #1A1A1A;
    --color-text-muted: #6B6B6B;
    --color-accent: #1A1A1A;
    --color-highlight: #E63946;
    
    --font-primary: 'Space Grotesk', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

button {
    cursor: none;
}

@media (hover: none), (pointer: coarse) {
    body {
        cursor: auto;
    }

    a,
    button {
        cursor: pointer;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }
}

::selection {
    background: var(--color-text);
    color: var(--color-bg);
}

/* ==========================================
   Custom Cursor
   ========================================== */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--color-text);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(3);
    background: var(--color-highlight);
    mix-blend-mode: difference;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    opacity: 0;
}

/* ==========================================
   Loader
   ========================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-text);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    color: var(--color-bg);
    display: flex;
    overflow: hidden;
}

.loader-text span {
    display: inline-block;
    transform: translateY(100%);
    animation: loaderReveal 0.6s var(--ease-out-expo) forwards;
}

.loader-text span:nth-child(1) { animation-delay: 0.1s; }
.loader-text span:nth-child(2) { animation-delay: 0.2s; }
.loader-text span:nth-child(3) { animation-delay: 0.3s; }
.loader-text span:nth-child(4) { animation-delay: 0.4s; }

@keyframes loaderReveal {
    to { transform: translateY(0); }
}

.loader.loaded {
    animation: loaderExit 1s var(--ease-in-out) 0.8s forwards;
}

@keyframes loaderExit {
    to {
        transform: translateY(-100%);
    }
}

/* ==========================================
   Navigation
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg);
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-logo:hover {
    transform: scale(1.1);
}

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

.nav-link {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-bg);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-bg);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.nav-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-bg);
    transition: all 0.3s var(--ease-out-expo);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-text);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease-out-expo);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 4rem);
    color: var(--color-bg);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s var(--ease-out-expo);
}

.mobile-menu.open .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-link:nth-child(3) { transition-delay: 0.3s; }

@media (max-width: 768px) {
    .nav {
        padding: 1.5rem 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-menu-btn {
        display: flex;
    }
    
    .nav-menu-btn.active span:first-child {
        transform: rotate(45deg) translate(3px, 5px);
    }
    
    .nav-menu-btn.active span:last-child {
        transform: rotate(-45deg) translate(3px, -5px);
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1.25rem 1.5rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-menu-btn span {
        width: 22px;
    }
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-eyebrow .line {
    width: 40px;
    height: 1px;
    background: var(--color-text);
}

.hero-eyebrow .text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    overflow: hidden;
}

.word {
    display: inline-block;
    transform: translateY(100%);
    position: relative;
}

.word.italic {
    font-style: italic;
}

.word::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-text);
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease-out-expo);
}

.word:hover::after {
    transform: translateY(0);
}

.word:hover {
    color: transparent;
    -webkit-text-stroke: 1px var(--color-text);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--color-text-muted);
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtitle .highlight {
    color: var(--color-highlight);
    font-weight: 600;
}


.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

.hero-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: var(--color-text);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-bg);
    white-space: nowrap;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 2rem 4rem;
    }
    
    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: clamp(3rem, 14vw, 6rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-marquee {
        padding: 1rem 0;
    }

    .marquee-track span {
        font-size: 0.75rem;
    }
}

/* ==========================================
   About Section
   ========================================== */
.about {
    padding: 10rem 4rem;
    position: relative;
}

.about-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 4rem;
    align-items: start;
}

.about-label,
.work-label,
.contact-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label-number {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.label-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 3rem;
}

.about-title em {
    font-style: italic;
    color: var(--color-highlight);
}

.about-bio p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.about-bio strong {
    color: var(--color-text);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-text);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.skills-orbit {
    max-width: 600px;
    height: 600px;
    margin: 8rem auto 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-center {
    width: 100px;
    height: 100px;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

.orbit-ring {
    position: absolute;
    border: 1px dashed rgba(26, 26, 26, 0.2);
    border-radius: 50%;
    animation: orbit 30s linear infinite;
}

.ring-1 {
    width: 300px;
    height: 300px;
    animation-duration: 25s;
}

.ring-2 {
    width: 500px;
    height: 500px;
    animation-duration: 35s;
    animation-direction: reverse;
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.skill {
    position: absolute;
    background: var(--color-bg);
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: counterOrbit 30s linear infinite;
    white-space: nowrap;
}

.ring-1 .skill {
    animation-duration: 25s;
}

.ring-1 .skill:nth-child(1) { top: 0; left: 50%; transform: translate(-50%, -50%); }
.ring-1 .skill:nth-child(2) { top: 50%; right: 0; transform: translate(50%, -50%); }
.ring-1 .skill:nth-child(3) { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.ring-1 .skill:nth-child(4) { top: 50%; left: 0; transform: translate(-50%, -50%); }

.ring-2 .skill {
    animation-duration: 35s;
    animation-direction: reverse;
}

.ring-2 .skill:nth-child(1) { top: 10%; left: 10%; }
.ring-2 .skill:nth-child(2) { top: 10%; right: 10%; }
.ring-2 .skill:nth-child(3) { bottom: 10%; right: 10%; }
.ring-2 .skill:nth-child(4) { bottom: 10%; left: 10%; }
.ring-2 .skill:nth-child(5) { top: 50%; right: 0; transform: translate(50%, -50%); }

@keyframes counterOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat {
        flex: 1;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 6rem 2rem;
    }
    
    .skills-orbit {
        transform: scale(0.7);
        margin-top: 2rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat {
        padding: 1rem 0;
    }

    .stat-number {
        font-size: clamp(1.5rem, 7vw, 2.25rem);
    }

    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 5rem 1.5rem;
    }

    .about-grid {
        gap: 2rem;
    }

    .label-text {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

    .about-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 2rem;
    }

    .about-bio p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .about-stats {
        gap: 1.25rem;
    }

    .stat {
        min-width: 0;
    }

    .stat-number {
        font-size: clamp(1.25rem, 7vw, 2rem);
        line-height: 1.1;
        word-break: break-word;
    }

    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }

    .skills-orbit {
        transform: scale(0.6);
        margin-top: 1.5rem;
    }

    .skill {
        font-size: 0.65rem;
    }
}

/* ==========================================
   Work Section
   ========================================== */
.work {
    padding: 10rem 4rem;
    background: var(--color-bg-dark);
}

.work-header {
    max-width: 1400px;
    margin: 0 auto 6rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    align-items: start;
}

.work-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
}

.work-title em {
    font-style: italic;
}

.projects-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: none;
    transition: transform 0.6s var(--ease-out-expo);
}

.project-card:nth-child(1) {
    grid-column: span 7;
}

.project-card:nth-child(2) {
    grid-column: span 5;
}

.project-card:nth-child(3) {
    grid-column: span 5;
}

.project-card:nth-child(4) {
    grid-column: span 7;
}

.project-card:nth-child(5) {
    grid-column: span 6;
}

.project-card:nth-child(6) {
    grid-column: span 6;
}

.project-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-text);
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--color-bg);
    font-style: italic;
    transition: transform 0.8s var(--ease-out-expo);
}

.project-card:hover .project-placeholder {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-name {
    color: var(--color-highlight);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    background: var(--color-bg);
    padding: 0.25rem 0.75rem;
}

.project-year {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.project-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s var(--ease-out-expo);
    position: absolute;
    bottom: 1.5rem;
    right: 0;
    opacity: 0;
    transform: translateX(-10px);
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--color-text);
    color: var(--color-bg);
}

@media (max-width: 1024px) {
    .work-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card:nth-child(n) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .work {
        padding: 6rem 2rem;
    }
}

@media (max-width: 480px) {
    .work {
        padding: 5rem 1.5rem;
    }

    .work-header {
        margin: 0 auto 3.5rem;
        gap: 1.5rem;
    }

    .work-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .projects-grid {
        gap: 1.5rem;
    }

    .project-placeholder {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        text-align: center;
        padding: 0 1rem;
    }

    .project-info {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .project-name {
        font-size: 1.25rem;
    }

    .project-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .project-year {
        font-size: 0.75rem;
    }

    .project-arrow {
        display: none;
    }
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    padding: 10rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    min-height: 100vh;
    align-items: center;
}

.contact-content {
    max-width: 600px;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 2rem 0;
}

.contact-title em {
    font-style: italic;
    color: var(--color-highlight);
}

.contact-desc {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.contact-email {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-style: italic;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--color-text);
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--color-highlight);
}

.contact-socials {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--color-highlight);
}

.social-arrow {
    transition: transform 0.3s var(--ease-out-expo);
}

.social-link:hover .social-arrow {
    transform: translate(3px, -3px);
}

.contact-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-circle {
    width: 400px;
    height: 400px;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    animation: rotateSlow 20s linear infinite;
    position: relative;
}

.visual-circle::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-highlight);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.visual-text {
    position: absolute;
    font-family: var(--font-display);
    font-size: 3rem;
    text-align: center;
    line-height: 1.1;
}

.visual-text span {
    display: block;
}

.visual-text span:last-child {
    font-style: italic;
}

@media (max-width: 1024px) {
    .contact {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        max-width: 100%;
    }
    
    .contact-socials {
        justify-content: center;
    }
    
    .contact-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 6rem 2rem;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 5rem 1.5rem;
    }

    .contact-title {
        font-size: clamp(2.25rem, 9vw, 3rem);
    }

    .contact-desc {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .contact-email {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
        word-break: break-word;
    }

    .contact-socials {
        gap: 1rem;
    }

    .social-link {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: 2rem 4rem;
    background: var(--color-text);
    color: var(--color-bg);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-year,
.footer-credit {
    font-size: 0.875rem;
    color: rgba(245, 242, 235, 0.6);
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   Reveal Animations
   ========================================== */
.reveal-text {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s var(--ease-out-expo);
}

/* ==========================================
   Project Detail Page Styles
   ========================================== */
.project-hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8rem 4rem 4rem;
    position: relative;
    background: var(--color-bg-dark);
}

.project-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.project-back {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4rem;
    transition: color 0.3s ease;
}

.project-back:hover {
    color: var(--color-highlight);
}

.project-back-arrow {
    transition: transform 0.3s var(--ease-out-expo);
}

.project-back:hover .project-back-arrow {
    transform: translateX(-5px);
}

.project-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2rem;
}

.project-hero-meta {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.meta-value {
    font-size: 1rem;
}

.project-detail-content {
    padding: 6rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.project-section {
    margin-bottom: 4rem;
}

.project-section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.project-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-item {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-text);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.project-links {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 1px solid var(--color-text);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

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

.project-link.primary:hover {
    background: var(--color-highlight);
    border-color: var(--color-highlight);
}

@media (max-width: 1024px) {
    .project-hero {
        padding: 7rem 3rem 3rem;
    }

    .project-detail-content {
        padding: 5rem 3rem;
    }

    .project-hero-meta {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 6rem 2rem 3rem;
    }
    
    .project-detail-content {
        padding: 4rem 2rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .project-link {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .project-hero {
        padding: 5.5rem 1.5rem 2.5rem;
        min-height: 70vh;
    }

    .project-back {
        margin-bottom: 2.5rem;
        font-size: 0.75rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .project-hero-title {
        font-size: clamp(2.5rem, 12vw, 3.75rem);
    }

    .project-hero-meta {
        gap: 1.25rem;
    }

    .project-detail-content {
        padding: 3.5rem 1.5rem;
    }

    .project-section {
        margin-bottom: 3rem;
    }

    .project-section-title {
        font-size: 1.5rem;
    }

    .project-section p {
        font-size: 1rem;
    }

    .tech-item {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .project-link {
        padding: 0.875rem 1.5rem;
    }
}
