/* ================= GLOBAL STYLES ================= */

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

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    background: #f0f0eb;
    color: #333;
    line-height: 1.7;

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

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 60px;
    display: flex;
    justify-content: center;
    z-index: 1000;
    transition: 0.35s ease;
    background: transparent;
}

.main-header.scrolled {
    background: #f0f0eb;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 18px 60px;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: #fff;
    transition: 0.3s;
}

.main-header.scrolled .logo {
    color: #000;
}

.nav-links a {
    margin-left: 30px;
    font-size: 1rem;
    color: #fff;
    transition: 0.3s;
}

.main-header.scrolled .nav-links a {
    color: #000;
}

.nav-links a:hover {
    opacity: 0.7;
}


/* ================= MOBILE MENU ================= */
.hamburger {
    display: none;
    width: 30px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    margin-bottom: 6px;
    transition: 0.3s;
}

.main-header.scrolled .hamburger span {
    background: #000;
}

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

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

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


/* ================= MOBILE DROPDOWN ================= */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        background: #f0f0eb;
        width: 250px;
        height: 100vh;
        padding-top: 40px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        transition: 0.3s ease;
        box-shadow: -2px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links a {
        color: #000 !important;
        margin: 20px 25px;
        font-size: 1.1rem;
    }

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

    .hamburger {
        display: block;
    }
}
}
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #222;
}

section {
    padding: 80px 60px;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ================= HERO SECTION ================= */

.hero {
    height: 100vh;
    min-height: 100vh;
    background: url('../images/homepage/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    position: relative;
    padding: 0 20px 18vh 20px;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.6rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 34px;
    background: #ffffff;
    color: #000;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #e8e8e8;
}


/* ================= PROJECTS SECTION ================= */

.projects-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 450px;
    display: block;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

.project-card:hover img {
    transform: scale(1.05);
    opacity: 0.95;
}

.project-title {
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 0px 0px 6px rgba(0,0,0,0.7);
    font-weight: 600;
}


/* ================= BLOG SECTION ================= */

.blog-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.blog-card {
    background: #f0f0eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 25px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card h3 {
    padding: 20px;
    font-size: 1.2rem;
}


/* ================= PACKAGES SECTION ================= */

.packages-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.4rem;
}

.packages-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.package-card {
    background: #f0f0eb;
    border-radius: 12px;
    padding: 30px 40px;
    width: 280px;
    text-align: center;
    box-shadow: 0 3px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.package-card:hover {
    transform: translateY(-8px);
}

.package-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.package-card .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 16px;
}


/* ================= TESTIMONIALS ================= */

.testimonial-section {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

.testimonial-section h2 {
    margin-bottom: 40px;
    font-size: 2.4rem;
}

.testimonial-box {
    background: #f0f0eb;
    padding: 30px;
    padding-right: 160px;
    border-radius: 12px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
}

.testimonial-content {
    flex: 1;
}

.testimonial-box p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-style: italic;
}

.testimonial-box span {
    display: block;
    font-size: 0.95rem;
    margin-top: 6px;
    color: #666;
}

.testimonial-image {
    position: absolute;
    right: -55px;
    top: 50%;
    transform: translateY(-50%);
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: 6px solid #d0d0d0;
    border-radius: 2px;
    padding: 5px;
    background: #f0f0eb;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05), 0 3px 15px rgba(0,0,0,0.15);
    z-index: 10;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .testimonial-box {
        padding-right: 30px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .testimonial-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 20px auto 0;
        align-self: center;
        display: block;
    }
}


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

.gallery-container {
    padding: 60px 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s, opacity 0.3s;
    cursor: pointer;
}

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

/* ================= PROJECT GALLERY LAYOUT ================= */

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-row-landscape {
    width: 100%;
}

.gallery-row-landscape img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s, opacity 0.3s;
    cursor: pointer;
    display: block;
}

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

.gallery-row-portraits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.gallery-row-portraits img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s, opacity 0.3s;
    cursor: pointer;
    display: block;
}

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


/* ================= CONTAINER ================= */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ================= PROJECT HERO SECTION ================= */

.project-hero {
    padding-top: 110px;
    padding-bottom: 40px;
}

.project-hero .container {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.project-hero .container > div:first-child {
    flex: 1;
    min-width: 280px;
}

.project-hero .container > div:last-child {
    flex: 1;
    min-width: 260px;
}

.project-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.project-hero p {
    color: #666;
    margin-bottom: 12px;
}

.project-hero img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

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

footer {
    padding: 20px;
    text-align: center;
    background: #111;
    color: #fff;
    margin-top: 60px;
    font-size: 0.95rem;
}

footer a {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
}

/* ================= ABOUT ME SECTION ================= */

.about-me-section {
    background: #f0f0eb;
}

.about-me-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-me-text {
    flex: 2;
    min-width: 300px;
    max-width: 700px;
}

.about-me-header {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 20px;
}

.about-me-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #222;
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-me-paragraph {
    font-size: 1rem;
    font-weight: 300;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-me-cta {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8b6f47;
    text-decoration: none;
    margin-top: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid #8b6f47;
    transition: opacity 0.3s;
}

.about-me-cta:hover {
    opacity: 0.7;
}

.about-me-image {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.about-me-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
    .about-me-content {
        flex-direction: column;
    }
    
    .about-me-text {
        max-width: 100%;
    }
    
    .about-me-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .about-me-title {
        font-size: 2.4rem;
    }
}

/* ================= PORTFOLIO GRID ================= */

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

.portfolio-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    background: #f0f0eb;
    width: 100%;
    height: 450px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Override for polaroid images */
.portfolio-item.polaroid img {
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 60px);
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    z-index: 10;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

/* Polaroid style for center column */
.portfolio-item.polaroid {
    background: #ffffff;
    padding: 15px 15px 0 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15), 0 2px 5px rgba(0,0,0,0.1);
    transform: rotate(-1deg);
    height: 480px;
}

.portfolio-item.polaroid:nth-child(3n+2):nth-child(even) {
    transform: rotate(1deg);
}

.portfolio-item.polaroid:hover {
    transform: translateY(-8px) scale(1.02) rotate(0deg);
    box-shadow: 0 15px 45px rgba(0,0,0,0.25), 0 5px 10px rgba(0,0,0,0.15);
}

.portfolio-item.polaroid img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Add white space at bottom for polaroid effect */
.portfolio-item.polaroid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    z-index: 1;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .portfolio-item {
        height: 350px;
    }
    
    /* On mobile, make every 2nd item in the 2nd row polaroid instead */
    .portfolio-item.polaroid {
        transform: rotate(0deg);
        height: 380px;
    }
    
    .portfolio-item.polaroid img {
        height: calc(100% - 40px);
    }
    
    .portfolio-item.polaroid::after {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .portfolio-item {
        height: 280px;
    }
    
    .portfolio-item.polaroid {
        padding: 10px 10px 50px 10px;
        height: 310px;
    }
    
    .portfolio-item.polaroid img {
        height: calc(100% - 40px);
    }
    
    .portfolio-item.polaroid::after {
        height: 40px;
    }
}

/* ================= MOBILE RESPONSIVE OVERRIDES ================= */

@media (max-width: 768px) {
    /* Header: reduce padding so logo and hamburger fit */
    .main-header,
    .main-header.scrolled {
        padding: 18px 20px;
    }

    .nav-container {
        padding: 0;
    }

    .logo {
        font-size: 1.4rem;
    }

    /* Sections: reduce padding for small screens */
    section {
        padding: 50px 20px;
    }

    .about-me-section {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }

    /* Hero: smaller text, comfortable padding */
    .hero {
        padding: 0 16px 14vh 16px;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .hero-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    /* Projects section */
    .projects-section h2,
    .blog-section h2,
    .packages-section h2,
    .testimonial-section h2 {
        font-size: 1.8rem;
        margin-bottom: 28px;
    }

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

    .project-card {
        height: 320px;
    }

    .project-title {
        left: 16px;
        bottom: 12px;
        font-size: 1.15rem;
    }

    /* Blog grid: single column on mobile */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-card h3 {
        font-size: 1.1rem;
        padding: 16px;
    }

    /* Services / packages: stack cards, full width */
    .packages-section .packages-grid {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        padding: 0;
    }

    .packages-section .package-card {
        width: 100%;
        min-width: 0;
        padding: 24px 20px;
    }

    /* Testimonials: full width with padding */
    .testimonial-section {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .testimonial-box {
        padding: 24px 20px;
        padding-right: 20px;
        margin-bottom: 24px;
    }

    /* Gallery page */
    .gallery-container {
        padding: 40px 20px;
    }

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

    /* Project gallery: single column portraits on mobile */
    .gallery-row-portraits {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Project page hero and details */
    .project-hero {
        padding-top: 90px;
        padding-bottom: 30px;
    }

    .project-hero .container > div:first-child,
    .project-hero .container > div:last-child {
        min-width: 0;
    }

    .project-hero h1 {
        font-size: 1.9rem;
    }

    .project-hero p {
        font-size: 0.95rem;
    }

    /* Project details row: comfortable padding and stack on small screens */
    .project-hero .container,
    section .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .project-details {
        padding-left: 20px !important;
        gap: 24px !important;
        flex-direction: column;
    }

    .project-details > div {
        min-width: 0;
    }

    /* Contact page: single column and tighter gap */
    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
        padding: 0;
    }

    /* Footer */
    footer {
        margin-top: 40px;
        padding: 24px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-header,
    .main-header.scrolled {
        padding: 14px 16px;
    }

    .logo {
        font-size: 1.25rem;
    }

    section {
        padding: 40px 16px;
    }

    .hero {
        padding: 0 12px 12vh 12px;
    }

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

    .projects-section h2,
    .blog-section h2,
    .packages-section h2,
    .testimonial-section h2 {
        font-size: 1.5rem;
        margin-bottom: 22px;
    }

    .project-card {
        height: 280px;
    }

    .gallery-container {
        padding: 30px 16px;
    }

    .about-me-section {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }

    .project-hero {
        padding-top: 80px;
    }

    .project-hero h1 {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 16px !important;
    }
}