/* Portfolio Page Styles */

/* Portfolio Section */
.portfolio-section {
    padding-top: 120px;
    /* Account for fixed navbar */
    padding-bottom: 100px;
    background-color: #fff;
}

.portfolio-header {
    margin-bottom: 60px;
    text-align: left;
}

.portfolio-title {
    font-size: 48px;
    font-weight: 700;
    color: #111;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

.portfolio-categories {
    display: flex;
    gap: 30px;
}

.category-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
    font-family: 'Pretendard', sans-serif;
}

.category-btn.active,
.category-btn:hover {
    color: #ff4d4d;
    /* Brand red color */
    font-weight: 700;
    border-bottom: 2px solid #ff4d4d;
    padding-bottom: 2px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    /* Added gap for better spacing */
}

.portfolio-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Standard video aspect ratio */
    overflow: hidden;
    background-color: #000;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    /* Allow clicks to pass through if needed, or enable controls */
}

/* Detail Overlay Styles */
.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(88, 24, 12, 0.9);
    /* Dark reddish brown overlay based on description/brand */
    /* "Center slightly white" - Radial gradient */
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(88, 24, 12, 0.95) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    backdrop-filter: blur(5px);
    /* "Filter so bottom image is mostly invisible" */
    z-index: 10;
}

.portfolio-item.has-detail:hover .item-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    position: relative;
}

.project-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: left;
}

.project-category {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.8;
    text-align: left;
    margin-bottom: auto;
    /* Push everything else down */
}

.lock-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.project-tags {
    display: flex;
    gap: 20px;
    margin-top: auto;
    text-align: left;
}

.project-tags span {
    font-size: 16px;
    font-weight: 600;
}

.detail-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-title {
        font-size: 36px;
    }

    .project-title {
        font-size: 24px;
    }

    .lock-icon {
        font-size: 30px;
    }
}

/* Responsive Margins based on README Guide */
.portfolio-section .container {
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Desktop */
@media (min-width: 1441px) {
    .portfolio-section .container {
        padding-left: var(--margin-desktop);
        padding-right: var(--margin-desktop);
    }
}

/* Laptop */
@media (min-width: 769px) and (max-width: 1440px) {
    .portfolio-section .container {
        padding-left: var(--margin-laptop);
        padding-right: var(--margin-laptop);
    }
}

/* Tablet */
@media (min-width: 391px) and (max-width: 768px) {
    .portfolio-section .container {
        padding-left: var(--margin-tablet);
        padding-right: var(--margin-tablet);
    }
}

/* Mobile */
@media (max-width: 390px) {
    .portfolio-section .container {
        padding-left: var(--margin-mobile);
        padding-right: var(--margin-mobile);
    }
}

/* ===================================
   Portfolio Detail Page Styles
   =================================== */

.portfolio-detail-section {
    padding-top: 120px;
    padding-bottom: 100px;
    background-color: #fff;
    color: #111;
}

/* Detail Header */
.detail-header {
    margin-bottom: 40px;
}

.detail-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.detail-category {
    font-size: 14px;
    color: #888;
    font-weight: 600;
}

.back-btn {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #ff4d4d;
}

.detail-title {
    font-size: 36px;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 100px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.nav-prev,
.nav-next {
    display: flex;
    flex-direction: column;
    max-width: 45%;
}

.nav-next {
    align-items: flex-end;
    text-align: right;
}

.nav-label {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.nav-link-text {
    font-size: 14px;
    color: #666;

    .related-grid {
        grid-template-columns: 1fr;
    }

    .detail-navigation {
        flex-direction: column;
        gap: 30px;
    }

    .nav-prev,
    .nav-next {
        max-width: 100%;
        align-items: flex-start;
        text-align: left;
    }
}

/* Responsive Margins for Detail Page */
.portfolio-detail-section .container {
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Desktop */
@media (min-width: 1441px) {
    .portfolio-detail-section .container {
        padding-left: var(--margin-desktop);
        padding-right: var(--margin-desktop);
    }
}

/* Laptop */
@media (min-width: 769px) and (max-width: 1440px) {
    .portfolio-detail-section .container {
        padding-left: var(--margin-laptop);
        padding-right: var(--margin-laptop);
    }
}

/* Tablet */
@media (min-width: 391px) and (max-width: 768px) {
    .portfolio-detail-section .container {
        padding-left: var(--margin-tablet);
        padding-right: var(--margin-tablet);
    }
}

/* Mobile */
@media (max-width: 390px) {
    .portfolio-detail-section .container {
        padding-left: var(--margin-mobile);
        padding-right: var(--margin-mobile);
    }
}

/* Portfolio Detail Page Styles */
.portfolio-detail-section {
    padding-top: 120px;
    padding-bottom: 100px;
    background-color: #fff;
    color: #111;
}

/* Detail Header */
.detail-header {
    margin-bottom: 60px;
}

.detail-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.detail-category {
    font-size: 14px;
    color: #888;
    font-weight: 600;
}

.back-btn {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #ff4d4d;
}

.detail-title {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

/* Detail Image Container */
.detail-image-container {
    width: 100%;
    margin-bottom: 60px;
    font-size: 0;
    line-height: 0;
}

.detail-full-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Project Info */
.project-info-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 100px;
}

.project-info-left {
    flex: 1;
}

.info-row {
    display: flex;
    margin-bottom: 24px;
}

.info-label {
    width: 140px;
    font-size: 15px;
    color: #999;
    font-weight: 500;
    flex-shrink: 0;
}

.info-value {
    font-size: 15px;
    color: #111;
    font-weight: 600;
    line-height: 1.6;
}

.project-info-right {
    width: 300px;
    flex-shrink: 0;
}

.project-type-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111;
    font-family: 'Inter', sans-serif;
}

.project-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-tag {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

/* Navigation */
.detail-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;    
}

.nav-prev,
.nav-next {
    display: flex;
    flex-direction: column;
    max-width: 45%;
}

.nav-next {
    align-items: flex-end;
    text-align: right;
}

.nav-label {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.nav-link-text {
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

.nav-link-text:hover {
    color: #ff4d4d;
}

/* Related Projects */
.related-projects {
    margin-bottom: 60px;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #111;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-item {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-item:hover img {
    transform: scale(1.05);
}

/* Responsive Detail Page */
@media (max-width: 1024px) {
    .project-info-container {
        flex-direction: column;
        gap: 40px;
    }

    .project-info-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .detail-title {
        font-size: 28px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .detail-navigation {
        flex-direction: column;
        gap: 30px;
    }

    .nav-prev,
    .nav-next {
        max-width: 100%;
        align-items: flex-start;
        text-align: left;
    }
}




/* Dual Image Section */
.dual-image-section {
    
    margin: 0 auto;
    background-color: #f5f5f5;
    padding: 200px 0 100px 0;
    
    width:100%
}

.dual-image-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--margin-desktop);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.dual-image-item {
    width: 100%;
}

.dual-image-item img {
    width: 100%;
    height: auto;
    display: block;
}


.dual-image-item:first-child {
    transform: translateY(-100px);
}


/* Design Objective Section */
.design-objective {
    max-width: var(--container-desktop);
    margin: 80px auto ;
    padding: 0 var(--margin-desktop);
    display: flex;
    gap: 100px; 
    
}

.objective-left {
    width:300px;
    flex-shrink: 0;
}

.objective-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.objective-right {
    flex: 1;
}

.objective-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.6;
}

.objective-description {
    font-size: 20px;
    color: #555;
    line-height: 1.8;
}

.objective-description p {
    margin: 0;
}

/* Responsive Design Objective & Dual Image */
@media (max-width: 1440px) {
    .design-objective {
        padding: 60px var(--margin-tablet) 0;
    }
    
    .dual-image-container {
        padding: 0 var(--margin-tablet);
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dual-image-item:first-child {
        transform: translateY(0);
    }
    
    .dual-image-item {
        width: 100%;
    }
    
    .dual-image-item img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .design-objective {
        flex-direction: column;
        gap: 30px;
        padding: 40px var(--margin-tablet) 0;
    }
    
    .objective-left {
        width: 100%;
    }
    
    .objective-subtitle {
        font-size: 16px;
    }
    
    .objective-description {
        font-size: 13px;
    }
    
    .dual-image-section {
        padding: 60px 0;
        margin-bottom: 60px;
    }
    
    .dual-image-container {
        padding: 0 var(--margin-tablet);
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 390px) {
    .design-objective {
        padding: 40px var(--margin-mobile) 0;
    }
    
    .dual-image-container {
        padding: 0 var(--margin-mobile);
    }
}