/* Layout Reset & Spacing */


.content-section {
    margin-bottom: 120px;
    opacity: 0;
    /* For JS fade-in effect */
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.content-section {
    margin-top: 180px;
    margin-bottom: 140px;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 80vh;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}


.hero-video-container {
    width: 100%;
    height: 100%;
}


.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 10%;
    left: 5%;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-overlay h1 {
    font-size: 3.5rem;
    margin: 0;
}

/* Grids */
.image-grid,
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

img,
video {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.text-block {
    max-width: 700px;
}

.text-block p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ccc;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 2rem;
    }

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

    .content-section {
        margin-bottom: 60px;
    }
}


body {
    background-color: #111;
    background-image: url("../assets/images/bg/pattern/p-008.png");
    background-repeat: repeat;
    background-size: 600px;
    background-attachment: scroll;
    /* default but explicit */
}


.project-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.project-text {
    flex: 1;
}

.project-video {
    flex: 1.5;
    display: flex;
    justify-content: center;
}

.project-video video {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 12px;
}
/* Layout Container */
.project-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 20px 100px 20px;
}

/* HERO SECTION: Side-by-Side */
.project-hero {
    display: flex;
    align-items: center;
    /* Vertically center the text and video */
    justify-content: space-between;
    gap: 60px;
    min-height: 70vh;
    margin-bottom: 100px;
    padding-bottom: 140px;
}

.project-text {
    flex: 1;
    /* Takes 1 part of space */
}

.project-video {
    flex: 1.5;
    /* Takes slightly more space than text for impact */
}

/* Typography */
.project-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* Responsive size */
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.project-subtitle {
    font-size: 1.4rem;
    opacity: 0.8;
    max-width: 400px;
}

/* Video Styling */
.project-video video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-video video {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Content Sections (Grids) */
.content-section {
    margin-bottom: 120px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.image-grid img {
    width: 100%;
    border-radius: 8px;
}

.full-width-video {
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
}

/* Responsive: Stack on Mobile */
@media (max-width: 900px) {
    .project-hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .project-subtitle {
        margin: 0 auto;
    }
}
.image-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Alternating Layout Sections */

.process-section {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 120px 0;
}

.process-text {
    flex: 1;
    max-width: 500px;
}

.process-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}

.process-images {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    
}


.process-images img {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* forces same shape */
    object-fit: cover;
    /* crops nicely */
    border-radius: 8px;
}

.process-images img,
.image-grid img {
    cursor: zoom-in;
}

.process-images img {
    width: 100%;
    border-radius: 8px;
}

/* Reverse layout */
.process-section.reverse {
    flex-direction: row-reverse;
}

/* Mobile */
@media (max-width: 900px) {

    .process-section,
    .process-section.reverse {
        flex-direction: column;
    }
    .process-images {
        grid-template-columns: 1fr;
    }
}

.process-images img {
    transition: transform 0.4s ease;
}

.process-images img:hover {
    transform: scale(1.04);
}


/* Lightbox background */

#image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;

    z-index: 9999;
}

#image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* visible state */

#image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* image */

#lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

section {
    position: relative;
}

