/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
}

.logo h1 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo h1 a:hover {
    color: #3498db;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #3498db;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Slide Styles */
.hero-slide {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 70px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide-item.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* PC 이미지 (기본) */
.hero-image-pc {
    display: block;
}

.hero-image-mobile {
    display: none;
}

.hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* Main Work Section */
.main-work {
    padding: 80px 0;
    background: #fff;
    display: block;
    visibility: visible;
    opacity: 1;
    min-height: auto;
    overflow: visible;
}

.main-work-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.main-work-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-work-item:nth-child(even) {
    direction: rtl;
}

.main-work-item:nth-child(even)>* {
    direction: ltr;
}

.main-work-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.main-work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-work-item:hover .main-work-image img {
    transform: scale(1.05);
}

.main-work-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.main-work-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.work-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.work-features li {
    padding: 10px 15px;
    background: #fff;
    border-radius: 5px;
    color: #2c3e50;
    font-weight: 500;
    position: relative;
    padding-left: 30px;
}

.work-features li::before {
    content: "✓";
    position: absolute;
    left: 10px;
    color: #3498db;
    font-weight: bold;
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background: #f8f9fa;
    overflow: hidden;
}

.partners-slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.partners-slider {
    display: flex;
    gap: 40px;
    animation: slidePartners 12s linear infinite;
    width: fit-content;
}

.partner-logo {
    flex: 0 0 calc(16.666% - 33.33px);
    min-width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes slidePartners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-16.666% * 6 - 40px * 6));
    }
}

/* 파트너스 슬라이더 일시정지 (호버 시) */
.partners-slider-wrapper:hover .partners-slider {
    animation-play-state: paused;
}

/* Main Work 및 Partners 모바일 반응형은 아래 통합 미디어 쿼리로 이동 */

/* Projects Section */
.projects {
    padding: 80px 0;
    background: #f8f9fa;
    display: block;
    visibility: visible;
    opacity: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.project-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-info p {
    color: #666;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.btn-submit {
    padding: 12px 30px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    background: #2980b9;
}

.contact-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

.contact-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 10px;
}

.footer-info p {
    color: #bdc3c7;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Mobile Responsive Styles (768px and below) */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem 0;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-slide {
        height: 60vh;
        margin-top: 60px;
    }

    /* 모바일에서는 모바일 이미지 표시, PC 이미지 숨김 */
    .hero-image-pc {
        display: none;
    }

    .hero-image-mobile {
        display: block;
    }

    .hero-controls {
        padding: 0 10px;
    }

    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .hero-indicators {
        bottom: 20px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    /* Main Work 모바일 스타일 */
    /* 워드프레스 테마나 다른 스타일과의 충돌로 인해 가려지는 것을 방지하기 위해 강제 표시 설정 */
    section.main-work,
    #main-work,
    .main-work {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        background: #fff !important;
        padding: 50px 0 !important;
        width: 100% !important;
    }

    .main-work .container {
        display: block !important;
        width: 100% !important;
        padding: 0 20px !important;
    }

    .main-work-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    .main-work-item {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .main-work-item:nth-child(even) {
        direction: ltr;
    }

    .main-work-item:nth-child(even)>* {
        direction: ltr;
    }

    .main-work-image {
        height: 250px;
        width: 100%;
    }

    .work-features {
        grid-template-columns: 1fr;
    }

    /* Projects 모바일 스타일 */
    section.projects,
    #projects,
    .projects {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        background: #f8f9fa !important;
        padding: 50px 0 !important;
        width: 100% !important;
    }

    .projects-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .project-card {
        width: 100%;
    }

    /* Contact & Footer 모바일 스타일 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }

    /* Partners 모바일 스타일 */
    .partner-logo {
        flex: 0 0 calc(50% - 20px);
        min-width: 120px;
        height: 80px;
        padding: 15px;
    }

    @keyframes slidePartnersMobile {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-50% * 6 - 20px * 6));
        }
    }
}

/* Tablet Styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}