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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    background-color: #f5f5f5;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== NAVIGATION ===== */
nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.02em;
}

nav .nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: #2563eb;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    flex: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero p {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.hero .cta {
    display: inline-block;
    background: #4b5563;
    color: #ffffff;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.hero .cta:hover {
    background: #374151;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.projects-hero {
    min-height: auto;
    padding: 4rem 0 2rem 0;
    text-align: center;
}

.projects-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.projects-hero p {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== PROJECT GRID ===== */
.projects-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

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

.project-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.project-image {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e5e7eb;
}

.project-content {
    padding: 1.5rem;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.project-card p {
    font-family: Georgia, serif;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===== PROJECT PAGE ===== */
.project-header {
    background: #f9fafb;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.project-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

.project-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.project-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.project-section p {
    font-family: Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 1rem;
}

.project-section ul {
    font-family: Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #374151;
    margin-left: 1.5rem;
}

.project-section li {
    margin-bottom: 0.75rem;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1rem;
    margin: 2rem 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.process-column h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.process-column p {
    font-family: Georgia, serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #374151;
}

.role-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.role-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    aspect-ratio: 1;
}

.role-box h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

.role-box p {
    font-family: Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #374151;
}

.image-placeholder-square {
    width: 100%;
    aspect-ratio: 1;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1rem;
}

.project-image-full {
    display: block;
    width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-image-square {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===== FF-OCT SPECIFIC ===== */
.image-gallery {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f3f4f6;
    border-radius: 0.75rem;
    overflow: hidden;
    margin: 2rem 0;
}

.gallery-image {
    width: 100%;
    height: 100%;
    display: none;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-image.active {
    display: block;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-arrow:hover {
    background: #ffffff;
}

.gallery-arrow.left {
    left: 1rem;
}

.gallery-arrow.right {
    right: 1rem;
}

.gallery-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.gallery-btn:hover {
    background: #ffffff;
}

.poster-placeholder {
    width: 100%;
    height: 800px;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1rem;
    margin: 2rem 0;
}

/* ===== FOOTER ===== */
footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 3rem 0;
    margin-top: auto;
}

footer .container {
    text-align: center;
}

footer p {
    color: #6b7280;
    font-size: 0.9375rem;
}

footer a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.5rem;
}

footer a:hover {
    color: #374151;
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav .nav-links {
        gap: 1.5rem;
        font-size: 0.875rem;
    }

    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-container {
        flex-direction: column;
        gap: 2rem;
    }

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

    .hero-image img {
        max-width: 300px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

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

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

    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .role-image-grid {
        grid-template-columns: 1fr;
    }

    .project-header h1 {
        font-size: 2rem;
    }

    .image-gallery {
        height: 300px;
    }

    .poster-placeholder {
        height: 600px;
    }
}
