 
      .youtube-container {
    max-width: 1380px;
    width: 100%;
    margin: 45px auto 0 auto;
    position: relative;
    height: 776px; /* 1380px * 9/16 */
    overflow: hidden;
          border-radius:25px;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.youtube-container:hover iframe {
    pointer-events: auto;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .youtube-container {
        height: auto;
        padding-bottom: 56.25%;
    }
}
  /* 포트폴리오 섹션 */
.portfolio-section {
    padding: 100px 20px;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 섹션 헤더 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
}

/* 그리드 레이아웃 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

/* 포트폴리오 아이템 */
.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* 이미지 컨테이너 */
.portfolio-image {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
}

.portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

/* 오버레이 */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* 프로젝트 정보 */
.portfolio-info {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-info p {
    font-size: 16px;
    margin: 5px 0;
    opacity: 0.9;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 3% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 25px;
    top: 20px;
    color: #333;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f44336;
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.modal-header-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.modal-project-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 30px 0 20px 0;
}

.modal-project-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 30px 0 15px 0;
}

.modal-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.modal-features {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-features li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    color: #333;
}

.modal-features li:last-child {
    border-bottom: none;
}

.modal-features li:before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    margin-right: 10px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .portfolio-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-info h3 {
        font-size: 20px;
    }

    .portfolio-info p {
        font-size: 14px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-header-image {
        height: 250px;
    }

    .modal-project-title {
        font-size: 28px;
    }

    .modal-project-meta {
        flex-direction: column;
        gap: 15px;
    }

    .modal-section-title {
        font-size: 20px;
    }

    .modal-text {
        font-size: 15px;
    }
}