* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #000000;
    font-weight: 300;
}

.container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

a {
    color: #000000;
    text-decoration: none;
    font-weight: 400;
}

a:hover {
    text-decoration: underline;
}

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

/* Header */
header {
    padding: 15px 0;
    border-bottom: 1px solid #eeeeee;
}

.architect-name-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

/* Hero Section */
#hero {
    padding: 0;
    margin-top: 4rem;
    margin-bottom: 20px;
    line-height: 1;
}

#hero h1 {
    margin: 0;
    padding: 0;
    font-size: 10rem;
    line-height: 0.9;
}

#hero .tagline {
    font-size: 1.2rem;
    color: #555555;
    max-width: 700px;
    margin: 0;
    padding-top: 0;
}

/* Gallery Section */
#gallery h2 {
    text-align: center;
    margin-bottom: 0.5em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
    overflow-x: auto; /* Horizontal scrolling if needed */
}

.gallery-item {
    background-color: #f9f9f9;
    border: none;
    position: relative;
    overflow: hidden;
    height: 40rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(50%);
}

.project-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 1.0);
    color: black;
    display: flex;
    flex-direction: column;
    text-align:end;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    /* transition: opacity 0.3s; */
    /* opacity: 0; */
}

.project-description h3 {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 4rem;
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
    max-height: 100%;
}

.gallery-item:hover .project-description {
    transform: translateY(0);
    /* opacity: 1; */
}

/* About/Contact Section */
#about-contact {
    padding: 40px 0;
    border-top: 1px solid #eeeeee;
    margin-top: 40px;
}

#about-contact h2 {
    margin-bottom: 0.75em;
}

#about-contact p {
    max-width: 700px; /* Limit width for readability */
}

/* Footer */
footer {
    text-align: center;
    padding: 0;
    border-top: 1px solid #eeeeee;
    margin-top: 0;
    font-size: 0.9rem;
    color: #777777;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #hero {
        margin-top: 2rem;
        padding: 20px 0;
    }

    #hero h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .gallery-item {
        height: 25rem;
    }

    .project-description h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    #hero h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    #hero .tagline {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gallery-item {
        height: auto;
    }

    .gallery-item img {
        height: 16rem;
    }

    .project-description {
        position: static;
        transform: none;
        background-color: #ffffff;
        padding: 0.6rem 0;
        text-align: left;
    }

    .project-description h3 {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 1.2rem;
        letter-spacing: 0;
    }

    #about-contact p {
        font-size: 0.95rem;
    }
}

/* Project Pages */
.project-page {
    padding: 2rem 0;
}

.project-page h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.project-page .back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.pdf-viewer {
    width: 100%;
    height: 85vh;
    border: none;
}

.pdf-download {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.pdf-mobile-fallback {
    display: none;
    padding: 3rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.pdf-mobile-fallback a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    border: 1px solid #000;
    font-weight: 400;
}

.doc-section {
    margin-bottom: 2rem;
}

.doc-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.doc-list {
    list-style: none;
    padding: 0;
}

.doc-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
}

.doc-list a {
    font-weight: 300;
    font-size: 0.95rem;
}

/* Touch devices */
@media (hover: none) {
    .pdf-viewer {
        display: none;
    }

    .pdf-mobile-fallback {
        display: block;
    }
}

@media (max-width: 768px) {
    .project-page h1 {
        font-size: 2.5rem;
    }

    .pdf-viewer {
        height: 70vh;
    }

    .doc-section h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .project-page h1 {
        font-size: 1.8rem;
    }

    .project-page {
        padding: 1rem 0;
    }

    .project-page .back-link {
        margin-bottom: 1rem;
    }
}
