/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-light: #ffffff;
    --bg-dark: #0a0a0a;
    --text-light: #ffffff;
    --text-dark: #000000;
    --accent: #666666;
    --font-script: 'Dancing Script', cursive;
    --font-sans: 'Manrope', sans-serif;

    /* Scroll animation variables (controlled by JS) */
    --scroll-progress: 0;
    --bg-color: 255, 255, 255;
    --text-color: 0, 0, 0;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Bounce animation for arrow */
@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce-arrow {
    animation: bounceArrow 2s ease-in-out infinite;
    display: inline-block;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Navbar color themes based on background */
.navbar.navbar-dark {
    background: rgba(255, 255, 255, 0.95);
}

.navbar.navbar-dark .logo,
.navbar.navbar-dark .nav-link,
.navbar.navbar-dark .download-resume-btn,
.navbar.navbar-dark .hamburger span {
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.navbar.navbar-dark .logo {
    text-decoration: none;
}

.navbar.navbar-dark .download-resume-btn:hover {
    background: var(--text-dark);
    color: var(--text-light);
}

.navbar.navbar-light {
    background: rgba(10, 10, 10, 0.95);
}

.navbar.navbar-light .logo,
.navbar.navbar-light .nav-link,
.navbar.navbar-light .download-resume-btn,
.navbar.navbar-light .hamburger span {
    color: var(--text-light);
    border-color: var(--text-light);
}

.navbar.navbar-light .logo {
    text-decoration: none;
}

.navbar.navbar-light .download-resume-btn:hover {
    background: var(--text-light);
    color: var(--text-dark);
}

.navbar.navbar-light .hamburger span {
    background: var(--text-light);
}

.navbar.navbar-dark .hamburger span {
    background: var(--text-dark);
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgb(var(--text-color));
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.logo:hover {
    opacity: 0.6;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: rgb(var(--text-color));
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(var(--text-color));
    transition: width 0.3s ease;
}

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

.navbar.navbar-dark .nav-link::after {
    background: var(--text-dark);
}

.navbar.navbar-light .nav-link::after {
    background: var(--text-light);
}

.download-resume-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: transparent;
    border: 2px solid rgb(var(--text-color));
    border-radius: 18px;
    color: rgb(var(--text-color));
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
}

.download-resume-btn:hover {
    background: rgb(var(--text-color));
    color: rgb(var(--bg-color));
}

.download-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: rgb(var(--text-color));
    transition: all 0.3s ease;
}

/* ===================================
   Hero Scroll Container
   =================================== */
.hero-scroll-container {
    height: 300vh;
    position: relative;
    width: 100%;
}

.hero-fixed {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgb(var(--bg-color));
    transition: background-color 0.1s ease;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 3rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* ===================================
   Script Text "Brook"
   =================================== */
.greeting-script {
    font-family: var(--font-script);
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 400;
    position: absolute;
    color: rgb(var(--text-color));
    z-index: 1;
    pointer-events: none;
    transition: all 0.6s ease;

    /* Fades out quickly as user scrolls */
    top: calc(20vh - var(--scroll-progress) * 30vh);
    left: calc(5vw - var(--scroll-progress) * 10vw);
    opacity: calc(0.15 - var(--scroll-progress) * 0.25);
    transform: scale(calc(1 - var(--scroll-progress) * 0.5));
}

/* ===================================
   Main "Hi" Greeting
   =================================== */
.greeting-main {
    font-size: clamp(6rem, 15vw, 18rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.02em;
    position: absolute;
    color: rgb(var(--text-color));
    z-index: 5;
    transition: all 0.6s ease;
    white-space: nowrap;

    /* Animation: moves from center upward and off-screen */
    top: calc(25vh - var(--scroll-progress) * 45vh);
    left: calc(50% - var(--scroll-progress) * 43%);
    transform: translateX(-50%) scale(calc(1 - var(--scroll-progress) * 0.45));
    opacity: calc(1 - var(--scroll-progress) * 1.2);
}

.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

/* ===================================
   "I'm Brook" Text
   =================================== */
.name-intro {
    font-size: clamp(4rem, 12vw, 14rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    position: absolute;
    color: rgb(var(--text-color));
    z-index: 6;
    transition: all 0.6s ease;
    white-space: nowrap;

    /* Animation: moves from center upward and off-screen */
    top: calc(50vh - var(--scroll-progress) * 65vh);
    left: calc(50% - var(--scroll-progress) * 43%);
    transform: translateX(-50%) scale(calc(1 - var(--scroll-progress) * 0.35));
    opacity: calc(1 - var(--scroll-progress) * 1.2);
}

/* ===================================
   Bio Section
   =================================== */
.bio {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.6;
    font-weight: 300;
    position: absolute;
    color: rgb(var(--text-color));
    z-index: 4;
    transition: all 0.6s ease;
    max-width: 480px;

    /* Fades in and positions on scroll - vertically centered to match image */
    top: 50%;
    left: 7%;
    transform: translateY(calc(-50% + (1 - var(--scroll-progress)) * 50px));
    opacity: var(--scroll-progress);
}

.bio p {
    margin-bottom: 0.3rem;
}

/* ===================================
   Scroll Indicator
   =================================== */
.scroll-indicator {
    width: 40px;
    height: 60px;
    border: 2px solid rgba(var(--text-color), 0.3);
    border-radius: 20px;
    position: absolute;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.6s ease;
    opacity: calc(1 - var(--scroll-progress) * 1.5);
    pointer-events: auto;
    cursor: pointer;
}

.scroll-indicator:hover {
    border-color: rgba(var(--text-color), 0.6);
    transform: translateX(-50%) translateY(5px);
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: rgb(var(--text-color));
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s ease-in-out infinite;
}

/* ===================================
   Profile Image
   =================================== */
.profile-image {
    max-width: 900px;
    max-height: 80vh;
    border-radius: 12px;
    overflow: visible;
    position: absolute;
    z-index: 3;
    transition: all 0.6s ease;

    /* Fades in and positions on scroll - stays in right center */
    right: 2%;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    opacity: var(--scroll-progress);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

/* Gradient overlay from black to transparent */
.profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: calc(100% + 100px);
    height: 100%;
    background: linear-gradient(to right, rgb(var(--bg-color)) 0%, transparent 40%);
    pointer-events: none;
    z-index: 2;
    border-radius: 12px;
}

/* ===================================
   Contact Links
   =================================== */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: absolute;
    z-index: 7;
    transition: all 0.6s ease;

    /* Fades in and positions on scroll - stays in bottom right */
    right: 10%;
    bottom: 12vh;
    opacity: calc(var(--scroll-progress) * 1.5 - 0.5);
    transform: translateY(calc((1 - var(--scroll-progress)) * 50px));
}

.contact-link {
    color: rgb(var(--text-color));
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    text-align: right;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 0;
    height: 2px;
    background: rgb(var(--text-color));
    transition: width 0.3s ease;
}

.contact-link:hover {
    transform: translateX(-10px);
}

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

/* ===================================
   Selected Works Intro
   =================================== */
.selected-works-intro {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: 4rem 2rem;
}

.works-title-wrapper {
    text-align: center;
}

.works-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.arrow-down {
    font-size: 2.5rem;
    color: var(--text-dark);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(15px);
    }
}

/* ===================================
   Featured Projects Section
   =================================== */
.featured-projects-section {
    background: var(--bg-light);
    padding: 2rem 0 6rem;
}

/* Only selected works intro has animation */
.selected-works-intro {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.selected-works-intro.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.featured-project {
    margin-bottom: 8rem;
}

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

.featured-project.alt-layout .project-content {
    grid-template-columns: 1fr 1fr;
}

.project-info {
    padding: 2rem;
}

.project-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.project-description {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.meta-tag {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
}

.project-link {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border: 2px solid var(--text-dark);
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.project-link:hover {
    background: var(--text-dark);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    color: var(--accent);
}

.preview-placeholder p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.preview-placeholder small {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===================================
   Additional Sections
   =================================== */
.about-section,
.work-section,
.contact-section {
    min-height: 100vh;
    padding: 6rem 3rem;
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* ===================================
   About Section
   =================================== */
.about-content {
    margin-top: 2rem;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
}

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

.about-text strong {
    font-weight: 700;
    color: var(--text-dark);
}

.skills-section {
    margin-top: 4rem;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.skills-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.skill-category p {
    font-size: 1rem;
    color: var(--accent);
    line-height: 1.6;
}

/* ===================================
   Work Section
   =================================== */
.work-section {
    background: #fafafa;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.work-item {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.work-header {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.work-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.work-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
}

.work-date {
    font-size: 0.95rem;
    color: var(--accent);
}

.work-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: var(--text-light);
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    background: var(--bg-dark);
    color: var(--text-light);
}

.contact-section .container h2 {
    color: var(--text-light);
}

.contact-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-item a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.contact-item p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
}

/* ===================================
   Animations
   =================================== */
@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(14deg);
    }
    20%, 40% {
        transform: rotate(-8deg);
    }
    50% {
        transform: rotate(14deg);
    }
    60% {
        transform: rotate(0deg);
    }
}

@keyframes scrollDot {
    0% {
        top: 10px;
        opacity: 1;
    }
    50% {
        top: 35px;
        opacity: 0.5;
    }
    100% {
        top: 10px;
        opacity: 1;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1200px) {
    .profile-image {
        max-width: 420px;
    }

    .greeting-main {
        font-size: clamp(4rem, 12vw, 12rem);
    }

    .name-intro {
        font-size: clamp(3rem, 10vw, 10rem);
    }
}

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(var(--bg-color), 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

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

    .download-resume-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .download-icon {
        width: 16px;
        height: 16px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hero-content {
        padding: 5rem 2rem 2rem;
    }

    .greeting-script {
        font-size: clamp(3rem, 15vw, 8rem);
        top: calc(15vh + var(--scroll-progress) * -10vh);
        left: calc(10% - var(--scroll-progress) * 15%);
    }

    .greeting-main {
        font-size: clamp(3rem, 15vw, 10rem);
        top: calc(30vh - var(--scroll-progress) * 50vh);
        left: 50%;
        transform: translateX(-50%) scale(calc(1 - var(--scroll-progress) * 0.3));
        opacity: calc(1 - var(--scroll-progress) * 1.2);
    }

    .name-intro {
        font-size: clamp(2.5rem, 12vw, 8rem);
        top: calc(50vh - var(--scroll-progress) * 70vh);
        left: 50%;
        transform: translateX(-50%) scale(calc(1 - var(--scroll-progress) * 0.2));
        opacity: calc(1 - var(--scroll-progress) * 1.2);
    }

    .bio {
        font-size: 1rem;
        bottom: auto;
        top: calc(55vh + var(--scroll-progress) * 10vh);
        left: 10%;
        right: 10%;
        max-width: none;
    }

    .profile-image {
        max-width: 550px;
        right: 50%;
        top: calc(25vh + var(--scroll-progress) * 10vh);
        transform: translateX(50%) translateY(calc((1 - var(--scroll-progress)) * 100px));
    }

    .contact-links {
        flex-direction: row;
        flex-wrap: wrap;
        right: auto;
        left: 50%;
        bottom: 10vh;
        transform: translateX(-50%) translateY(calc((1 - var(--scroll-progress)) * 50px));
        justify-content: center;
        gap: 1.5rem;
    }

    .contact-link {
        font-size: 1rem;
        text-align: center;
    }

    .contact-link:hover {
        transform: translateY(-5px);
    }

    .scroll-indicator {
        left: 50%;
        transform: translateX(-50%);
        bottom: 5vh;
    }

    .about-section,
    .work-section,
    .contact-section {
        padding: 4rem 2rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-item {
        padding: 2rem;
    }

    .skills-section {
        padding: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Featured Projects Responsive */
    .container-wide {
        padding: 0 2rem;
    }

    .project-content,
    .featured-project.alt-layout .project-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-project {
        margin-bottom: 5rem;
    }

    .project-info {
        padding: 1rem;
    }

    .works-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .arrow-down {
        font-size: 2rem;
    }
}

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

    .logo {
        font-size: 1rem;
    }

    .download-resume-btn span {
        display: none;
    }

    .download-resume-btn {
        padding: 0.5rem;
        min-width: 40px;
        justify-content: center;
    }

    .hero-content {
        padding: 4rem 1.5rem 2rem;
    }

    .greeting-main {
        font-size: clamp(2.5rem, 18vw, 8rem);
        top: calc(30vh - var(--scroll-progress) * 50vh);
        opacity: calc(1 - var(--scroll-progress) * 1.2);
    }

    .name-intro {
        font-size: clamp(2rem, 15vw, 6rem);
        top: calc(50vh - var(--scroll-progress) * 70vh);
        opacity: calc(1 - var(--scroll-progress) * 1.2);
    }

    .bio {
        font-size: 0.9rem;
        left: 5%;
        right: 5%;
    }

    .profile-image {
        max-width: 290px;
    }

    .contact-link {
        font-size: 0.9rem;
    }

    .container h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .about-section,
    .work-section,
    .contact-section {
        padding: 3rem 1.5rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .work-item {
        padding: 1.5rem;
    }

    .work-header h3 {
        font-size: 1.3rem;
    }

    .work-company {
        font-size: 1rem;
    }

    .skills-section {
        padding: 1.5rem;
    }

    .skills-section h3 {
        font-size: 1.5rem;
    }

    .contact-intro {
        font-size: 1.1rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    /* Featured Projects Mobile */
    .container-wide {
        padding: 0 1.5rem;
    }

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

    .project-info {
        padding: 0.5rem;
    }

    .project-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .project-description {
        font-size: 1rem;
    }

    .project-link {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }

    .meta-tag {
        font-size: 0.85rem;
    }

    .selected-works-intro {
        min-height: 30vh;
        padding: 3rem 1.5rem;
    }

    .works-title {
        font-size: clamp(1.3rem, 6vw, 2rem);
        letter-spacing: 0.1em;
    }

    .arrow-down {
        font-size: 1.8rem;
    }
}
