.portfolio-detail-banner {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-detail-banner img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index:1;
}

.portfolio-detail-banner .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
    z-index: 2;
}

.portfolio-detail-banner .banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.portfolio-detail-banner .category {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

.portfolio-detail-banner h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.portfolio-detail-banner .description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
}


/* 포트폴리오 info */
.project-info-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-item {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.info-item h3 {
    font-size: 1.1rem;
    color: #6366f1;
    margin-bottom: 0.5rem;
}


.project-content {
    max-width: 100%;
    margin: 0 auto;
}

.project-content h2 {
    position:relative;
    display:flex;
    align-items: center;;
    gap:0.5em;
    text-align:center;
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    width:95%;
    max-width:1200px;
    margin:0 auto;
}
.project-content h2::before,
.project-content h2::after {
    content:"";
    flex:1;
    border-bottom:1px solid rgba(0,0,0,0.2);
}


.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 2rem;
}


.feature-grid {
    max-width:1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}


.feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature-item i {
    font-size: 2rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.project-images {
    width:95%;
    max-width:1200px;
    display: grid;
    gap: 2rem;
    margin:0 auto;
}


.project-images img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Project Images Styles */
.project-images.desktop {

    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;;
    gap: 3rem;
}
.project-images.desktop .browser-mockup:nth-child(1) {
    grid-column: 1 / 3;;
}


.project-images.mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    padding: 2rem;
}

.device-caption {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.browser-mockup {
    position:relative;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    align-self: start;
    overflow:visible;
    z-index:1;
}
.browser-mockup .slice {
    position: absolute;
    bottom: -50px;
    left: -3rem;
    width: calc(100% + 6rem);
    height: 350px;;
    background: linear-gradient(
        to top, 
        rgba(248,250,252,1) 0, 
        rgba(248,250,252,1) 50px,
        rgba(248,250,252,0) 350px
        );
        z-index:2;
    pointer-events: none;
    
}
.browser-header {
    background: #f1f5f9;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
    border-top-left-radius:0.5rem;
    border-top-right-radius:0.5rem;
}

.browser-buttons {
    display: flex;
    gap: 0.5rem;
}

.browser-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-buttons span:nth-child(1) { background: #ef4444; }
.browser-buttons span:nth-child(2) { background: #fbbf24; }
.browser-buttons span:nth-child(3) { background: #22c55e; }

.browser-address {
    flex: 1;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #6b7280;
}

.browser-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

.phone-mockup {
    background: #fff;
    border-radius: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    margin: 0 auto;
    border: 8px solid #2f3b4d;
    background-size:cover;
    width:100%;
    aspect-ratio: 9/19;
}

.phone-mockup .side-button {
    position: absolute;
    width: 3px;
    height: 25px;
    background: #2f3b4d;
    border-radius: 2px;
    box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.phone-mockup .side-button.volume-up {
    right: -11px;
    top: 20%;
    height: 35px;
}

.phone-mockup .side-button.volume-down {
    right: -11px;
    top: calc(20% + 40px);;
    height: 35px;
}

.phone-mockup .side-button.power {
    left: -11px;
    top: calc(20% + 20px);
    height: 35px;
}

.phone-mockup .speaker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 20px;
    background: #1a1f25;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.phone-mockup .camera {
    position: absolute;
    top: 6px;
    right: 25%;
    width: 12px;
    height: 12px;
    background: #1a1f25;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.phone-mockup .camera::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #2f3b4d;
    border-radius: 50%;
}

.phone-mockup .phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 2.2rem;
    z-index: 1;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 지원 플랫폼 */

.platform-section {
    width: 100%;
    background: #f8fafc;
    padding: 3rem 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width:1200px;
    margin: 0 auto;
    margin-top: 2rem;
}

.platform-item {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.platform-item i {
    font-size: 2.5rem;
    color: #6366f1;
}

.platform-item span {
    font-size: 1rem;
    color: #4b5563;
    font-weight: 500;
}



/* 반응형 */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: auto;;
    }
    .feature-grid {
        grid-template-columns: auto;;
    }
    .feature-item {
        width:90%;
        margin:0 auto;
    }

    .project-images .browser-mockup{
        overflow:hidden;
        height:auto;
    }
    .project-images.desktop {
        grid-template-columns: 1fr;
    }
    .project-images.desktop .browser-mockup,
    .project-images.desktop .browser-mockup:nth-child(1) {
        grid-column:1;
        width:90%;
        margin:0 auto;
    }

    .project-images.mobile {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .project-images.mobile {
        grid-template-columns: 1fr;
        width:95%;
        gap:5rem;
    }
}

@media (max-width: 1024px) {
    .platform-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .platform-grid {
        width:90%;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-item {
        padding: 1.5rem;
    }
}