@import url('https://fonts.googleapis.com/css2?family=Anek+Gujarati:wght@100..800&display=swap');

/* =============================================
   COLOR SCHEME
   White:      #FFFFFF
   Black:      #000000
   Light Gray: #F5F5F5
   Mid Gray:   #D9D9D9
   Dark Gray:  #5C5C5C
   Accent:     #EBEBEB
============================================= */

/* =============================================
   BASE STYLES
============================================= */

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

body {
    font-family: 'Anek Gujarati', sans-serif;
    font-weight: 300;
    background-color: #F5F5F5;
    color: #000000;
    line-height: 1.6;
    /* Removed: padding-bottom: 120px — was adding dead space on every page */
}

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

h1 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 10px;
}

h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
}

h3 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 8px;
}

p {
    font-size: 18px;
    font-weight: 200;
    line-height: 1.8;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    background-color: #FFFFFF;
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo a {
    font-size: 20px;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #5C5C5C;
}

.nav-links {
    display: flex;
    gap: 50px;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

/* Animated underline on nav links */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #000000;
}

.nav-links a.active {
    color: #5C5C5C;
    font-weight: 400;
}

/* =============================================
   HERO BANNER (Homepage)
============================================= */

.hero-banner {
    background-color: #FFFFFF;
    padding: 120px 60px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    width: 100%;
}

/* =============================================
   PHOTO COLLAGE
============================================= */

.photo-collage {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-collage img {
    position: absolute;
    object-fit: cover;
    border: 5px solid #FFFFFF;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
}

.photo-collage img:hover {
    transform: scale(1.05) rotate(0deg) !important;
    opacity: 1 !important;
    z-index: 10;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.25);
}

.collage-center {
    width: 320px;
    height: 260px;
    z-index: 3;
    transform: rotate(-2deg);
}

.collage-left {
    width: 260px;
    height: 200px;
    left: 0px;
    top: 40px;
    z-index: 2;
    transform: rotate(-8deg);
    opacity: 0.85;
}

.collage-right {
    width: 260px;
    height: 200px;
    right: 0px;
    top: 40px;
    z-index: 2;
    transform: rotate(8deg);
    opacity: 0.85;
}

/* =============================================
   HERO TEXT
============================================= */

.hero-text {
    text-align: center;
}

.subheading {
    font-size: 20px;
    font-weight: 300;
    color: #5C5C5C;
    letter-spacing: 0.5px;
}

/* =============================================
   SECTION DIVIDERS
============================================= */

.section-divider {
    height: 80px;
    width: 100%;
    background: linear-gradient(to bottom, #FFFFFF 0%, #EBEBEB 100%);
}

.section-divider2 {
    height: 80px;
    width: 100%;
    background: linear-gradient(to bottom, #EBEBEB 0%, #D9D9D9 100%);
}

/* =============================================
   ABOUT SECTION
   Fixed: was height: 700px (caused overflow bleed).
   Now min-height + flex so it expands with content.
============================================= */

.about-section {
    background-color: #EBEBEB;
    min-height: 500px;
    padding: 100px 120px;
    display: flex;
    align-items: center;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.about-text {
    max-width: 550px;
}

.about-text p + p {
    margin-top: 16px;
}

.about-button {
    flex-shrink: 0;
}

.about-image img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
}

/* =============================================
   BUTTON
============================================= */

.button {
    display: inline-block;
    padding: 18px 52px;
    border-radius: 50px;
    background-color: #000000;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #5C5C5C;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* =============================================
   WORKS / GALLERY SECTION
   Fixed: was height: 965px (caused overflow bleed).
   Now min-height + auto layout.
   Fixed: works-title margin-bottom was 215px magic number.
============================================= */

.works-section {
    background-color: #D9D9D9;
    min-height: auto;
    padding: 100px 60px;
    text-align: center;
}

.works-title {
    font-size: 40px;
    font-weight: 200;
    color: #ffffff;
    letter-spacing: 10px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    background-color: #C8C8C8;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* =============================================
   PROJECTS PAGE
============================================= */

.page-header {
    background-color: #F5F5F5;
    padding: 80px 60px 60px;
    text-align: center;
}

.page-title {
    font-size: 56px;
    font-weight: 200;
    letter-spacing: 14px;
    color: #000000;
}

.projects-grid-section {
    background-color: #FFFFFF;
    padding: 80px 60px 100px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    text-decoration: none;
    color: #000000;
    display: block;
}

.project-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #D9D9D9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card:hover .project-image {
    transform: translateY(-6px);
    box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.15);
}

.project-card:hover .project-image img {
    opacity: 0.88;
    transform: scale(1.02);
}

.project-info {
    padding: 18px 4px 0;
    text-align: left;
}

.project-info h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 4px;
}

.project-info p {
    font-size: 14px;
    color: #5C5C5C;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* =============================================
   PHOTOGRAPHY PAGE (in main.css — base only)
   Full styles live in photography.css.
   Keeping only the legacy masonry rules for
   any pages that still reference them.
============================================= */

.photography-banner {
    position: relative;
    height: 550px;
    overflow: hidden;
    background-color: #000000;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

.photography-banner:hover .banner-image {
    opacity: 0.85;
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-title {
    font-size: 64px;
    font-weight: 200;
    color: #FFFFFF;
    letter-spacing: 8px;
}

/* =============================================
   PAGE FOOTER SPACING
   Replaces the old body padding-bottom hack.
============================================= */

.page-footer-space {
    height: 80px;
}

/* =============================================
   MEDIA QUERY — 768px AND UNDER
============================================= */

@media (max-width: 768px) {

    nav {
        padding: 20px 30px;
    }

    .nav-links {
        gap: 28px;
    }

    .hero-banner {
        padding: 60px 30px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-section {
        min-height: unset;
        padding: 60px 30px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-text {
        max-width: 100%;
    }

    .about-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .works-section {
        padding: 60px 30px;
    }

    .works-title {
        font-size: 28px;
        letter-spacing: 6px;
        margin-bottom: 40px;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .page-header {
        padding: 60px 30px 40px;
    }

    .page-title {
        font-size: 40px;
        letter-spacing: 8px;
    }

    .projects-grid-section {
        padding: 60px 30px 80px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .photography-banner {
        height: 380px;
    }

    .banner-title {
        font-size: 44px;
    }

}

/* =============================================
   MEDIA QUERY — 520px AND UNDER
============================================= */

@media (max-width: 520px) {

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .collage-left,
    .collage-right {
        display: none;
    }

    .collage-center {
        position: static;
        width: 90%;
        height: auto;
        transform: none;
    }

    .works-title {
        font-size: 22px;
        letter-spacing: 4px;
    }

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

    .page-title {
        font-size: 32px;
        letter-spacing: 6px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .photography-banner {
        height: 280px;
    }

    .banner-title {
        font-size: 32px;
        letter-spacing: 4px;
    }

}
