:root {
    --primary-cream: #F5F1E8;
    --secondary-cream: #EDE7DB;
    --dark-text: #2C2C2C;
    --light-text: #666666;
    --accent-gold: #C9A86A;
    --white: #FFFFFF;
    --hover-overlay: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-text);
    background-color: var(--primary-cream);
    background-image: url('../static/images/noise2.png');
    background-repeat: repeat;
    background-size: 300px 300px;
    line-height: 1.6;
}

.portfolio-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* Keeps aspect ratio, fits inside */
    transition: transform 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-cream);
    opacity: 0.7;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--dark-text);
    text-decoration: none;
    text-transform: uppercase;
}

.logo-image {
    height: 150px;
    width: auto;
    max-height: 80px;
    max-width: 300px;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--dark-text);
    transition: all 0.3s ease;
}

.hero {
    height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-cta-wrapper {
    text-align: center;
    padding: 2rem 1rem;
    background-color: transparent;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-text);
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.hero-gallery {
    height: 60vh;  /* Shorter than home hero */
}

.hero-gallery .hero-content {
    position: absolute;
    top: 10%;  /* Adjust percentage - lower = higher on screen */
    left: 50%;
    transform: translateX(-50%);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--dark-text);
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--dark-text);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--dark-text);
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-header h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--secondary-cream);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.gallery-overlay p {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.9;
}

.set-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.set-header {
    text-align: center;
    margin-bottom: 3rem;
}

.set-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.set-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-gold);
}

.set-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.set-gallery-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background-color: var(--secondary-cream);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.set-gallery-grid img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image {
    width: 100%;
    height: 500px;
    background-color: var(--secondary-cream);
    display: flex; /* Add this */
    justify-content: center; /* Center image horizontally */
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.about-text p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.contact-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

.contact-form {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--secondary-cream);
    background-color: var(--primary-cream);
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark-text);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--dark-text);
    color: var(--white);
    border: 2px solid var(--dark-text);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: transparent;
    color: var(--dark-text);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

footer {
    background-color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.footer-content p {
    color: var(--light-text);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.9;
    max-width: 200px;
}

.footer-floating-image {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.3s ease;
    z-index: 0;
}

.footer-floating-image.small {
    width: 100px;
    height: 100px;
}

.footer-floating-image.medium {
    width: 150px;
    height: 120px;
}

.footer-floating-image.large {
    width: 180px;
    height: 150px;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--dark-text);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--accent-gold);
}

.scattered-image {
    position: absolute;
    /* border-radius: 5px; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 1;
}

.scattered-image.small {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.scattered-image.medium {
    width: 200px;
    height: 250px;
    object-fit: cover;
}

.scattered-image.large {
    width: 250px;
    height: 300px;
    object-fit: cover;
}

/* Masonry Gallery Layout */
.set-gallery-masonry {
    column-count: 3;
    column-gap: 1rem;
}

.set-gallery-masonry img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 3px;
}

.set-gallery-masonry img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .logo-image {
        height: 35px;
        max-width: 150px;
        margin-left: 0;
    }

    .set-gallery-masonry {
        column-count: 2;
        column-gap: 0.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero {
        height: 0;
        margin-top: 0px;
        padding: 0;
        padding-bottom: 80%;
        position: relative;
        background-color: transparent;
        overflow: hidden;
    }

    .hero-bg {
        background-size: contain;
        background-position: center top;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 40px;
        left: 0;
    }

    .hero-overlay {
        display: none;
    }


    .hero-content {
        display: none;
    }

    .hero-cta-wrapper {
        padding: 0.5rem 1rem;
    }

    .hero-gallery {
        height: 0;
        padding-bottom: 100%;  /* Adjust ratio */
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-item {
        aspect-ratio: 3/4;
    }

    .set-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .set-gallery-grid img {
        height: 200px;
    }

    .scattered-image {
        display: none;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .footer-logo {
        height: 40px;
        max-width: 150px;
    }

    .footer-floating-image {
        display: none;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-bg {
        aspect-ratio: 3/4;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .gallery-grid,
    .set-gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .set-gallery-grid img {
        height: 300px;
    }

    @media (max-width: 480px) {
    .set-gallery-masonry {
        column-count: 1;
        column-gap: 0;
    }
}