/* Base styles */
html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    letter-spacing: 1.1px;
}

body,
html {
    width: 100%;
    height: 100%;
    background: #ffffff;
    font-family: 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Helvetica', sans-serif;
}

/* Header styles */
.header {
    background-color: white;
    padding: 10px 20px;
    box-shadow: 0 4px 2px -2px gray;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
}

.header img {
    height: 100px;
}

.site-name {
    margin-left: 20px;
    font-size: 40px;
    color: rgb(48, 43, 43);
    font-family: 'EB Garamond', serif;
    animation: slideInFromTop 3s ease-in-out;
}

.nav {
    margin-left: auto;
    margin-top: 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-family: 'EB Garamond', serif;
    position: relative;
    display: inline-block;
}

.nav a::after,
.nav a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #000000, #f1dbec);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.nav a::before {
    top: -15px;
    transform-origin: left;
}

.nav a:hover::after,
.nav a:hover::before {
    transform: scaleX(1);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1000;
    padding: 10px;
    background-color: transparent;
    border: none;
    margin-left: 15px;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 25px;
    background-color: black;
    margin: 5px 0;
    transition: 0.4s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* First Aesthetic Gradient Background */
.aesthetic-background {
    height: 90vh;
    width: 100%;
    background: linear-gradient(135deg, 
                #3c2414 0%, /* Dark Brown */
                #8b5a2b 35%, /* Medium Brown */
                #d2b48c 70%, /* Light Brown/Tan */
                #ffffff 100%); /* White */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
    background-size: cover;
    background-attachment: fixed;
}

.aesthetic-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h20v20H0z" fill="%23ffffff" fill-opacity="0.05"/%3E%3C/svg%3E');
    opacity: 0.3;
}

/* Second Aesthetic Gradient Background (white to dark brown) */
.aesthetic-background-reverse {
    height: 90vh;
    width: 100%;
    background: linear-gradient(135deg, 
                #ffffff 0%, /* White */
                #d2b48c 30%, /* Light Brown/Tan */
                #8b5a2b 65%, /* Medium Brown */
                #3c2414 100%); /* Dark Brown */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
    background-size: cover;
    background-attachment: fixed;
}

.aesthetic-background-reverse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h20v20H0z" fill="%23ffffff" fill-opacity="0.05"/%3E%3C/svg%3E');
    opacity: 0.3;
}

.content-overlay {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 800px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeIn 1.5s ease-in-out;
}

/* Flex container for the second section */
.flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 90%;
    gap: 30px;
}

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

.text-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-family: 'EB Garamond', serif;
    letter-spacing: 1px;
}

.text-content p {
    font-size: 1.8rem;
    font-family: 'EB Garamond', serif;
    margin-bottom: 20px;
}

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

.author-image {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.author-image:hover {
    transform: scale(1.02);
}

/* Button style */
.learn-more-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 25px;
    background: white;
    color: black;
    text-transform: uppercase;
    font-weight: bold;
    border: 2px solid black;
    transition: 0.3s;
    text-decoration: none;
}

.learn-more-button:hover {
    background: #8B4513;
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromTop {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.content-overlay h2 {
    font-size: 4.5rem;
    margin-bottom: 30px;
    font-family: 'EB Garamond', serif;
    letter-spacing: 1px;
}

.content-overlay p {
    font-size: 2.2rem;
    font-weight: 400;
    font-family: 'EB Garamond', serif;
    letter-spacing: 1px;
}

/* Third section with image background */
.image-background-section {
    min-height: 90vh;
    width: 100%;
    background-image: url('images/second.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 50px 0;
}

.image-background-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for better text readability */
    z-index: 1;
}

.image-background-section .content-overlay {
    position: relative;
    z-index: 2;
}

.mockup-container {
    width: 100%;
    margin: 30px auto;
    text-align: center;
    max-width: 500px;
}

.mockup-image {
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border-radius: 5px;
}

.mockup-image:hover {
    transform: scale(1.02);
}


.image-background-section-alt {
    min-height: 90vh;
    width: 100%;
    background-image: url('images/third.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 50px 0;
}

.image-background-section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for better text readability */
    z-index: 1;
}

.image-background-section-alt .content-overlay {
    position: relative;
    z-index: 2;
}

.gallery-container {
    width: 100%;
    margin: 30px auto;
    text-align: center;
    max-width: 600px;
}

.gallery-image {
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border-radius: 5px;
}

.gallery-image:hover {
    transform: scale(1.02);
}


/* Footer */
.footer {
    background-color: white;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 -4px 2px -2px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    position: relative;
}


.footer p {
    color: black;
    font-size: 18px;
    font-family: 'EB Garamond', serif;
    margin: 0;
}

.footer .social-icons {
    margin-top: 10px;
}

.footer .social-icons a {
    color: black;
    margin: 0 10px;
    font-size: 24px;
    transition: color 0.3s;
}

.footer .social-icons a:hover {
    color: #8B4513;
}

/* Media queries for better global responsiveness */
@media (max-width: 1200px) {
    .content-overlay h2 {
        font-size: 4rem;
    }
    
    .text-content h2 {
        font-size: 3rem;
    }
    
    .content-overlay p {
        font-size: 2rem;
    }
    
    .text-content p {
        font-size: 1.6rem;
    }
    
    .flex-container {
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .aesthetic-background,
    .aesthetic-background-reverse,
    .image-background-section-alt,
    .image-background-section {
        height: 80vh;
    }
    
    .content-overlay h2 {
        font-size: 3.5rem;
    }
    
    .content-overlay p {
        font-size: 1.8rem;
    }
    
    .flex-container {
        flex-direction: column;
        width: 90%;
    }
    
    .text-content {
        order: 1;
        text-align: center;
        margin-bottom: 30px;
        width: 100%;
    }

    .text-content h2 {
        font-size: 2.8rem;
        /* No white-space: nowrap to allow wrapping */
    }
    
    .text-content p {
        font-size: 1.5rem;
    }
    
    .image-content {
        order: 2;
        width: 80%;
    }
    
    .author-image {
        max-width: 100%;
    }

    .mockup-container {
        max-width: 400px;
        margin: 25px auto;
    }
    
    .gallery-container {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .aesthetic-background,
    .aesthetic-background-reverse,
    .image-background-section-alt,
    .image-background-section {
        height: 70vh;
        background-attachment: scroll;
    }
    
    .logo-container {
        margin-right: 0;
        flex-grow: 1;
    }
    
    .nav {
        order: 2;
        width: auto;
        margin-top: 0;
        position: static;
    }
    
    .hamburger-menu {
        display: block;
        position: relative;
        top: auto;
        right: auto;
    }
    
    .nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        display: none;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 0;
        z-index: 100;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav ul.show {
        display: flex;
    }
    
    .nav ul li {
        text-align: center;
        padding: 10px 15px;
    }
    
    .site-name {
        font-size: 28px;
    }
    
    .header img {
        height: 60px;
    }
    
    .aesthetic-background,
    .aesthetic-background-reverse {
        height: 70vh;
        background-attachment: scroll;
    }
    
    .content-overlay h2 {
        font-size: 2.8rem;
    }
    
    .content-overlay p {
        font-size: 1.5rem;
    }
    
    .text-content h2 {
        font-size: 2.5rem;
    }
    
    .text-content p {
        font-size: 1.3rem;
    }
    
    .learn-more-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .image-content {
        width: 90%;
    }

    .mockup-container {
        max-width: 350px;
        margin: 20px auto;
    }
    
    .gallery-container {
        max-width: 400px;
    }
    
    body, html {
        background-attachment: scroll;
    }
}

@media (max-width: 576px) {
    .aesthetic-background,
    .aesthetic-background-reverse,
    .image-background-section-alt,
    .image-background-section {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }
    
    .content-overlay h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .content-overlay p {
        font-size: 1.2rem;
    }
    
    .text-content h2 {
        font-size: 2rem;
    }
    
    .text-content p {
        font-size: 1.1rem;
    }
    
    .learn-more-button {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .image-content {
        width: 100%;
    }
    
    .flex-container {
        gap: 20px;
        width: 95%;
    }

    .mockup-container {
        max-width: 280px;
        margin: 15px auto;
    }

    .gallery-container {
        max-width: 320px;
    }

}

@media (max-width: 380px) {
    .content-overlay h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .content-overlay p {
        font-size: 1rem;
    }
    
    .text-content h2 {
        font-size: 1.6rem;
    }
    
    .text-content p {
        font-size: 0.9rem;
    }
    
    .learn-more-button {
        padding: 8px 12px;
        font-size: 0.7rem;
        margin-top: 15px;
    }

    .gallery-container {
        max-width: 240px;
        margin: 10px auto;
    }
}