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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.6;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: 'Manrope', sans-serif;
    text-decoration: none;
    color: #000;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #999;
}

.nav-link.admin {
    border: 1px solid #000;
    padding: 8px 16px;
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    font-family: 'Manrope', sans-serif;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Projects Section */
.projects-section {
    background: #fff;
    padding: 60px 40px 80px;
    min-height: 100vh;
}

.info-section {
    background: #fff;
    padding: 50px 40px 20px;
}

.info-section h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 12px;
}

.info-section p {
    max-width: 760px;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

.info-section a {
    color: #000;
}

.info-section-contact {
    padding-top: 18px;
    padding-bottom: 70px;
}

.contact-panel {
    border: 1px solid #d8d8d8;
    background: #fafafa;
    padding: 42px;
}

.contact-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #777;
    font-size: 12px;
    margin-bottom: 10px;
}

.contact-panel h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.05;
    margin-bottom: 14px;
}

.contact-panel p {
    color: #555;
    max-width: 760px;
    margin-bottom: 24px;
}

.contact-panel .contact-cta {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: #111;
    padding: 12px 18px;
    font-size: 13px;
    letter-spacing: 0.02em;
    border: 1px solid #111;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-panel .contact-cta:hover {
    color: #111;
    background: transparent;
}

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

/* Projects Header Layout */
.projects-header {
    margin-bottom: 60px;
}

.projects-header h1 {
    font-family: 'Archivo', sans-serif;
    font-size: 76px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.projects-controls {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
    align-items: start;
}

.projects-description {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    max-width: 400px;
}

/* Filter Buttons */
.filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 31px;
    color: #999;
    cursor: pointer;
    text-align: left;
    text-transform: capitalize;
    padding: 2px 0;
    transition: all 0.3s ease;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.filter-btn:hover,
.filter-btn.active {
    color: #000;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.project-card {
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 20px;
    border-radius: 0;
}

.project-image-link {
    display: block;
}

.project-content {
    padding: 0;
}

.project-title {
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.project-description {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    padding: 5px 10px;
    background: #f5f5f5;
    color: #000;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
    grid-column: 1 / -1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    z-index: 2001;
    background: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
}

.modal-body {
    padding: 40px;
}

#modalTitle {
    font-family: 'Archivo', sans-serif;
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 800;
}

#modalDescription {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.8;
}

.modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.modal-tags .tag {
    background: #f5f5f5;
}

.modal-button {
    display: inline-block;
    padding: 14px 32px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.modal-button:hover {
    background: #333;
}

/* Footer */
.footer {
    background: #f5f5f5;
    color: #666;
    text-align: center;
    padding: 40px 20px;
    font-size: 12px;
    border-top: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-controls {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 17px;
        letter-spacing: 0.01em;
    }

    .header-wrapper {
        padding: 16px 20px;
    }

    .nav {
        display: none;
        flex-direction: column;
        gap: 16px;
        position: absolute;
        top: 60px;
        right: 20px;
        background: white;
        padding: 20px;
        border: 1px solid #e0e0e0;
        min-width: 180px;
        z-index: 999;
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .projects-section {
        padding: 40px 20px;
    }

    .info-section,
    .info-section-contact {
        padding: 32px 20px 10px;
    }

    .info-section-contact {
        padding-bottom: 40px;
    }

    .contact-panel {
        padding: 24px;
    }

    .contact-panel h2 {
        font-size: 30px;
    }

    .projects-header h1 {
        font-size: 48px;
    }

    .filter-btn {
        font-size: 22px;
    }

    .projects-controls {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .project-image {
        height: 250px;
    }

    .modal-body {
        padding: 24px;
    }

    #modalTitle {
        font-size: 22px;
    }
}
