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

body {
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 4rem;
    background: #fff;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: normal;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.nav-brand a:hover {
    opacity: 0.6;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-links a.active {
    text-decoration: underline;
}

/* Main Container */
.container {
    margin-top: 100px;
    padding: 0 2rem;
}

/* Main Project Gallery */
.project-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.project-item {
    position: relative;
}

.project-item img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.project-item h2 {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    font-weight: normal;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover h2 {
    opacity: 1;
}

.project-item:hover img {
    opacity: 0.9;
}

/* Project Detail Gallery */
.project-detail-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.project-detail-item img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    display: block;
}

/* Footer */
footer {
    padding: 4rem;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Media Queries */
@media (min-width: 768px) {
    .project-gallery {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1rem 2rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .container {
        margin-top: 120px;
        padding: 0 1rem;
    }

    .project-item img {
        height: 50vh;
    }
    
    .project-item h2 {
        bottom: 1rem;
        font-size: 1rem;
    }
}

/* Hover States */
.nav-brand:hover,
.footer-copyright:hover {
    opacity: 0.6;
}

/* Additional Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    letter-spacing: 1px;
}

.about-content,
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.about-content p,
.contact-content p {
    margin-bottom: 2rem;
    font-size: 1.3rem;
    line-height: 1.8;
    letter-spacing: 0.5px;
    text-align: center;
}

.about-content p:first-child,
.contact-content p:first-child {
    font-size: 1.3rem;
    text-align: center;
}

.contact-content h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: normal;
    letter-spacing: 2px;
}

/* Ensure line breaks maintain center alignment */
.contact-content br {
    display: block;
    content: "";
    margin: 0.5rem 0;
}

.about-content a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: opacity 0.3s ease;
}

.about-content a:hover {
    opacity: 0.6;
}