* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    text-decoration: none;
    display: inline-block;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #255eac;
}

.start-btn {
    background: #255eac;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.start-btn:hover {
    background: #1e4a8c;
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 0;
    margin-top: 70px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #255eac;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Image Slider */
.image-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    max-height: 800px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.slide picture {
    width: 100%;
    height: 100%;
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 94, 172, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: #255eac;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Company Section */
.company {
    background: #e8f2f7;
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
    min-height: 400px;
}

.company-left {
    text-align: center;
    padding: 40px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.planpia-logo-large {
    margin-bottom: 20px;
}

.planpia-logo-large img {
    height: 120px;
    width: auto;
}

.company-slogan {
    font-size: 18px;
    font-weight: 500;
    color: #255eac;
    margin: 0;
    font-style: italic;
}

.company-right {
    padding: 40px;
}

.company-text {
    max-width: 600px;
}

.company-statement {
    font-size: 22px;
    font-weight: 600;
    color: #255eac;
    margin-bottom: 15px;
    line-height: 1.2;
}

.company-description {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
    margin-top: 25px;
    margin-bottom: 0;
}

/* 데스크톱/모바일 텍스트 표시 제어 */
.desktop-text {
    display: block;
}

.mobile-text {
    display: none;
}

/* 반응형 줄바꿈 처리 */
.mobile-br {
    display: none;
}

.desktop-br {
    display: inline;
}

/* Map Section */
.map {
    padding: 80px 0;
    background: white;
}

.map-title {
    font-size: 42px;
    font-weight: 700;
    color: #4fc3d1;
    text-align: left;
    margin-bottom: 40px;
}

.map-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.map-left {
    padding: 20px;
}

.contact-info-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    margin-top: 30px;
}

.contact-info-section h3:first-child {
    margin-top: 0;
}

.contact-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    margin-top: 0;
}

.branch-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.branch-btn {
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px solid #255eac;
    border-radius: 8px;
    color: #255eac;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.branch-btn:hover {
    background: #255eac;
    color: white;
}

.branch-btn.active {
    background: #255eac;
    color: white;
}

.contact-icon-img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.branch-info {
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}



.contact-item p {
    font-size: 18px;
    color: #333;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.map-right {
    padding: 0 20px 20px 20px;
    position: relative;
}

.map-right.site2 {
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 20px 20px 20px;
}

/* 기본적으로 site1(영등포) 보이고 site2(파주) 숨기기 */
.site1 {
    display: block;
}

.site2 {
    display: none;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.naver-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
}

#kakao-map {
    border-radius: 10px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
}

.services h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    color: #333;
    margin-bottom: 15px;
}

.services-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.service-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
}

.service-subtitle {
    font-size: 16px;
    color: #255eac;
    margin-bottom: 0;
    font-weight: 500;
}

.service-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 20px;
}

.service-button {
    background: #255eac;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.service-button:hover {
    background: #1e4d91;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 94, 172, 0.3);
}

.planpia-logo {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(37, 94, 172, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: #f8f9fa;
}

.portfolio h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    color: #333;
    margin-bottom: 15px;
}

.portfolio-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

/* Portfolio Filter */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    color: #333;
    border: 2px solid #ddd;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.filter-btn:hover {
    border-color: #255eac;
    color: #255eac;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #255eac;
    color: white;
    border-color: #255eac;
    transform: translateY(-2px);
}


.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 250px);
    gap: 30px;
    animation: fadeInUp 0.6s ease;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    height: 250px;
    margin: 0 auto;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    text-align: center;
    color: white;
    position: relative;
    padding-top: 30px;
}

.portfolio-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    color: white;
}

.portfolio-plus {
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 300;
    color: white;
    margin: -10px auto 0;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.portfolio-item:hover .portfolio-plus {
    transform: rotate(90deg);
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

/* Image Popup Modal */
.image-popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1000px;
    max-height: 90vh;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: row;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.popup-image-container {
    width: 60%;
    height: 500px;
    overflow: hidden;
    flex-shrink: 0;
}

.popup-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.popup-info {
    width: 40%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.popup-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

.popup-info .project-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #888;
}

/* Portfolio Slider */
.portfolio-slider-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.portfolio-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    /* width는 JavaScript에서 동적으로 설정됩니다 */
}

.portfolio-slide {
    flex: 0 0 auto; /* 동적 너비 설정을 위해 변경 */
    width: 100%; /* JavaScript에서 totalPortfolioSlides로 나눠질 예정 */
    padding: 0 10px; /* 슬라이드 간 여백 */
}

.portfolio-slide .portfolio-grid {
    margin-bottom: 0; /* 슬라이드 내부에서는 하단 마진 제거 */
}

/* Portfolio Navigation Buttons */
.portfolio-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 94, 172, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.portfolio-nav:hover {
    background: #255eac;
    transform: translateY(-50%) scale(1.1);
}

.portfolio-nav.prev {
    left: 20px;
}

.portfolio-nav.next {
    right: 20px;
}

/* Portfolio Dots */
.portfolio-dots {
    text-align: center;
    margin-top: 30px;
}

.portfolio-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-dot.active,
.portfolio-dot:hover {
    background: #255eac;
    transform: scale(1.2);
}

/* Portfolio Slider Responsive Design */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        grid-template-rows: repeat(4, 200px);
    }
    
    .portfolio-item {
        height: 200px;
        max-width: 300px;
    }
    
    .portfolio-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .portfolio-nav.prev {
        left: 10px;
    }
    
    .portfolio-nav.next {
        right: 10px;
    }
    
    .portfolio-slide {
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        grid-template-rows: repeat(10, 180px);
    }
    
    .portfolio-item {
        height: 180px;
        max-width: 100%;
    }
    
    .portfolio-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .portfolio-nav.prev {
        left: 5px;
    }
    
    .portfolio-nav.next {
        right: 5px;
    }
    
    .portfolio-title {
        font-size: 18px;
    }
    
    .portfolio-plus {
        font-size: 36px;
    }
    
    .naver-map {
        height: 180px;
    }
}

/* Portfolio More Button */
.hidden-portfolio {
    display: none;
}

.portfolio-more {
    text-align: center;
    margin-top: 40px;
}

.more-btn {
    background: #255eac;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.more-btn:hover {
    background: #1e4d91;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 94, 172, 0.3);
}

.more-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.more-btn:hover .more-icon {
    transform: rotate(90deg);
}

.more-btn.hidden {
    display: none;
}

/* Stats Section */
.stats {
    background: #255eac;
    padding: 100px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
    color: white;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* Company Overview Section */
.company-overview {
    background: #f8f9fa;
    padding: 100px 0;
}

.overview-content {
    max-width: 1200px;
    margin: 0 auto;
}

.overview-header {
    text-align: center;
    margin-bottom: 80px;
}

.overview-header h2 {
    font-size: 42px;
    font-weight: 900;
    color: #333;
    margin-bottom: 60px;
}

.motto-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: #255eac;
    margin-bottom: 30px;
}

.motto-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.motto-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.company-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 80px;
}

.info-section h3,
.business-areas h3 {
    font-size: 24px;
    font-weight: 700;
    color: #255eac;
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #333;
    min-width: 140px;
    flex-shrink: 0;
}

.info-value {
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.business-circles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.business-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #255eac 0%, #4a7bc8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.business-circle:hover {
    transform: scale(1.05);
}

.circle-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.circle-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.circle-content p {
    font-size: 14px;
    margin: 4px 0;
    opacity: 0.9;
}

/* Clients Section */
.clients {
    background: white;
    padding: 100px 0;
    border-top: 1px solid #e0e0e0;
}

.clients-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
    text-align: center;
}

.client-stat {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.client-stat:hover {
    border-color: #255eac;
    transform: translateY(-5px);
}

.client-stat .stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #255eac;
    margin-bottom: 10px;
}

.client-stat .stat-label {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.clients-carousel {
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    padding: 40px 0;
}

.clients-slider {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    animation: scroll-logos 30s linear infinite;
}

.clients-slider:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.client-item {
    min-width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.client-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.client-item img {
    max-width: 140px;
    max-height: 90px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.client-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.client-item:focus {
    outline: 2px solid #255eac;
    outline-offset: 2px;
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.client-item:focus img {
    filter: grayscale(0%);
    transform: scale(1.1);
}



/* Contact Section */
.contact {
    padding: 50px 0;
    background: #2a3f54;
    color: white;
}

.contact-content {
    align-items: start;
}

.contact-info h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info p {
    color: #ddd;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text {
    color: #ddd;
    font-size: 16px;
}

.contact-text strong {
    color: white;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.form-row .form-group {
    width: 100%;
    margin-bottom: 20px;
}

.form-row .form-group input {
    width: 100%;
}

/* 데스크톱에서만 가로 배치 */
@media (min-width: 769px) {
    .form-row {
        flex-direction: row;
        gap: 20px;
    }
    
    .form-row .form-group {
        flex: 1;
        margin-bottom: 0;
    }
}

.custom-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.custom-select:focus {
    outline: none;
    border-color: #255eac;
    box-shadow: 0 0 0 3px rgba(37, 94, 172, 0.1);
}

.custom-select:hover {
    border-color: #b3cceb;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #255eac;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    background: #255eac;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    margin-left: auto;
    display: block;
}

.submit-btn:hover {
    background: #1e4d91;
    transform: translateY(-2px);
}

/* Privacy Section */
.privacy-section {
    width: 60%;
    margin: 30px 0;
}

.privacy-item {
    margin-bottom: 20px;
}

.privacy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.privacy-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-right {
    display: flex;
    align-items: center;
}

.privacy-text {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.detail-btn {
    background: white;
    color: #6c757d;
    border: 2px solid #6c757d;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.detail-btn:hover {
    background: #6c757d;
    color: white;
}

.privacy-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.privacy-detail.active {
    max-height: 500px;
    padding: 20px;
}

.detail-content h4 {
    color: #6c757d;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.detail-text p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.detail-text p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background: #f8f9fa;
    color: #333;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
}

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.footer-links {
    font-size: 14px;
    color: #666;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #255eac;
}

.footer-links span {
    color: #ccc;
    margin: 0 5px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-info p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px;
}

/* 모바일/데스크톱 푸터 표시 제어 */
.mobile-footer {
    display: none;
}

.desktop-footer {
    display: block;
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 600px;
    width: 100%;
    margin: 50px auto;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.modal-close {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.terms-section {
    margin-bottom: 30px;
}

.terms-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #255eac;
}

.terms-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
}

.terms-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

/* Large screens (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .slide-content {
        padding: 100px 80px 80px;
        max-width: 1400px;
    }
    

    
    .slider-nav {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .slider-nav.prev {
        left: 40px;
    }
    
    .slider-nav.next {
        right: 40px;
    }
}

/* Extra large screens (1600px and above) */
@media (min-width: 1600px) {
    .image-slider {
        height: 70vh;
        max-height: 900px;
    }
    

}

/* Tablet Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .image-slider {
        height: 70vh;
        min-height: 500px;
        max-height: 700px;
    }
    

    
    .slider-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .slider-nav.prev {
        left: 30px;
    }
    
    .slider-nav.next {
        right: 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .portfolio-content {
        padding-top: 40px;
    }
    
    .portfolio-title {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .portfolio-plus {
        width: auto;
        height: auto;
        font-size: 40px;
        margin: -8px auto 0;
    }
    
    .popup-content {
        width: 95%;
        max-height: 85vh;
        flex-direction: row;
    }
    
    .popup-image-container {
        width: 55%;
        height: 400px;
    }
    
    .popup-info {
        width: 45%;
        padding: 25px;
    }
    
    .popup-info h3 {
        font-size: 24px;
    }
    
    .popup-info p {
        font-size: 14px;
    }
    
    .portfolio-more {
        margin-top: 30px;
    }
    
    .more-btn {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .clients-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .client-stat {
        padding: 25px;
    }
    
    .client-stat .stat-number {
        font-size: 40px;
    }
    
    .clients-carousel {
        padding: 35px 0;
    }
    
    .clients-slider {
        gap: 40px;
        animation-duration: 25s;
    }
    
    .client-item {
        min-width: 160px;
        height: 100px;
        padding: 18px;
    }
    
    .client-item img {
        max-width: 120px;
        max-height: 75px;
    }
    
    /* Company Section Tablet */
    .company {
        padding: 70px 0;
    }
    
    .company-content {
        gap: 60px;
    }
    
    .company-left {
        padding: 30px;
    }
    
    .planpia-logo-large img {
        height: 100px;
    }
    
    .company-slogan {
        font-size: 17px;
    }
    
    .company-right {
        padding: 30px;
    }
    
    .company-statement {
        font-size: 20px;
        line-height: 1.2;
    }
    
    .company-description {
        font-size: 17px;
        line-height: 1.5;
    }

    /* 태블릿에서 반응형 줄바꿈 처리 */
    .mobile-br {
        display: none;
    }

    .desktop-br {
        display: inline;
    }
    
    /* Map Section Tablet */
    .map {
        padding: 70px 0;
    }
    
    .map-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    .map-content {
        gap: 40px;
    }
    
    .contact-title {
        font-size: 32px;
        margin-bottom: 25px;
    }
    
    .branch-selector {
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .branch-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .contact-info-section h3 {
        font-size: 22px;
        margin-bottom: 15px;
        margin-top: 25px;
    }
    
    .contact-item {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .contact-icon-img {
        width: 26px;
        height: 26px;
    }
    
    .contact-item p {
        font-size: 16px;
    }
    
    .map-right {
        padding: 0 20px 20px 20px;
    }
    
    .map-container {
        margin-top: 0;
    }
    
    #kakao-map {
        height: 350px !important;
    }
    
    .form-row {
        gap: 12px;
        margin-bottom: 18px;
    }
    
    .form-row label {
        min-width: 100px;
        font-size: 14px;
    }
    
    .custom-select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .privacy-section {
        width: 100%;
        margin: 25px 0;
    }
    
    .privacy-header {
        margin-bottom: 8px;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
    
    .detail-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .detail-content h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .detail-text p {
        font-size: 12px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo img {
        height: 32px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        margin-top: 60px;
    }
    
    .services h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .services-subtitle {
        font-size: 16px;
        margin-bottom: 50px;
        padding: 0 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 20px;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-content {
        padding: 25px 20px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-subtitle {
        font-size: 14px;
    }
    
    .service-description {
        font-size: 13px;
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 12px;
    }
    
    .service-button {
        padding: 10px 20px;
        font-size: 12px;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        grid-template-rows: repeat(10, 180px);
    }
    
    .portfolio-item {
        height: 180px;
        max-width: 100%;
    }
    
    .portfolio-content {
        padding-top: 30px;
    }
    
    .portfolio-title {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .portfolio-plus {
        width: auto;
        height: auto;
        font-size: 32px;
        margin: -6px auto 0;
    }
    
    .popup-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 15px;
        flex-direction: column;
    }
    
    .popup-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .popup-image-container {
        width: 100%;
        height: 250px;
    }
    
    .popup-info {
        width: 100%;
        padding: 20px 15px;
    }
    
    .popup-info h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .popup-info p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .mobile-screenshots {
        flex-direction: column;
        align-items: center;
    }
    
    .image-slider {
        height: 60vh;
        min-height: 400px;
    }
    

    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .contact-info p {
        font-size: 20px;
    }
    
    .contact-details {
        margin-top: 30px;
    }
    
    .contact-item {
        margin-bottom: 20px;
        padding: 10px 0;
        justify-content: center;
    }
    
    .contact-form {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .privacy-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .privacy-left {
        flex: 1;
        min-width: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .privacy-right {
        flex-shrink: 0;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 15px;
    }
    
    .submit-btn {
        width: 100%;
        margin-left: 0;
        padding: 15px;
        font-size: 15px;
    }
    
    .naver-map {
        height: 200px;
    }
    
    .custom-select {
        width: 100%;
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .footer-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
    }
    
    .footer-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .footer-links {
        font-size: 13px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* 모바일에서 데스크톱 푸터 숨기고 모바일 푸터 표시 */
    .desktop-footer {
        display: none;
    }
    
    .mobile-footer {
        display: block;
        text-align: left;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .mobile-footer p {
        font-size: 11px;
        line-height: 1.6;
        margin: 4px 0;
        color: #666;
    }
    
    .footer-copyright {
        text-align: left;
    }
    
    .footer-copyright p {
        font-size: 11px;
    }
    
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        margin: 20px auto;
        max-height: 90vh;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-close {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .terms-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .terms-section h4 {
        font-size: 14px;
        margin: 15px 0 8px 0;
    }
    
    .terms-section p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Stats Section Mobile */
    .stats {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 16px;
    }

    /* Company Overview Mobile */
    .company-overview {
        padding: 60px 0;
    }
    
    .overview-header {
        margin-bottom: 50px;
    }
    
    .overview-header h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .motto-section h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .motto-text {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .motto-description {
        font-size: 14px;
    }
    
    .company-info {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 50px;
    }
    
    .info-section h3,
    .business-areas h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 5px;
        padding: 10px 0;
    }
    
    .info-label {
        min-width: auto;
        font-size: 14px;
    }
    
    .info-value {
        font-size: 14px;
    }
    
    .business-circle {
        width: 150px;
        height: 150px;
    }
    
    .circle-content h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .circle-content p {
        font-size: 12px;
        margin: 2px 0;
    }

    /* Clients Section Mobile */
    .clients {
        padding: 60px 0;
    }
    
    .clients-stats {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .client-stat {
        padding: 25px;
    }
    
    .client-stat .stat-number {
        font-size: 36px;
    }
    
    .client-stat .stat-label {
        font-size: 16px;
    }
    

    
    .clients-carousel {
        padding: 30px 0;
    }
    
    .clients-slider {
        gap: 30px;
        animation-duration: 20s;
    }
    
    .client-item {
        min-width: 120px;
        height: 80px;
        padding: 12px;
    }
    
    .client-item img {
        max-width: 100px;
        max-height: 60px;
    }

    /* Company Section Mobile */
    .company {
        padding: 60px 0;
    }
    
    .company-content {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }
    
    .company-left {
        padding: 20px;
        order: 1;
    }
    
    .planpia-logo-large img {
        height: 80px;
    }
    
    .company-slogan {
        font-size: 16px;
    }
    
    .company-right {
        padding: 20px;
        order: 2;
    }
    
    .company-statement {
        font-size: 19px;
        margin-bottom: 12px;
        text-align: center;
        line-height: 1.2;
    }
    
    .company-description {
        font-size: 16px;
        text-align: center;
        margin-top: 20px;
        line-height: 1.5;
    }
    
    /* 모바일에서 텍스트 표시 제어 */
    .desktop-text {
        display: none;
    }
    
    .mobile-text {
        display: block;
    }

    /* 모바일에서 반응형 줄바꿈 처리 */
    .desktop-br {
        display: none;
    }

    .mobile-br {
        display: inline;
    }

    /* Map Section Mobile */
    .map {
        padding: 60px 0;
    }
    
    .map-title {
        font-size: 28px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .map-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-left {
        padding: 10px;
        order: 2;
    }
    
    .map-right {
        padding: 10px;
        order: 1;
    }
    
    .contact-title {
        font-size: 28px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .branch-selector {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .branch-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .contact-info-section h3 {
        font-size: 20px;
        margin-bottom: 15px;
        margin-top: 25px;
    }
    
    .contact-item {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .contact-icon-img {
        width: 24px;
        height: 24px;
    }
    
    .contact-item p {
        font-size: 14px;
    }
    
    #kakao-map {
        height: 300px !important;
    }
    
    .privacy-section {
        width: 100%;
        margin: 20px 0;
    }
    
    .privacy-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .checkbox-label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 14px;
        height: 14px;
        margin-right: 5px;
    }
    
    .detail-btn {
        padding: 4px 8px;
        font-size: 10px;
        width: auto;
        flex-shrink: 0;
    }
    
    .privacy-detail.active {
        padding: 15px;
    }
    
    .detail-content h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .detail-text p {
        font-size: 11px;
        line-height: 1.5;
    }
    
    .portfolio-more {
        margin-top: 25px;
    }
    
    .more-btn {
        padding: 12px 20px;
        font-size: 14px;
        flex-direction: column;
        gap: 5px;
    }

    /* Contact Section Mobile */
    .contact {
        padding: 60px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .contact-details {
        gap: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-icon {
        font-size: 24px;
    }
    
    .contact-text {
        font-size: 16px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    /* Footer Mobile */
    .footer-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-info {
        text-align: left;
    }
    
    .footer-info p {
        font-size: 12px;
        margin: 4px 0;
        font-weight: 500;
    }
    
    .footer-copyright {
        text-align: center;
        margin-top: 20px;
    }
    
    .footer-copyright p {
        font-size: 12px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* Portfolio Detail Modal */
.portfolio-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-detail-modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.portfolio-detail-modal .modal-content {
    position: relative;
    max-width: 1200px;
    max-height: 95vh;
    margin: 2.5vh auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.portfolio-detail-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portfolio-detail-modal .modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.portfolio-detail-modal .modal-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.portfolio-detail-modal .modal-brand {
    display: inline-block;
    background: #255eac;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.portfolio-detail-modal .modal-title {
    font-size: 28px;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
    color: #333;
}

.portfolio-detail-modal .event-title {
    margin-bottom: 30px;
}

.portfolio-detail-modal .event-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #255eac;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.portfolio-detail-modal .event-title p {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
    color: #555;
    line-height: 1.5;
}

.portfolio-detail-modal .modal-body {
    display: flex;
    height: calc(95vh - 80px);
    min-height: 600px;
}

.portfolio-detail-modal .modal-left {
    flex: 1;
    padding: 0;
}

.portfolio-detail-modal .modal-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-detail-modal .modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.portfolio-detail-modal .modal-right {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    height: 100%;
    scroll-behavior: smooth;
}

/* 스크롤바 스타일링 */
.portfolio-detail-modal .modal-right::-webkit-scrollbar {
    width: 8px;
}

.portfolio-detail-modal .modal-right::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.portfolio-detail-modal .modal-right::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.portfolio-detail-modal .modal-right::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.portfolio-detail-modal .modal-right > div {
    margin-bottom: 30px;
}

.portfolio-detail-modal .modal-right h3 {
    font-size: 18px;
    font-weight: 700;
    color: #255eac;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.portfolio-detail-modal .modal-right p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.portfolio-detail-modal .modal-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio-detail-modal .modal-right li {
    font-size: 15px;
    color: #666;
    position: relative;
}

.portfolio-detail-modal .modal-right li:before {
    position: absolute;
    left: 0;
    font-weight: bold;
}

.portfolio-detail-modal .culture-service-content {
    margin-top: 30px;
    padding: 20px 0;
}

.portfolio-detail-modal .culture-service-content #cultureServiceContent {
    line-height: 1.6;
    color: #333;
    font-size: 15px;
    white-space: pre-wrap;
}

.portfolio-detail-modal .results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.portfolio-detail-modal .result-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #255eac;
}

.portfolio-detail-modal .result-value {
    font-size: 24px;
    font-weight: 900;
    color: #255eac;
    margin-bottom: 5px;
}

.portfolio-detail-modal .result-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .portfolio-detail-modal .modal-content {
        margin: 0;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }
    
    .portfolio-detail-modal .modal-body {
        flex-direction: column;
        height: calc(100vh - 60px);
        min-height: auto;
    }
    
    .portfolio-detail-modal .modal-left {
        height: 40%;
        min-height: 250px;
    }
    
    .portfolio-detail-modal .modal-image-container {
        height: 100%;
    }
    
    .portfolio-detail-modal .modal-right {
        padding: 20px;
        height: 60%;
        overflow-y: auto;
    }
    
    .portfolio-detail-modal .modal-title {
        font-size: 22px;
    }
    
    .portfolio-detail-modal .modal-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .portfolio-detail-modal .results-grid {
        grid-template-columns: 1fr;
    }
}

/* 모던한 포트폴리오 로딩 스타일 */
.portfolio-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.portfolio-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    animation: shimmer 2s infinite;
}

.loading-container {
    margin-top: 40px;
    text-align: center;
    z-index: 2;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.spinner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #255eac 0%, #1e4a8c 100%);
    animation: bounce 1.4s ease-in-out infinite both;
    box-shadow: 0 4px 12px rgba(37, 94, 172, 0.3);
    position: relative;
}

.spinner-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent 60%);
}

.spinner-dot:nth-child(1) { animation-delay: -0.32s; }
.spinner-dot:nth-child(2) { animation-delay: -0.16s; }
.spinner-dot:nth-child(3) { animation-delay: 0s; }
.spinner-dot:nth-child(4) { animation-delay: 0.16s; }

.loading-text {
    font-size: 18px;
    font-weight: 500;
    color: #475569;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.loading-text-word {
    display: inline-block;
    animation: fadeInOut 2s ease-in-out infinite;
    background: linear-gradient(135deg, #255eac 0%, #1e4a8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.loading-text-word:nth-child(1) { animation-delay: 0s; }
.loading-text-word:nth-child(2) { animation-delay: 0.3s; }
.loading-text-word:nth-child(3) { animation-delay: 0.6s; }

/* 애니메이션 키프레임 */
@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(1) translateY(0);
        opacity: 0.7;
    }
    40% { 
        transform: scale(1.2) translateY(-20px);
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0%, 100% { 
        opacity: 0.5;
        transform: translateY(0px);
    }
    50% { 
        opacity: 1;
        transform: translateY(-3px);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .portfolio-loading {
        min-height: 300px;
        margin: 20px 0;
        border-radius: 15px;
    }
    
    .spinner-dot {
        width: 10px;
        height: 10px;
    }
    
    .loading-text {
        font-size: 16px;
    }
    
    .loading-text-word {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .portfolio-loading {
        min-height: 250px;
        margin: 15px 0;
        border-radius: 12px;
    }
    
    .spinner-dot {
        width: 8px;
        height: 8px;
        gap: 6px;
    }
    
    .loading-spinner {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .loading-text {
        font-size: 14px;
        gap: 6px;
    }
    
    .loading-text-word {
        font-size: 14px;
    }
} 