* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #f7fafc;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* 이정현 이스터에그 관련 스타일 */
@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(66, 153, 225, 0.6); }
    100% { transform: scale(1); }
}

.easter-egg-active {
    animation: clickPulse 0.3s ease-out;
    border-color: #4299e1 !important;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%) !important;
}

.easter-egg-counter {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(66, 153, 225, 0.95);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4);
}

.easter-egg-counter.show {
    opacity: 1;
    visibility: visible;
    animation: scaleIn 0.5s ease-out;
}

.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.8s ease-out;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-item {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
    color: #4299e1;
    background: rgba(66, 153, 225, 0.1);
    border-bottom-color: #4299e1;
    transform: translateY(-1px);
}

.language-toggle {
    background: #4299e1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.language-toggle:hover {
    background: #3182ce;
    transform: scale(1.05);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.hero-section {
    background: white;
    border-radius: 12px;
    padding: 48px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    animation: scaleIn 1s ease-out 0.2s both;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-section:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.hero-icon {
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
    background-image: url('../images/icon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    animation: scaleIn 1.2s ease-out 0.3s both;
    filter: drop-shadow(0 8px 16px rgba(66, 153, 225, 0.2));
    transition: all 0.3s ease;
}

.hero-section:hover .hero-icon {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 24px rgba(66, 153, 225, 0.3));
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
    animation: slideUp 1s ease-out 0.6s both;
}

.section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
    transition: all 0.3s ease;
    scroll-margin-top: 100px;
}

.section:nth-child(2) { animation-delay: 0.8s; }
.section:nth-child(3) { animation-delay: 1s; }
.section:nth-child(4) { animation-delay: 1.2s; }
.section:nth-child(5) { animation-delay: 1.4s; }

.section:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.section-badge {
    background: #ebf8ff;
    color: #4299e1;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    animation: scaleIn 0.5s ease-out 1.5s both;
}

.about-content {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.team-member {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease-out forwards;
    cursor: pointer;
}

.team-member:nth-child(1) { animation-delay: 1.4s; }
.team-member:nth-child(2) { animation-delay: 1.5s; }
.team-member:nth-child(3) { animation-delay: 1.6s; }
.team-member:nth-child(4) { animation-delay: 1.7s; }
.team-member:nth-child(5) { animation-delay: 1.8s; }
.team-member:nth-child(6) { animation-delay: 1.9s; }

.team-member:hover {
    border-color: #4299e1;
    box-shadow: 0 12px 30px rgba(66, 153, 225, 0.2);
    transform: translateY(-8px) scale(1.02);
}

.member-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 0.875rem;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-member:hover .member-photo {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.3);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    transition: color 0.3s ease;
    user-select: none;
}

.team-member:hover .member-name {
    color: #4299e1;
}

.member-role {
    display: inline-block;
    background: #4299e1;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.team-member:hover .member-role {
    background: #3182ce;
    transform: scale(1.05);
}

.member-description {
    font-size: 0.875rem;
    color: #718096;
    line-height: 1.5;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.contact-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease-out forwards;
}

.contact-item:nth-child(1) { animation-delay: 2s; }
.contact-item:nth-child(2) { animation-delay: 2.1s; }
.contact-item:nth-child(3) { animation-delay: 2.2s; }

.contact-item:hover {
    border-color: #4299e1;
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.15);
    transform: translateY(-4px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #4299e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: #3182ce;
    transform: scale(1.1) rotate(5deg);
}

.contact-label {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 500;
}

/* VUNexAI 로딩 스피너 */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 1;
    animation: spinnerFadeOut 1s ease-out forwards;
}

.vunex-spinner {
    width: 80px;
    height: 80px;
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    animation: vSpinRotate 1.5s linear infinite;
    filter: drop-shadow(0 4px 8px rgba(66, 153, 225, 0.3));
}

@keyframes vSpinRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes spinnerFadeOut {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(1.2); }
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }
    
    .nav-menu {
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .nav-item {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .language-toggle {
        order: -1;
        align-self: flex-end;
        position: absolute;
        top: 12px;
        right: 16px;
    }
    
    .main-content {
        padding: 20px 16px;
    }
    
    .hero-section {
        padding: 32px 24px;
    }
    
    .hero-icon {
        width: 120px;
        height: 120px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 24px 20px;
        scroll-margin-top: 120px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .easter-egg-counter {
        padding: 15px 25px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 12px;
    }
    
    .nav-menu {
        gap: 12px;
    }
    
    .nav-item {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
    
    .language-toggle {
        top: 8px;
        right: 12px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 16px 12px;
    }
    
    .hero-section {
        padding: 24px 16px;
    }
    
    .hero-icon {
        width: 100px;
        height: 100px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section {
        padding: 20px 16px;
        margin-bottom: 16px;
    }
    
    .easter-egg-counter {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* 스크롤 부드러움 개선 */
html {
    scroll-behavior: smooth;
}

/* 포커스 상태 개선 */
.nav-item:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

.language-toggle:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}