/* Global Styles */
:root {
    --text-color: #1c2042;
    --bg-color: #ffffff;
    --button-bg: #edb7b2;
}

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

body {
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    text-transform: uppercase;
    font-weight: bold;
}

p {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* Section 1: Landing */
#landing {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('../images/house.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /* Removed flex centering as logo is absolute positioned */
}

.landing-logo {
    position: absolute;
    top: 0rem;
    left: -6rem;
    width: 400px;
    max-width: 80%; /* Responsive width */
    height: auto;
    z-index: 10;
}

/* Section 2: Book Preview */
#books {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background-color: var(--bg-color);
}

.book-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    gap: 4rem;
}

.book-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.book-image img {
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

.book-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.book-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.book-short-desc {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    font-style: normal;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-long-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    line-height: 1.4;
}

.buy-button {
    display: inline-block;
    background-color: var(--button-bg);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 1rem;
    padding: 1rem 2rem;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

.buy-button:hover {
    opacity: 0.8;
}

/* Section 3: Gallery Preview */
#gallery-preview {
    width: 100%;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 3rem;
    align-items: center; /* Vertically center items */
}

.gallery-item {
    flex: 1;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}
/* ... existing styles ... */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    width: 100%;
    align-items: center; /* Vertically center items in grid rows */
}

.gallery-item:hover img {
    opacity: 0.8;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 0.5rem;
}

.gallery-item-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-style: normal;
    text-align: center;
    width: 100%;
}

.gallery-trigger-container {
    text-align: center;
}

.gallery-trigger {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 5px;
}

/* Section 4: About Me */
#about {
    width: 100%;
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
}

.about-container {
    max-width: 800px;
    text-align: center;
}

.about-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Section 5: Footer */
#footer {
    width: 100%;
    padding: 4rem 2rem;
    background-color: #f0f0f0; /* Slight grey for footer separation */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    width: 100%;
    margin-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Removed .footer-column:last-child rule */

.footer-heading {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 5px;
}

.footer-links {
    list-style: none;
    text-align: center;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-color);
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    text-decoration: none;
    color: var(--text-color);
    font-size: 2rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

/* Removed old .social-icon img and .social-icon:hover img rules as they are no longer needed */

.footer-bottom {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 2rem;
}


/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
}

.hidden {
    display: none !important;
}

/* Full Gallery Modal */
.full-screen-modal {
    background-color: var(--bg-color);
    flex-direction: column;
    overflow-y: auto;
    padding: 2rem;
}

.modal-header {
    width: 100%;
    padding-bottom: 2rem;
    position: relative; 
    background-color: var(--bg-color);
    z-index: 10;
    text-align: left;
}

.nav-btn {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    width: 100%;
    align-items: center;
}

/* Lightbox Modal */
.lightbox {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: white;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    z-index: 1001;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: none;
}

.lightbox-title {
    color: white;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
    font-style: normal;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .landing-logo {
        width: 250px;
        top: 1rem;
        left: -4rem;
    }

    .book-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .book-image {
        justify-content: center;
    }
    
    .book-details {
        align-items: center;
        text-align: center;
    }

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

    .preview-grid {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }
    
    .footer-column:last-child {
        align-items: center;
    }
    
    .footer-links {
        text-align: center;
    }
}