/* 기본 리셋 및 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 헤더 스타일 */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 37.5px; /* 50px의 75% */
    width: auto;
    transition: opacity 0.3s ease;
}

.logo:hover img {
    opacity: 0.8;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.logo:hover .logo-text {
    color: #3498db;
}

/* 네비게이션 */
.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: #3498db;
}

/* 언어 전환 버튼 */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: #e9ecef;
}

.lang-btn.active {
    background-color: #3498db;
    color: white !important;
}

/* 모바일 메뉴 토글 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #3498db;
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #3498db;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 특징 섹션 */
.features {
    padding: 80px 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon img {
    transform: scale(1.1);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-item p {
    color: #6c757d;
}

/* 프로젝트 프리뷰 섹션 */
.project-preview {
    padding: 80px 0;
}

.project-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

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

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

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.project-info p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.learn-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.learn-more:hover {
    color: #2980b9;
    transform: translateX(5px);
}

/* 플랫폼별 프로젝트 카드 스타일 */
.project-card[data-platform="zepeto"] {
    border-top: 4px solid #5C46FF;
    position: relative;
}

.project-card[data-platform="zepeto"] .project-info {
    text-align: left;
}

.project-card[data-platform="zepeto"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5C46FF, #4A36CC);
}

.project-card[data-platform="zepeto"]:hover {
    box-shadow: 0 10px 25px rgba(92, 70, 255, 0.3);
}

.project-card[data-platform="roblox"] {
    border-top: 4px solid #315CF7;
    position: relative;
}

.project-card[data-platform="roblox"] .project-info {
    text-align: center;
}

.project-card[data-platform="roblox"] .learn-more {
    justify-content: center;
}

.project-card[data-platform="roblox"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #315CF7, #2547C5);
}

.project-card[data-platform="roblox"]:hover {
    box-shadow: 0 10px 25px rgba(49, 92, 247, 0.3);
}

.project-card[data-platform="other"],
.project-card[data-platform="tbd"],
.project-card[data-platform="TBD"],
.project-card[data-platform="TBA"] {
    border-top: 4px solid #6B7280;
    position: relative;
}

.project-card[data-platform="other"]::before,
.project-card[data-platform="tbd"]::before,
.project-card[data-platform="TBD"]::before,
.project-card[data-platform="TBA"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6B7280, #4B5563);
}

.project-card[data-platform="other"]:hover,
.project-card[data-platform="tbd"]:hover,
.project-card[data-platform="TBD"]:hover,
.project-card[data-platform="TBA"]:hover {
    box-shadow: 0 10px 25px rgba(107, 114, 128, 0.3);
}

/* 플랫폼 배지 스타일 */
.platform-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.platform-badge.platform-zepeto {
    background: rgba(92, 70, 255, 0.95);
    color: white;
}

.platform-badge.platform-roblox {
    background: rgba(49, 92, 247, 0.95);
    color: white;
}

.platform-badge.platform-other,
.platform-badge.platform-tbd,
.platform-badge.platform-TBD,
.platform-badge.platform-TBA {
    background: rgba(107, 114, 128, 0.95);
    color: white;
}

/* 페이지 헤더 (서브페이지용) */
.page-header {
    background-color: #3498db;
    color: white;
    padding: 100px 0 40px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* 푸터 */
.main-footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #ecf0f1;
}

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

/* 반응형 디자인 */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 8px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}

/* 애니메이션 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 프로젝트 목록 페이지 스타일 */
.projects-section {
    padding: 60px 0;
}

.projects-section:nth-child(even) {
    background-color: #f8f9fa;
}

.projects-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.project-status.ongoing {
    background-color: #3498db;
    color: white;
}

.project-status.upcoming {
    background-color: #f39c12;
    color: white;
}

.project-status.completed {
    background-color: #27ae60;
    color: white;
}

.project-card.upcoming {
    opacity: 0.8;
}

.project-card.upcoming img {
    filter: grayscale(20%);
}

.project-card.completed {
    border-left: 4px solid #27ae60;
}

.coming-soon {
    display: inline-block;
    background-color: #95a5a6;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
}

.project-stats {
    margin-top: 1rem;
    color: #27ae60;
    font-weight: 600;
}

/* About 페이지 추가 스타일 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.content-section {
    padding: 80px 0;
}

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

/* About 페이지 - 회사 연혁 스타일 */
.history-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #3498db;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background-color: #3498db;
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background-color: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 30px;
    flex: 1;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 20px;
    border: 10px solid transparent;
    border-right-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 20px;
    border: 10px solid transparent;
    border-left-color: white;
}

/* About 페이지 - 수상 경력 스타일 */
.awards-section {
    padding: 80px 0;
    background-color: white;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.award-item {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.award-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.award-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background-color: white;
}

.award-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.award-item h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.award-item p {
    color: #6c757d;
    line-height: 1.6;
}

/* 반응형 - Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .timeline-year {
        min-width: 60px;
        font-size: 1rem;
        padding: 10px 15px;
        margin-left: 0;
    }
    
    .timeline-content {
        margin-left: 20px;
        margin-right: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        content: '';
        position: absolute;
        right: 100%;
        top: 15px;
        border: 8px solid transparent;
        border-right-color: white;
        left: auto;
    }
}

/* Contact 페이지 스타일 */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h2, .contact-form-container h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item .icon {
    font-size: 24px;
    margin-right: 20px;
    margin-top: 5px;
}

.info-item p {
    margin: 0;
    line-height: 1.6;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

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

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Contact 지도 스타일 */
.map-container h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.map-wrapper {
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.map-info {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.map-info p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.location-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.detail-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.detail-item span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Contact 페이지 반응형 */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 40px;
    }
    
    .location-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
}

/* 프로젝트 상세 페이지 스타일 */
.project-detail-header {
    padding: 60px 0;
    background: #e9ecef;
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.project-info span {
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin: 5px;
}

.project-summary,
.project-features {
    margin-bottom: 50px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.project-summary h3,
.project-features h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.project-summary p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 15px;
}

.project-features ul {
    list-style: none;
    padding-left: 0;
}

.project-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #6c757d;
}

.project-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 1.2em;
}