/* ═══════════════════════════════════════════════════════════════
   Prithvi Mandava Photography — Main Stylesheet
   Design A: Gallery Wall
   ═══════════════════════════════════════════════════════════════ */

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

body {
    font-family: 'DM Sans', sans-serif;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 52px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.nav-logo {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.5; }

.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #1a1a1a;
    margin: 4px 0;
    transition: 0.2s;
}

/* ── Sections ── */
section { padding: 100px 32px 60px; }
section:first-of-type { padding-top: 72px; }

.section-title {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 32px;
}

/* ── Primary Filter Tabs ── */
.filters {
    display: flex;
    gap: 32px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.filters button {
    background: none;
    border: none;
    padding: 0 0 14px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 0.03em;
    cursor: pointer;
    color: #999;
    transition: color 0.25s;
    position: relative;
}

.filters button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 2px;
    background: #1a1a1a;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.filters button:hover { color: #1a1a1a; }
.filters button.active { color: #1a1a1a; font-weight: 500; }
.filters button.active::after { transform: scaleX(1); }

/* ── Secondary Filter Row (sub-tags) ── */
.filters-sub {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    min-height: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.25s, min-height 0.25s;
}

.filters-sub:empty {
    margin-bottom: 28px;
}

.filters-sub button {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 5px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 0.02em;
    cursor: pointer;
    color: #888;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.filters-sub button:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.filters-sub button.active {
    color: #fff;
    background: #1a1a1a;
    border-color: #1a1a1a;
}

/* ── Masonry Grid ── */
.masonry {
    columns: 4;
    column-gap: 8px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.masonry-item.hidden {
    display: none;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.masonry-item:hover img {
    transform: scale(1.03);
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 960px;
    margin: 0 auto;
    align-items: center;
}

.about-img img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.about-text h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
}

/* ── Print Shop ── */
.print-shop {
    text-align: center;
    padding: 100px 32px;
    background: #fafafa;
}

.print-shop h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 16px;
}

.print-shop p {
    font-size: 15px;
    color: #666;
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.btn-shop {
    display: inline-block;
    padding: 12px 36px;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-shop:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ── Contact ── */
.contact {
    max-width: 560px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 32px;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
    color: #1a1a1a;
}

.contact input:focus,
.contact textarea:focus {
    border-color: #1a1a1a;
}

.contact textarea {
    resize: vertical;
    min-height: 100px;
}

.contact button {
    align-self: flex-start;
    padding: 12px 36px;
    border: 1px solid #1a1a1a;
    background: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    color: #1a1a1a;
}

.contact button:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 48px 32px;
    border-top: 1px solid #f0f0f0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.social-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s;
}

.social-links a:hover { opacity: 0.5; }

footer small {
    font-size: 12px;
    color: #999;
}

/* ── Lightbox with nav arrows ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.97);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    z-index: 210;
    line-height: 1;
    transition: opacity 0.2s;
}

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

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    z-index: 210;
    padding: 16px;
    line-height: 1;
    transition: opacity 0.2s;
    user-select: none;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 0.4; }

/* ── Mobile Menu ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 52px; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.mobile-menu.active { display: flex; }
.mobile-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 18px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .masonry { columns: 3; }
}

@media (max-width: 900px) {
    .masonry { columns: 3; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
    .masonry { columns: 2; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    section { padding: 80px 16px 40px; }
    section:first-of-type { padding-top: 64px; }
    .print-shop { padding: 60px 16px; }
    .filters { gap: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .filters button { white-space: nowrap; flex-shrink: 0; }
    .lightbox-prev { left: 4px; font-size: 36px; }
    .lightbox-next { right: 4px; font-size: 36px; }
}
