/* ==================== */
/* CSS Variables & Reset */
/* ==================== */

:root {
    --color-bg: #fafafa;
    --color-white: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-accent: #2997ff;
    --color-border: #e0e0e0;
    --font-main: 'IBM Plex Sans', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
}

/* Dark body for project1 */
body.dark-mode {
    background: #000;
    color: #f5f5f7;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================== */
/* Navigation */
/* ==================== */

nav:not(.project-nav) {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s, border-color 0.3s;
}

body.dark-mode nav:not(.project-nav) {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
}

.logo {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.logo:hover {
    text-decoration: none;
    color: var(--color-accent);
}

body.dark-mode .logo {
    color: #f5f5f7;
}

body.dark-mode .logo:hover {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

body.dark-mode .nav-links a {
    color: rgba(255,255,255,0.8);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
    text-decoration: none;
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    color: #fff;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-trigger svg {
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-trigger svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

body.dark-mode .dropdown-menu {
    background: #1d1d1f;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

body.dark-mode .dropdown-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.dropdown-menu a.active {
    color: var(--color-accent);
}

/* ==================== */
/* Main Content */
/* ==================== */

main {
    padding-top: 48px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* ==================== */
/* Home Page */
/* ==================== */

#home {
    background-color: #ffffff;
    position: relative;
}

.home-content {
    min-height: calc(100vh - 48px);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Text reveal animations - only when page has .animate class */
.home-content h1,
.home-content .intro,
.home-content .resume-link,
.scroll-indicator {
    opacity: 0;
    transform: translateY(30px);
}

.page.animate .home-content h1,
.page.animate .home-content .intro,
.page.animate .home-content .resume-link,
.page.animate .scroll-indicator {
    animation: fadeInUp 0.8s ease forwards;
}

.page.animate .home-content h1 {
    animation-delay: 0.2s;
}

.page.animate .home-content .intro-1 {
    animation-delay: 0.5s;
}

.page.animate .home-content .intro-2 {
    animation-delay: 0.7s;
}

.home-content .intro-2 {
    margin-top: 1.5rem;
}

.page.animate .home-content .resume-link {
    animation-delay: 0.9s;
}

.page.animate .scroll-indicator {
    animation-delay: 1.3s;
}

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

.home-content .intro {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 650px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}

.scroll-indicator:hover {
    color: var(--color-accent);
}

.scroll-indicator svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

.resume-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}

.resume-link:hover {
    background: #5bb3ff;
    text-decoration: none;
}

.resume-link svg {
    width: 18px;
    height: 18px;
}

.home-projects {
    position: relative;
    padding: 3rem 0 5rem;
}

.projects-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.project-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card-media {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #1d1d1f;
}

.card-media img,
.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    position: relative;
}

.card-badge {
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    background: #c2783e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.card-problem,
.card-solution {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.card-problem strong,
.card-solution strong {
    color: var(--color-text);
}

.card-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
}

.project-card:hover .card-link {
    text-decoration: underline;
}

/* ==================== */
/* PROJECT SIDEBAR NAV */
/* ==================== */

.project-nav {
    position: fixed;
    left: 1.5rem;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 50;
    width: auto;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    border-bottom: none;
    padding: 0;
    margin: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.project-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
    background: none;
    border: none;
}

.project-nav-item:hover {
    text-decoration: none;
}

.project-nav-line {
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: inline-block;
}

.project-nav-text {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    transition: all 0.2s ease;
    opacity: 0;
    display: inline-block;
}

/* Show text on hover */
.project-nav:hover .project-nav-text {
    opacity: 1;
}

/* Hover state */
.project-nav-item:hover .project-nav-line {
    width: 28px;
    background: rgba(255, 255, 255, 0.4);
}

.project-nav-item:hover .project-nav-text {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

/* Active state */
.project-nav-item.active .project-nav-line {
    width: 32px;
    background: var(--color-accent);
}

.project-nav-item.active .project-nav-text {
    color: rgba(255, 255, 255, 0.7);
}

/* Project-specific accent colors */
#project2 .project-nav-item.active .project-nav-line {
    background: #4ade80;
}

#project2 .project-nav-item.active .project-nav-text {
    color: rgba(74, 222, 128, 0.8);
}

#project3 .project-nav-item.active .project-nav-line {
    background: #4da6ff;
}

#project3 .project-nav-item.active .project-nav-text {
    color: rgba(77, 166, 255, 0.8);
}

#project4 .project-nav-item.active .project-nav-line {
    background: #c2783e;
}

#project4 .project-nav-item.active .project-nav-text {
    color: rgba(194, 120, 62, 0.8);
}

/* Hide on smaller screens */
@media (max-width: 1200px) {
    .project-nav {
        display: none;
    }
}

/* ==================== */
/* PROJECT PAGE ANIMATIONS */
/* ==================== */

/* Project 1 - Video Hero animations */
.video-hero h1,
.video-container,
.video-caption {
    opacity: 0;
    transform: translateY(15px);
}

.page.animate .video-hero h1,
.page.animate .video-container,
.page.animate .video-caption {
    animation: fadeInUp 0.4s ease forwards;
}

.page.animate .video-hero h1 {
    animation-delay: 0.05s;
}

.page.animate .video-container {
    animation-delay: 0.15s;
}

.page.animate .video-caption {
    animation-delay: 0.25s;
}

/* Project 2 - Green theme animations */
.project2-inner h1,
.project2-subtitle,
.project2-paragraphs,
.project2-buttons {
    opacity: 0;
    transform: translateY(15px);
}

.page.animate .project2-inner h1,
.page.animate .project2-subtitle,
.page.animate .project2-paragraphs,
.page.animate .project2-buttons {
    animation: fadeInUp 0.4s ease forwards;
}

.page.animate .project2-inner h1 {
    animation-delay: 0.05s;
}

.page.animate .project2-subtitle {
    animation-delay: 0.12s;
}

.page.animate .project2-paragraphs {
    animation-delay: 0.2s;
}

.page.animate .project2-buttons {
    animation-delay: 0.28s;
}

/* Project 3 - Blue theme animations */
.project3-inner h1,
.project3-subtitle,
.project3-text,
.project3-image,
.project3-link {
    opacity: 0;
    transform: translateY(15px);
}

.page.animate .project3-inner h1,
.page.animate .project3-subtitle,
.page.animate .project3-text,
.page.animate .project3-image,
.page.animate .project3-link {
    animation: fadeInUp 0.4s ease forwards;
}

.page.animate .project3-inner h1 {
    animation-delay: 0.05s;
}

.page.animate .project3-subtitle {
    animation-delay: 0.12s;
}

.page.animate .project3-text:first-of-type {
    animation-delay: 0.2s;
}

.page.animate .project3-image {
    animation-delay: 0.28s;
}

.page.animate .project3-text:last-of-type {
    animation-delay: 0.35s;
}

.page.animate .project3-link {
    animation-delay: 0.42s;
}

/* Project 4 - Iron theme animations */
.project4-status-badge,
.project4-header h1,
.project4-subtitle,
.project4-description,
.project4-roadmap {
    opacity: 0;
    transform: translateY(15px);
}

.page.animate .project4-status-badge,
.page.animate .project4-header h1,
.page.animate .project4-subtitle,
.page.animate .project4-description,
.page.animate .project4-roadmap {
    animation: fadeInUp 0.4s ease forwards;
}

.page.animate .project4-status-badge {
    animation-delay: 0.05s;
}

.page.animate .project4-header h1 {
    animation-delay: 0.1s;
}

.page.animate .project4-subtitle {
    animation-delay: 0.18s;
}

.page.animate .project4-description {
    animation-delay: 0.25s;
}

.page.animate .project4-roadmap {
    animation-delay: 0.32s;
}

/* ==================== */
/* PROJECT 1 DARK THEME */
/* ==================== */

/* Fullscreen Video Hero */
.video-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
}

.video-hero h1 {
    position: relative;
    z-index: 2;
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 600;
    color: #fff;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    margin-bottom: 3rem;
    line-height: 1.3;
}

.video-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1000px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.video-container video {
    width: 100%;
    display: block;
    background: #1d1d1f;
}

/* Video loading state */
.video-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.video-container.loaded::before {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Video Caption */
.video-caption {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0 2rem;
    font-size: 0.75rem;
    color: #6e6e73;
    opacity: 0.8;
    font-weight: 400;
}

@media (max-width: 600px) {
    .video-caption {
        font-size: 0.7rem;
        line-height: 1.6;
    }
}

/* Dark Sections */
.dark-section {
    background: #000;
    padding: 5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.dark-section .container {
    max-width: 900px;
}

/* Download Section */
.download-hero {
    background: #000;
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.download-hero h2 {
    color: #f5f5f7;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    background: #2997ff;
    color: #000;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    transition: all 0.2s;
}

.download-btn:hover {
    background: #5bb3ff;
    color: #000;
    text-decoration: none;
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

/* Content Cards - Dark */
.dark-card {
    background: #1d1d1f;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
}

.dark-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 1.5rem;
}

.dark-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5f5f7;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.dark-card h3:first-of-type {
    margin-top: 0;
}

.dark-card p {
    color: #a1a1a6;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.dark-card ul {
    color: #a1a1a6;
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.dark-card li {
    margin-bottom: 0.5rem;
}

.dark-card strong {
    color: #f5f5f7;
}

/* Solution Steps - Dark */
.solution-step-dark {
    background: #2d2d2f;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.solution-step-dark:last-child {
    margin-bottom: 0;
}

.solution-step-dark strong {
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.solution-step-dark p {
    margin: 0;
    color: #a1a1a6;
}

/* Results - Dark */
.results-highlight {
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.results-highlight .big-stat {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.results-highlight .stat-label {
    font-size: 1.1rem;
    color: #a1a1a6;
    margin-top: 0.5rem;
}

.results-highlight .comparison {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #6e6e73;
    margin-top: 1rem;
}

/* Results Teaser Bar Graph */
.results-teaser {
    background: #000;
    padding: 5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.results-teaser .container {
    max-width: 700px;
}

.teaser-label {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: #a1a1a6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-align: center;
}

.teaser-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #f5f5f7;
    text-align: center;
    margin-bottom: 3rem;
}

.bar-comparison {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.bar-label {
    width: 140px;
    flex-shrink: 0;
    text-align: right;
}

.bar-label .label-title {
    font-size: 0.95rem;
    color: #a1a1a6;
    margin-bottom: 0.25rem;
}

.bar-label .label-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.bar-item.previous .label-value {
    color: #86868b;
}

.bar-item.ours .label-value {
    color: var(--color-accent);
}

.bar-track {
    flex: 1;
    height: 32px;
    background: #1d1d1f;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-item.previous .bar-fill {
    background: #86868b;
    width: 40%;
}

.bar-item.ours .bar-fill {
    background: #2997ff;
    width: 94.41%;
}

@media (max-width: 600px) {
    .bar-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .bar-label {
        width: 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }

    .bar-track {
        width: 100%;
    }
}

/* Tech Stack - Dark */
.tech-stack-dark {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    list-style: none;
    padding: 0;
}

.tech-stack-dark li {
    background: #2d2d2f;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #a1a1a6;
    margin-bottom: 0;
}

/* GitHub Link - Dark */
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-top: 1rem;
}

.github-link:hover {
    text-decoration: underline;
}

/* Dark Footer for Project 1 */
.dark-footer {
    background: #000;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.dark-footer h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 1.5rem;
}

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

.dark-footer-links a {
    color: #a1a1a6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.dark-footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.dark-footer-links svg {
    width: 18px;
    height: 18px;
}

.dark-footer .copyright {
    font-size: 0.85rem;
    color: #6e6e73;
}

/* ==================== */
/* LIGHT THEME SECTIONS */
/* ==================== */

.section {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
}

.section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

/* Light Footer */
footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 2.5rem 0;
    text-align: center;
}

footer h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-links svg {
    width: 18px;
    height: 18px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Project 2/3 placeholder */
.project-hero {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 900px;
}

.project-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ==================== */
/* PROJECT 2 GREEN THEME */
/* ==================== */

.project2-content {
    min-height: calc(100vh - 48px);
    background: linear-gradient(180deg, #0a1a10 0%, #0f2818 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
}

.project2-inner {
    max-width: 700px;
    text-align: center;
}

.project2-inner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.project2-subtitle {
    font-size: 1.1rem;
    color: #4ade80;
    font-weight: 500;
    margin-bottom: 3rem;
}

.project2-paragraphs {
    text-align: left;
    margin-bottom: 3rem;
}

.project2-paragraphs p {
    color: #b8c5b8;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project2-paragraphs p:last-child {
    margin-bottom: 0;
}

.project2-paragraphs strong {
    color: #fff;
    font-weight: 400;
}

.project2-paragraphs em {
    color: #fff;
    font-style: normal;
}

.project2-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.project2-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.project2-btn.primary {
    background: #10b981;
    color: #000;
    border: none;
}

.project2-btn.primary:hover {
    background: #34d399;
    text-decoration: none;
}

.project2-btn.secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.project2-btn.secondary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    text-decoration: none;
}

.project2-btn svg {
    width: 18px;
    height: 18px;
}

/* Project 2 Research Section */
.project2-research-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(74, 222, 128, 0.2);
}

.project2-diagram {
    margin-bottom: 3rem;
    text-align: center;
}

.project2-diagram img {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.diagram-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #7a9a7a;
    font-style: italic;
}

.project2-about-research {
    text-align: left;
    margin-bottom: 3rem;
}

.project2-about-research h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4ade80;
    margin-bottom: 1.5rem;
    text-align: center;
}

.project2-about-research p {
    color: #b8c5b8;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.project2-about-research strong {
    color: #fff;
    font-weight: 500;
}

.project2-research-links {
    margin-top: 3rem;
}

.project2-research-links h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4ade80;
    margin-bottom: 1.5rem;
    text-align: center;
}

.research-links-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.research-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(74, 222, 128, 0.4);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
}

.research-link-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #4ade80;
    text-decoration: none;
}

.research-link-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 600px) {
    .project2-about-research h3,
    .project2-research-links h3 {
        font-size: 1.25rem;
    }

    .research-link-btn {
        font-size: 0.85rem;
        padding: 0.85rem 1.5rem;
    }
}

.project2-footer {
    background: #061208;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(74, 222, 128, 0.2);
}

.project2-footer h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

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

.project2-footer-links a {
    color: #b8c5b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.project2-footer-links a:hover {
    color: #4ade80;
    text-decoration: none;
}

.project2-footer-links svg {
    width: 18px;
    height: 18px;
}

.project2-footer p {
    font-size: 0.85rem;
    color: #5a6a5a;
}

@media (max-width: 600px) {
    .project2-inner h1 {
        font-size: 1.75rem;
    }

    .project2-paragraphs p {
        font-size: 1rem;
    }
}

/* ==================== */
/* PROJECT 3 BLUE THEME */
/* ==================== */

.project3-content {
    min-height: calc(100vh - 48px);
    background: linear-gradient(180deg, #0a1628 0%, #0f2847 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.project3-inner {
    max-width: 700px;
    text-align: center;
}

.project3-inner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.project3-subtitle {
    font-size: 1.1rem;
    color: #4da6ff;
    font-weight: 500;
    margin-bottom: 3rem;
}

.project3-text {
    text-align: left;
    margin-bottom: 3rem;
}

.project3-text p {
    color: #b8c5d6;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project3-text strong {
    color: #fff;
}

.project3-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: #4da6ff;
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.project3-link:hover {
    background: #7bbfff;
    text-decoration: none;
}

/* Project 3 Details Section */
.project3-details-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(77, 166, 255, 0.2);
}

.project3-image {
    margin-bottom: 3rem;
    text-align: center;
}

.project3-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(77, 166, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #7a9aaa;
    font-style: italic;
}

.project3-about {
    text-align: left;
}

.project3-about h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #4da6ff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.project3-about h3:first-of-type {
    margin-top: 0;
}

.project3-about p {
    color: #b8c5d6;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project3-about strong {
    color: #fff;
    font-weight: 500;
}

@media (max-width: 600px) {
    .project3-about h3 {
        font-size: 1.15rem;
    }

    .project3-about p {
        font-size: 1rem;
    }
}

.project3-footer {
    background: #061220;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(77, 166, 255, 0.2);
}

.project3-footer h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

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

.project3-footer-links a {
    color: #b8c5d6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.project3-footer-links a:hover {
    color: #4da6ff;
    text-decoration: none;
}

.project3-footer-links svg {
    width: 18px;
    height: 18px;
}

.project3-footer p {
    font-size: 0.85rem;
    color: #5a6a7a;
}

/* ==================== */
/* PROJECT 4 IRON BROWN THEME */
/* ==================== */

.project4-content {
    min-height: calc(100vh - 48px);
    background: linear-gradient(180deg, #1a1512 0%, #231c16 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
}

.project4-inner {
    max-width: 750px;
    width: 100%;
}

.project4-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project4-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(194, 120, 62, 0.2);
    border: 1px solid rgba(194, 120, 62, 0.5);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c2783e;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project4-status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #c2783e;
    border-radius: 50%;
    animation: pulse-iron 2s infinite;
}

@keyframes pulse-iron {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.project4-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.project4-subtitle {
    font-size: 1.1rem;
    color: #c2783e;
    font-weight: 500;
    margin-bottom: 1rem;
}

.project4-tech-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project4-tech-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.project4-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.project4-tech-stack span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #8a7a6a;
}

/* Project 4 Progress section */
.project4-progress {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project4-progress h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.project4-progress-intro {
    font-size: 0.95rem;
    color: #b8a898;
    margin-bottom: 2rem;
}

.project4-progress-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project4-progress-item {
    text-align: center;
}

.project4-progress-item img {
    width: 100%;
    height: auto;
    border: 1px solid rgba(194, 120, 62, 0.25);
    display: block;
}

.project4-progress-caption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #8a7a6a;
    font-style: italic;
}

@media (max-width: 600px) {
    .project4-progress-grid {
        grid-template-columns: 1fr;
    }
}

.project4-description {
    text-align: left;
    margin-bottom: 3rem;
}

.project4-description h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.project4-description p {
    color: #b8a898;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.project4-description p:last-child {
    margin-bottom: 0;
}

.project4-description strong {
    color: #fff;
    font-weight: 400;
}

.project4-description em {
    color: #b8a898;
    font-style: normal;
}

/* Phase Roadmap */
.project4-roadmap {
    margin-bottom: 3rem;
}

.project4-roadmap h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.phase-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.phase-table th {
    text-align: left;
    padding: 0.85rem 1rem;
    background: rgba(194, 120, 62, 0.1);
    color: #c2783e;
    font-weight: 600;
    border-bottom: 1px solid rgba(194, 120, 62, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.phase-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #b8a898;
}

.phase-table tr:last-child td {
    border-bottom: none;
}

.phase-table .phase-id {
    font-family: var(--font-mono);
    color: #8a7a6a;
    font-weight: 500;
    width: 60px;
}

.phase-table .phase-goal {
    color: #d0c4b8;
}

.phase-status {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.phase-status.completed {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.phase-status.current {
    background: rgba(194, 120, 62, 0.2);
    color: #c2783e;
    border: 1px solid rgba(194, 120, 62, 0.4);
}

.phase-status.next {
    background: rgba(100, 149, 237, 0.12);
    color: #6495ed;
    border: 1px solid rgba(100, 149, 237, 0.25);
}

.phase-status.planned {
    background: rgba(100, 100, 100, 0.1);
    color: #777;
    border: 1px solid rgba(100, 100, 100, 0.2);
}

.phase-status.paused {
    background: rgba(234, 179, 8, 0.12);
    color: #ca8a04;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Current Focus Card */
.project4-focus {
    background: rgba(194, 120, 62, 0.08);
    border: 1px solid rgba(194, 120, 62, 0.25);
    padding: 2rem;
}

.project4-focus h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c2783e;
    margin-bottom: 1rem;
}

.project4-focus p {
    color: #b8a898;
    line-height: 1.8;
    margin-bottom: 0;
}

.project4-focus strong {
    color: #fff;
    font-weight: 400;
}

.project4-footer {
    background: #12100d;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(194, 120, 62, 0.15);
}

.project4-footer h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

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

.project4-footer-links a {
    color: #a89080;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.project4-footer-links a:hover {
    color: #c2783e;
    text-decoration: none;
}

.project4-footer-links svg {
    width: 18px;
    height: 18px;
}

.project4-footer p {
    font-size: 0.85rem;
    color: #5a5048;
}

@media (max-width: 600px) {
    .project4-header h1 {
        font-size: 1.75rem;
    }

    .phase-table {
        font-size: 0.85rem;
    }

    .phase-table th,
    .phase-table td {
        padding: 0.65rem 0.5rem;
    }

    .project4-tech-stack span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ==================== */
/* Responsive */
/* ==================== */

@media (max-width: 600px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }

    .video-hero h1 {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .dark-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .results-highlight .big-stat {
        font-size: 3rem;
    }
}
