/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== FONTS ===== */
@font-face {
    font-family: 'Prata';
    src: url('Prata-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-dark: #1a1a1a;
    --color-light: #f5f5f5;
    --color-accent: #8b7355;
    --color-white: #ffffff;
    --font-primary: 'Prata', serif;
    --font-secondary: 'Prata', serif;
    --transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

* {
    cursor: none !important;
}

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

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

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    background-color: transparent;
    transition: var(--transition);
}

.nav.scrolled {
    background-color: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 4rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    display: block;
    width: 150px;
    height: auto;
    opacity: 1;
    transition: var(--transition);
}

.logo-svg {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

.nav.scrolled .logo-svg {
    filter: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

.nav-link {
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 400;
    position: relative;
    transition: var(--transition);
    color: var(--color-white);
}

.nav.scrolled .nav-link {
    color: var(--color-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-white);
    transition: var(--transition);
}

.nav.scrolled .nav-link::after {
    background-color: var(--color-dark);
}

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

.nav-resume-button {
    padding: 0.7rem 1.8rem;
    background-color: #8b7355;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: var(--font-primary);
}

.nav-resume-button:hover {
    background-color: #73604a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

/* Standard Hamburger Icon */
.menu-icon {
    position: relative;
    width: 30px;
    height: 24px;
}

.menu-icon-line {
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    left: 0;
}

.nav.scrolled .menu-icon-line {
    background-color: var(--color-dark);
}

/* Create hamburger: 3 horizontal lines */
.menu-icon-line:nth-child(1) {
    top: 0;
}

.menu-icon-line:nth-child(2) {
    top: 11px;
}

.menu-icon-line:nth-child(3) {
    top: 22px;
}

/* Transform to X when active */
.mobile-menu-toggle.active .menu-icon-line:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.mobile-menu-toggle.active .menu-icon-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .menu-icon-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        padding: 2rem;
        transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        opacity: 1;
        animation: none;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        color: var(--color-white);
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active .nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active .nav-link:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.active .nav-link:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-menu.active .nav-resume-button {
        transition-delay: 0.4s;
    }

    .nav-link::after {
        background-color: var(--color-white);
    }

    .nav-resume-button {
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active .nav-resume-button {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.1);
}

.hero-image.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-logo {
    width: clamp(400px, 50vw, 700px);
    height: auto;
    margin: 0 auto 2rem;
    color: var(--color-white);
}

/* Hero Logo Animation */
.hero-logo-path {
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawPath 1.5s ease-out forwards, fillPath 0.3s ease forwards;
}

.hero-logo-j {
    animation-delay: 0.2s, 1.5s;
}

.hero-logo-g {
    animation-delay: 1.2s, 2.5s;
}

.hero-logo-concepts {
    /* Letters will animate individually */
}

.hero-logo-text-path {
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 1.5;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 0.5s ease-out forwards, fillPath 0.2s ease forwards;
}

/* Individual letter delays - staggered sequence */
.letter-c1 { animation-delay: 2.5s, 2.9s; }
.letter-o { animation-delay: 2.8s, 3.2s; }
.letter-n { animation-delay: 3.1s, 3.5s; }
.letter-c2 { animation-delay: 3.4s, 3.8s; }
.letter-e { animation-delay: 3.7s, 4.1s; }
.letter-p { animation-delay: 4.0s, 4.4s; }
.letter-t { animation-delay: 4.3s, 4.7s; }
.letter-s { animation-delay: 4.6s, 5.0s; }

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fillPath {
    to {
        fill: #ffffff;
        stroke: transparent;
    }
}

.hero-subtitle {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: lowercase;
    color: var(--color-white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-subtitle.typewriter-active {
    opacity: 0.9;
}

.hero-subtitle::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

.hero-subtitle.typewriter-complete::after {
    display: none;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 3.5s;
    z-index: 3;
    color: var(--color-white);
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: var(--color-white);
    animation: scrollLine 2s ease infinite;
}

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

/* ===== TEXT TRANSFORMATION SECTION ===== */
.text-transform-section {
    height: 380vh;
    background-color: var(--color-white);
    position: relative;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(18, 53, 36, 0.06) 50px,
            rgba(18, 53, 36, 0.06) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(18, 53, 36, 0.06) 50px,
            rgba(18, 53, 36, 0.06) 51px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(18, 53, 36, 0.03) 100px,
            rgba(18, 53, 36, 0.03) 101px
        );
}

.transform-text {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-dark);
    max-width: 1200px;
    width: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    min-height: 200px;
    padding: 0 2rem;
    pointer-events: none;
    will-change: transform, top;
    backface-visibility: hidden;
}

.transform-text .letter {
    transition: none;
    opacity: 1;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Letters that will be removed - no transition for scroll-based */
.transform-text .letter.fade-out {
    transition: none;
}

/* State for letters moving to final position */
.transform-text .letter.moved {
    /* Position will be set inline via JavaScript */
}

/* Color transformation for specific words - no transition for scroll-based */
.transform-text .letter.color-change {
    transition: none;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.container-full {
    width: 100%;
    padding: 0 2rem;
}

/* ===== SCROLLING TEXT BANNER ===== */
.scrolling-banner {
    overflow: hidden;
    background-color: var(--color-white);
    padding: 2rem 0;
    border-top: 1px solid rgba(18, 53, 36, 0.1);
    border-bottom: 1px solid rgba(18, 53, 36, 0.1);
    position: relative;
}

.scrolling-banner-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-left 40s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.banner-text {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    padding: 0 3rem;
    color: var(--color-dark);
}

.banner-divider {
    font-size: 1rem;
    color: rgba(18, 53, 36, 0.3);
}

/* Duplicate content for seamless loop */
.scrolling-banner-track::after {
    content: '';
    display: flex;
    align-items: center;
}

/* ===== CORNER CROP MARKS ===== */
.about-section,
.projects-section,
.contact-section,
.text-transform-section {
    position: relative;
}

.about-section::before,
.about-section::after,
.projects-section::before,
.projects-section::after,
.contact-section::before,
.contact-section::after,
.text-transform-section::before,
.text-transform-section::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(18, 53, 36, 0.2);
    border-style: solid;
    z-index: 10;
    pointer-events: none;
}

/* Top-left corner */
.about-section::before,
.projects-section::before,
.contact-section::before,
.text-transform-section::before {
    top: 2rem;
    left: 2rem;
    border-width: 2px 0 0 2px;
}

/* Bottom-right corner */
.about-section::after,
.projects-section::after,
.contact-section::after,
.text-transform-section::after {
    bottom: 2rem;
    right: 2rem;
    border-width: 0 2px 2px 0;
}

/* ===== CHAPTER MARKERS ===== */
.chapter-marker {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    pointer-events: none;
}

.chapter-marker::before,
.chapter-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background-color: currentColor;
}

.chapter-marker::before {
    top: -150px;
    height: 150px;
}

.chapter-marker::after {
    bottom: -150px;
    height: 150px;
}

.chapter-marker-text {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    color: currentColor;
}

/* Chapter marker colors for different sections */
.text-transform-section .chapter-marker,
.about-section .chapter-marker,
.projects-section .chapter-marker {
    color: #000000;
}

.contact-section .chapter-marker {
    color: #ffffff;
}

/* Ensure lines are also solid black */
.text-transform-section .chapter-marker::before,
.text-transform-section .chapter-marker::after,
.about-section .chapter-marker::before,
.about-section .chapter-marker::after,
.projects-section .chapter-marker::before,
.projects-section .chapter-marker::after {
    background-color: #000000;
}

.contact-section .chapter-marker::before,
.contact-section .chapter-marker::after {
    background-color: #ffffff;
}

/* Responsive chapter marker positioning */
@media (max-width: 1024px) {
    .chapter-marker {
        left: 2rem;
    }

    .chapter-marker::before,
    .chapter-marker::after {
        height: 100px;
    }

    .chapter-marker::before {
        top: -100px;
    }

    .chapter-marker::after {
        bottom: -100px;
    }

    .chapter-marker-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .chapter-marker {
        left: 1rem;
    }

    .chapter-marker::before,
    .chapter-marker::after {
        height: 60px;
    }

    .chapter-marker::before {
        top: -60px;
    }

    .chapter-marker::after {
        bottom: -60px;
    }

    .chapter-marker-text {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 10rem 0;
    background-color: var(--color-light);
}

.about-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5rem;
    align-items: stretch;
    max-width: 1300px;
}

.about-image {
    position: relative;
    width: 350px;
    height: 100%;
}

.headshot {
    width: 350px;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 2px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-text {
    padding-top: 0;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #4a4a4a;
    font-family: var(--font-secondary);
}

.resume-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    background-color: #8b7355;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: var(--font-primary);
}

.resume-button:hover {
    background-color: #73604a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

/* Staggered Reveal Animation */
.staggered-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.staggered-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 8rem 0;
    background-color: var(--color-white);
    position: relative;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(18, 53, 36, 0.06) 50px,
            rgba(18, 53, 36, 0.06) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(18, 53, 36, 0.06) 50px,
            rgba(18, 53, 36, 0.06) 51px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(18, 53, 36, 0.03) 100px,
            rgba(18, 53, 36, 0.03) 101px
        );
}

.section-title-center {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 8rem;
    letter-spacing: 0.02em;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8rem;
}

.project-card {
    display: grid;
    grid-template-columns: auto auto;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent image overflow */
.project-image-wrapper {
    flex-shrink: 0;
    max-width: 100%;
}

/* Animation states for slide-in */
.project-card.slide-in-left {
    transform: translateX(-100px);
}

.project-card.slide-in-right {
    transform: translateX(100px);
}

.project-card.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Alternating layout */
.project-card:nth-child(odd) {
    grid-template-columns: auto auto;
}

.project-card:nth-child(even) {
    grid-template-columns: auto auto;
    direction: rtl;
}

.project-card:nth-child(even) > * {
    direction: ltr;
}

/* Asymmetrical positioning */
.project-card:nth-child(1) {
    margin-left: -3%;
}

.project-card:nth-child(2) {
    margin-left: 5%;
}

.project-card:nth-child(3) {
    margin-left: -2%;
}

.project-card:nth-child(4) {
    margin-left: 4%;
}

.project-card:nth-child(5) {
    margin-left: -4%;
}

.project-card:nth-child(6) {
    margin-left: 3%;
}

.project-card:nth-child(7) {
    margin-left: -1%;
}

.project-card:nth-child(8) {
    margin-left: 6%;
}

.project-card:nth-child(9) {
    margin-left: -3%;
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/*
 * Alternating image styles using a 4-project repeating pattern:
 * Position 1 (4n+1): Landscape 4/3
 * Position 2 (4n+2): Square 1/1
 * Position 3 (4n+3): Portrait 4/5
 * Position 4 (4n+4): Landscape 6/4
 * This pattern repeats infinitely for any number of projects
 */

/* Landscape images (positions 1, 4, 5, 8, 9, 12...) - 4n+1 and 4n */
.project-card:nth-child(4n+1) .project-image-wrapper,
.project-card:nth-child(4n) .project-image-wrapper {
    height: 400px;
    width: auto;
    max-width: 500px;
}

/* Landscape 4/3 aspect ratio (positions 1, 5, 9, 13...) */
.project-card:nth-child(4n+1) .project-image-wrapper {
    aspect-ratio: 4 / 3;
}

/* Landscape 6/4 aspect ratio (positions 4, 8, 12, 16...) */
.project-card:nth-child(4n) .project-image-wrapper {
    aspect-ratio: 6 / 4;
}

/* Square images (positions 2, 6, 10, 14...) - 4n+2 */
.project-card:nth-child(4n+2) .project-image-wrapper {
    width: 450px;
    height: auto;
    max-height: 550px;
    aspect-ratio: 1 / 1;
}

/* Portrait images (positions 3, 7, 11, 15...) - 4n+3 */
.project-card:nth-child(4n+3) .project-image-wrapper {
    width: 450px;
    height: auto;
    max-height: 550px;
    aspect-ratio: 4 / 5;
}

/* Salt & Sky - add white background behind transparent image (specific project) */
.project-card:nth-child(8) .project-image-wrapper {
    background-color: #ffffff;
}

/* Title Reveal Animation */
.title-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.title-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Image Container */
.parallax-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Salt & Sky project - show full image without cropping */
.project-card:nth-child(8) .project-image {
    object-fit: contain;
}

/* Project card scale effect applied via JavaScript */
.project-card {
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.project-info {
    padding: 0;
    min-width: 0;
    overflow: visible;
}

.project-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.project-meta {
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.project-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    max-width: 500px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 10rem 0;
    background-color: var(--color-dark);
    color: var(--color-white);
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-section .section-title {
    color: var(--color-white);
}

.contact-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-link {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-accent);
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--color-white);
}

/* ===== FOOTER ===== */
.footer {
    padding: 3rem 0;
    text-align: center;
    background-color: var(--color-dark);
    color: var(--color-white);
    font-size: 0.875rem;
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.admin-access-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s ease;
    opacity: 0.5;
}

.admin-access-link:hover {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    margin: auto;
    background-color: var(--color-white);
    overflow-y: auto;
    z-index: 2001;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: none;
    background-color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 2002;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.modal-body {
    padding: 4rem;
}

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

.modal-content-flow {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Single item rows - span full width */
.modal-row > *:only-child {
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 0 auto;
}

/* Centered rows for leftover images or text when counts don't match */
.modal-row.modal-row-centered {
    display: flex;
    justify-content: center;
}

.modal-row.modal-row-centered .modal-flow-image {
    max-width: 900px;
}

.modal-row.modal-row-centered .modal-flow-text {
    max-width: 900px;
    text-align: left;
}

.modal-row.reverse {
    direction: rtl;
}

.modal-row.reverse > * {
    direction: ltr;
}

.modal-flow-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-flow-text {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a4a4a;
}

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

.modal-flow-text p:last-child {
    margin-bottom: 0;
}

.modal-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.modal-meta {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 3rem;
}

.modal-description {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a4a4a;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav {
        padding: 2rem;
    }

    .nav.scrolled {
        padding: 1rem 2rem;
    }

    .container {
        padding: 0 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .resume-button {
        margin-left: auto;
        margin-right: auto;
    }

    .projects-grid {
        padding: 0 2rem;
        gap: 6rem;
    }

    .project-card,
    .project-card:nth-child(odd),
    .project-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
        margin-left: 0;
    }

    .project-card:nth-child(even) > * {
        direction: ltr;
    }

    /* Remove slide animations on mobile */
    .project-card.slide-in-left,
    .project-card.slide-in-right {
        transform: translateX(0);
    }

    .project-card {
        opacity: 1;
        transform: translateX(0);
    }

    .project-info {
        padding: 0;
        text-align: center;
    }

    .project-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 auto;
        justify-self: center;
    }

    /* All project image wrappers get full width on mobile */
    .project-card .project-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }

    .project-image {
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .parallax-image {
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 75% !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .parallax-image .project-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Salt & Sky - fit entire image with white background on mobile */
    .project-card:nth-child(8) .parallax-image {
        background-color: #ffffff !important;
    }

    .project-card:nth-child(8) .project-image {
        object-fit: contain !important;
    }

    .modal-body {
        padding: 2rem;
    }

    .modal-row,
    .modal-row.reverse,
    .modal-row.modal-row-centered {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
    }

    .modal-row.modal-row-centered .modal-flow-text {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .transform-text {
        font-size: 1.8rem;
        padding: 0 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-title-center {
        font-size: 2rem;
        padding: 0 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .project-overlay {
        padding: 2rem;
    }

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

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

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
