/* styles.css */
/* ====================== HEAVENLY PICTURES STYLES ====================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Navigation */
nav {
    background: rgba(26, 60, 94, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #d4af37;
}

/* Hero */
.hero {
    height: 100vh;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 0.5rem;
    color: #d4af37;
}

.tagline {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn.primary {
    background: #d4af37;
    color: #1a3c5e;
    font-weight: bold;
}

.btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-3px);
}

/* ====================== MONTAGE ====================== */
.montage-section {
    margin-top: 0;                    /* Removed negative margin */
    padding-top: 60px;                /* Adds visible space after hero */
    position: relative;
    z-index: 1;
    background: #f8f9fa;              /* Matches the section background */
}

.montage-section img {
    width: 100%;
    display: block;
}

/* ====================== PORTFOLIO ====================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.portfolio-item > div:first-child {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.portfolio-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background: #1a3c5e;
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.social-links a {
    color: white;
    margin: 0 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 90%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    position: relative;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
}

/* ====================== RESPONSIVE ====================== */

/* Helps fixed nav not cover section headings */
#home,
#work,
#about,
#contact {
    scroll-margin-top: 110px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Keep mobile nav compact instead of stacking everything vertically */
    .nav-container {
        flex-direction: column;
        padding: 0.65rem 16px;
        gap: 0.55rem;
    }

    .logo img {
        height: 42px;
    }

    .nav-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.85rem 1.15rem;
        margin-top: 0;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    /* Hero */
    .hero {
        min-height: 100svh;
        height: auto;
        padding-top: 125px;
        padding-bottom: 70px;
        background-position: center;
    }

    .hero-content {
        padding: 0 18px;
    }

    .hero h1 {
        font-size: 2.45rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }

    .tagline {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 1.05rem;
        line-height: 1.45;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.9rem;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 13px 24px;
        font-size: 1rem;
    }

    /* Montage */
    .montage-section {
        margin-top: 0;
        padding-top: 24px;
    }

    /* Sections */
    .section {
        padding: 70px 0;
    }

    .section h2 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 2rem;
        text-align: center;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-item {
        border-radius: 7px;
    }

    .portfolio-item h3 {
        font-size: 1.2rem;
        line-height: 1.25;
    }

    .portfolio-item p {
        font-size: 0.98rem;
    }

    /* About and Contact */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .about-image img {
        max-width: 420px;
        margin: 0 auto;
        display: block;
    }

    .contact-info {
        font-size: 1rem;
    }

    /* Modal */
    .modal-content {
        width: 92%;
        max-width: 1000px;
        aspect-ratio: 16 / 9;
    }

    .close {
        top: -38px;
        right: 0;
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    #home,
    #work,
    #about,
    #contact {
        scroll-margin-top: 125px;
    }

    .nav-container {
        padding: 0.55rem 12px;
    }

    .logo img {
        height: 36px;
    }

    .nav-links {
        gap: 0.55rem 0.9rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 2.05rem;
    }

    .tagline {
        font-size: 1.15rem;
    }

    .subtitle {
        font-size: 0.98rem;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 1.75rem;
    }

    .portfolio-item h3 {
        font-size: 1.1rem;
    }

    .portfolio-item p {
        font-size: 0.95rem;
    }

    footer {
        padding: 2.25rem 16px;
    }
}