/* Project1 Specific Styles */

/* Enable scrolling on this page */
body {
    overflow: auto !important;
}

/* Video Section Styles */
.video-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 1;
    background-color: #000;
}

.video-section iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Overlay for click detection */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
}

/* Custom Video Controls */
.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 38px 30px 38px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 10;
    font-family: 'Montserrat', sans-serif;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Auto-hide control bar */
.custom-video-controls.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Control Buttons */
.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
    padding: 0;
}

.control-btn:hover {
    opacity: 0.7;
}

/* Play/Pause Button - Left aligned */
.play-pause-btn {
    margin-right: auto;
}

/* Sound Button with strikethrough when muted */
.sound-btn.muted {
    text-decoration: line-through;
}

/* Progress Control */
.progress-control {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Time Display */
.time-display {
    color: white;
    font-size: 10px;
    font-weight: 500;
    position: absolute;
    top: -20px;
    left: 0;
    transition: left 0.1s ease;
    pointer-events: none;
}

/* Progress Bar Container */
.progress-bar-container {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    border-radius: 1px;
    overflow: visible;
    transition: height 0.2s ease;
}

.progress-bar-container:hover {
    height: 3px;
}

/* Dragging state */
.progress-bar-container.dragging {
    height: 4px;
}

.progress-bar-container.dragging .play-progress {
    transition: none;
}

/* Preview Tooltip */
.progress-preview-tooltip {
    position: absolute;
    bottom: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 20;
    transform: translateX(0);
    min-width: 50px;
    text-align: center;
}

.progress-preview-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

/* Load Progress (buffered) */
.load-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    width: 0%;
    transition: width 0.3s ease;
}

/* Play Progress */
.play-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #ffffff;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 1px;
}

/* Fullscreen Button - Right aligned */
.fullscreen-btn {
    margin-left: auto;
}

/* Stacked Scrolling Effect */
.project-description-section {
    position: relative;
    background-color: rgba(10, 10, 10, 0.95);
    z-index: 20;
    margin-top: 100dvh;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    padding-bottom: 0;
    backdrop-filter: blur(10px);
}

/* Footer Integration */
footer {
    position: relative;
    z-index: 20;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}
/* Project Grid Layout */
.project-grid-layout {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
    width: 100%;
}

.project-cover {
    grid-column: 2 / 4;
    grid-row: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-info {
    grid-column: 4 / 10;
    grid-row: 1;
    display: flex;
    flex-direction: column;
}

.h1 {
    font-family: 'Gotham Condensed', 'Gotham', sans-serif;
    font-weight: 950;
    font-stretch: ultra-condensed;
    font-size: 100px;
    color: white;
    margin: 0;
    line-height: 0.70;
    letter-spacing: 10px;
}

.h2 {
    font-family: 'Gotham Condensed', 'Gotham', sans-serif;
    font-weight: 950;
    font-stretch: ultra-condensed;
    font-size: 60px;
    color: white;
    margin: 0;
    letter-spacing: 5px;
}

.texte-01 {
    max-width: 40%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: white;
    line-height: 1.6;
    padding-top: 40px;
}

.separator-line {
    grid-column: 2 / 10;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 40px;
}

.separator-line-bar {
    width: 100%;
    height: 1px;
    background-color: white;
}

.separator-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: white;
    margin: 0;
}

.photo-grid {
    grid-column: 2 / 10;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

/* Photo Grid Items - Each takes 2 columns */
.photo-grid > div {
    grid-column: span 2;
}

/* Video Grid Standalone */
.video-grid-standalone {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

/* Photo Grid Background & Cover */
.project-description-section .aspect-video {
    background-color: #2a2a2a;
    transition: background-color 0.3s ease;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

.project-description-section .aspect-video:hover {
    background-color: #3a3a3a;
}

/* ========================================
   RESPONSIVE - Tablet & Mobile Only
   ======================================== */

/* Tablet breakpoint - 1024px (uses mobile layout with proportionally larger sizes) */
@media (max-width: 1024px) {
    /* Video controls tablet adjustments */
    .custom-video-controls {
        padding: 0 24px 28px 24px;
        gap: 24px;
    }

    .control-btn {
        font-size: 13px;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .control-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Project Grid - Stack vertically (mobile layout) */
    .project-grid-layout {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    /* Cover - Full width, order 1 */
    .project-cover {
        order: 1;
        width: 100%;
        max-width: 600px;
    }

    /* Title and Description - Full width, order 2 */
    .project-info {
        order: 2;
        width: 100%;
    }

    /* Tablet proportional sizing (larger than mobile) */
    .h1 {
        font-size: 64px;
        letter-spacing: 6px;
    }

    .h2 {
        font-size: 42px;
        letter-spacing: 3px;
    }

    .texte-01 {
        max-width: 100%;
        font-size: 15px;
        padding-top: 28px;
        line-height: 1.7;
    }

    /* Separator - Full width, order 3 */
    .separator-line {
        order: 3;
        width: 100%;
        margin-top: 28px;
    }

    .separator-text {
        font-size: 15px;
    }

    /* Photo Grid (Stills) - 2 columns, order 4 */
    .photo-grid {
        order: 4;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .photo-grid > div {
        grid-column: span 1;
    }

    /* Video Grid Standalone - Stack vertically */
    .video-grid-standalone {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile breakpoint - 768px */
@media (max-width: 768px) {
    /* Video controls mobile - larger touch targets */
    .custom-video-controls {
        padding: 0 12px 20px 12px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .control-btn {
        font-size: 11px;
        padding: 10px 16px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .play-pause-btn {
        margin-right: 0;
        flex: 0 0 auto;
    }

    .sound-btn {
        flex: 0 0 auto;
    }

    .fullscreen-btn {
        margin-left: 0;
        flex: 0 0 auto;
    }

    /* Progress control takes full width on mobile */
    .progress-control {
        order: 4;
        flex: 1 1 100%;
        margin-top: 8px;
    }

    .progress-bar-container {
        height: 4px;
    }

    .progress-bar-container:hover {
        height: 6px;
    }

    .time-display {
        font-size: 11px;
        top: -22px;
    }

    .h1 {
        font-size: 36px;
        letter-spacing: 3px;
    }

    .h2 {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .texte-01 {
        font-size: 12px;
        padding-top: 16px;
    }

    .separator-text {
        font-size: 12px;
    }

    /* Photo Grid - Still 2 columns but tighter */
    .photo-grid {
        gap: 6px;
    }

    .video-grid-standalone {
        gap: 12px;
    }
}

/* Small mobile breakpoint - 480px */
@media (max-width: 480px) {
    /* Video controls small mobile - optimized for touch */
    .custom-video-controls {
        padding: 0 8px 16px 8px;
        gap: 6px;
    }

    .control-btn {
        font-size: 10px;
        padding: 8px 12px;
        min-height: 36px;
        letter-spacing: 0.3px;
    }

    .progress-control {
        margin-top: 6px;
    }

    .time-display {
        font-size: 10px;
        top: -20px;
    }

    .h1 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .h2 {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .texte-01 {
        font-size: 11px;
        line-height: 1.5;
    }

    .separator-text {
        font-size: 11px;
    }

    .photo-grid {
        gap: 4px;
    }

    .video-grid-standalone {
        gap: 10px;
    }
}

/* ========================================
   Footer Styles - Project Pages
   ======================================== */

/* Footer background same as description section */
.footer-desktop,
.footer-mobile {
    background-color: rgba(10, 10, 10, 0.95) !important;
}
