/* ================================
   GLOBAL STYLES & RESET
   ================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

/* ================================
   NAVIGATION
   ================================ */

.nav {
    position: sticky;
    top: 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    padding: 1.5rem 0;
}

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

.nav-logo {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

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

.nav-menu li a {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-menu li a.active {
    border-bottom: 2px solid #000;
    padding-bottom: 0.25rem;
}

/* ================================
   HERO SECTION (HOME PAGE)
   ================================ */

.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-name {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-name span {
    display: block;
}

.measurements {
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: 4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.measurements .separator {
    opacity: 0.3;
}

.experience-section,
.contact-section {
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.experience-section h2,
.contact-section h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.experience-section p {
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.instagram-icon {
    vertical-align: middle;
}

/* ================================
   GALLERY PAGE
   ================================ */

.gallery-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.page-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 3rem; /* Updated from 4rem */
}

/* Added filter container and button styles */
.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid #000;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.filter-btn:hover {
    background-color: #000;
    color: #fff;
}

.filter-btn.active {
    background-color: #000;
    color: #fff;
}

/* Gallery Grid Layout
   - Desktop: 3 columns
   - Tablet: 2 columns
   - Mobile: 1 column
   - To adjust columns: modify grid-template-columns values
*/

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

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* Added hidden state for filtered items */
.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    opacity: 0.85;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ================================
   LIGHTBOX
   ================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
    padding: 0.5rem;
}

.lightbox-close:hover {
    opacity: 0.6;
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background-color: #f8f8f8;
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu li {
        border-top: 1px solid #e0e0e0;
    }

    .nav-menu li a {
        display: block;
        padding: 1.25rem 2rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .measurements {
        flex-direction: column;
        gap: 0.5rem;
    }

    .measurements .separator {
        display: none;
    }

    .gallery-page {
        padding: 3rem 1.5rem 4rem;
    }

    /* Change gallery to 2 columns on tablet */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Adjusted filter buttons for mobile */
    .filter-container {
        gap: 0.75rem;
        margin-bottom: 3rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Mobile (600px and below) */
@media (max-width: 600px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .hero-name {
        margin-bottom: 1.5rem;
    }

    .measurements {
        margin-bottom: 3rem;
        font-size: 0.9rem;
    }

    .experience-section,
    .contact-section {
        margin-bottom: 2.5rem;
    }

    .gallery-page {
        padding: 2rem 1rem 3rem;
    }

    .page-title {
        margin-bottom: 2rem; /* Updated from 3rem */
    }

    /* Further adjusted filter buttons for small screens */
    .filter-container {
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    /* Change gallery to 1 column on mobile */
    .gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
    }
}
