/* Project specific overrides can go here if needed, or we can add classes to the main styles.css */
.full-width-video {
    padding: 0 !important; /* Override the default padding */
    overflow: hidden; /* Ensure rounded corners crop the video */
    display: block; /* Reset flex if needed, but keeping flex is fine usually if single child */
    border-radius: 30px; /* Ensure container has rounded corners */
    background-color: transparent; /* Remove background color if padding is gone */
    max-width: 900px;
    margin: 0 auto;
}

.video-rounded {
    border-radius: 30px; /* Ensure the video itself has rounded corners */
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure it fills the space */
}

/* Gener8 Project Specifics */
.gener8-work-container {
    max-width: 900px !important;
}

/* Wireframe container - matches Figma design width of 1376px */
.wireframe-container {
    max-width: 1376px !important;
    padding: 16px 32px !important;
    min-height: 685px !important;
}

.wireframe-container .project-main-image {
    max-height: 685px !important;
}

/* Mobile responsiveness for wireframe container */
@media (max-width: 768px) {
    .wireframe-container {
        min-height: auto !important;
        padding: 16px !important;
    }
    
    .wireframe-container .project-main-image {
        max-height: none !important;
        height: auto;
    }
}

@media (max-width: 480px) {
    .wireframe-container {
        min-height: auto !important;
        padding: 16px !important;
    }
    
    .wireframe-container .project-main-image {
        max-height: none !important;
        height: auto;
    }
}

/* Hypa Project Specifics */
.hypa-hero-video-container {
    width: calc(100% - 64px);
    max-width: 1408px;
    margin: 0 auto;
    padding: 0 32px;
    border-radius: 30px;
    overflow: hidden;
    background: transparent;
}

.hypa-hero-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

/* Phone Image Container */
.hypa-phone-container {
    width: calc(100% - 64px);
    max-width: 1408px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    overflow: hidden;
}

.hypa-phone-image {
    width: 100%;
    max-width: 677px;
    height: auto;
    display: block;
    border-radius: 0;
}

/* Branding Section */
.hypa-branding-section {
    width: 100%;
    margin: 80px 0;
}

@media (max-width: 768px) {
    .hypa-branding-section {
        margin: 32px 0;
    }
}

/* Testimonial Section */
.hypa-testimonial-section {
    width: 100%;
    margin: 80px 0;
}

.hypa-testimonial-container {
    width: calc(100% - 64px);
    max-width: 1408px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Bento Box Grid */
.hypa-bento-grid-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hypa-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 32px;
    max-width: 100%;
    margin: 0;
    width: 100%;
    justify-items: start;
}

/* Ensure consistent gap below 1145px */
@media (max-width: 1145px) {
    .hypa-bento-grid {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hypa-bento-grid {
        gap: 16px;
    }
}

.bento-item {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 30px;
    position: relative;
    min-height: auto;
}

.bento-item.bento-large {
    grid-column: 1 / 3;
    grid-row: 1;
    min-height: auto;
    height: auto;
    border-radius: 30px;
}

.bento-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.bento-item.bento-large .bento-image {
    object-fit: cover;
    width: 100%;
    height: auto;
    min-height: auto;
    border-radius: 0;
}

.project-media-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    max-width: 984px;
    margin: 0 auto;
    padding-bottom: 50px; 
}

.media-item {
    flex: 1;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible;
    min-height: auto !important;
}

.media-item img,
.media-item video {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    display: block;
    max-height: none !important;
}

/* Mobile responsiveness for bento grid */
@media (max-width: 768px) {
    .hypa-hero-video-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border-radius: 30px;
        height: 252px;
        overflow: hidden;
    }
    
    .hypa-hero-video {
        width: 100%;
        height: 252px;
        object-fit: cover;
        border-radius: 30px;
    }
    
    .hypa-phone-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border-radius: 30px;
    }
    
    .hypa-phone-image {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
    }
    
    .bento-item {
        max-height: 400px;
    }
    
    .hypa-testimonial-container {
        width: calc(100% - 64px);
        margin: 0 32px;
        padding: 0;
    }
    
    .hypa-bento-grid-section {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .hypa-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }
    
    .bento-item.bento-large {
        grid-column: 1;
        grid-row: auto;
        min-height: auto;
        border-radius: 30px;
    }
    
    .bento-item.bento-large .bento-image {
        min-height: auto;
        border-radius: 0;
    }
    
    .bento-item {
        min-height: 300px;
        border-radius: 30px;
    }
    
    .bento-image {
        border-radius: 0;
    }
    
    .hypa-testimonial-section {
        margin: 32px 0;
    }
}

/* Quote Styles */
.quote-text {
    font-family: 'Instrument Serif', serif;
    font-size: 40px; /* Estimated size */
    line-height: 48px;
    color: var(--green-dark);
    margin-bottom: 16px;
    font-weight: 400;
}

.quote-author {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: var(--green-dark);
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .quote-text {
        font-size: 32px;
        line-height: 40px;
    }
}

/* Project Navigation */
.project-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Start with arrows relatively close */
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 0 20px;
    position: relative;
    min-height: 37px;
}

.project-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Removed margin-auto to allow centering with gap */
.project-nav-prev {
    margin-right: 0;
}

.project-nav-next {
    margin-left: 0;
}

.project-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 103px;
    height: 37px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
}

.nav-arrow-icon {
    width: 103px;
    height: 37px;
    display: block;
}

.project-nav-text {
    white-space: nowrap;
    opacity: 0;
    /* No max-width transition needed here as we are spacing arrows */
    transition: opacity 0.3s ease 0.1s; /* Slight delay to allow space to open */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--green-dark);
    pointer-events: none;
}

/* --- Interaction Logic --- */

/* 1. Hovering PREV arrow */
.project-nav-prev:hover .project-nav-arrow {
    transform: translateX(-90px);
}
/* Push next arrow to the right when prev is hovered */
.project-nav-prev:hover ~ .project-nav-next .project-nav-arrow {
    transform: translateX(90px);
}
/* Reveal prev text */
.project-nav-prev:hover ~ .project-nav-text-prev {
    opacity: 1;
}


/* 2. Hovering NEXT arrow */
.project-nav-next:hover .project-nav-arrow {
    transform: translateX(90px);
}
/* Push prev arrow to the left when next is hovered (using :has because prev comes before next) */
.project-navigation:has(.project-nav-next:hover) .project-nav-prev .project-nav-arrow {
    transform: translateX(-90px);
}
/* Reveal next text */
.project-nav-next:hover ~ .project-nav-text-next {
    opacity: 1;
}

@media (max-width: 768px) {
    .project-navigation {
        margin-top: 60px;
        margin-bottom: 40px;
        padding: 0 16px;
    }
    
    .project-nav-link {
        font-size: 14px;
    }
}
