/* 전역 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #020202;
    --secondary-color: #020202;
    --text-dark: #fcfcfc;
    --text-light: #718096;
    --bg-light: #000000;
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #020202 0%, #020202 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 배경 애니메이션 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

/* 메인 컨테이너 */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out;
}

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

/* 명함 카드 */
.card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 50px 40px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 프로필 섹션 */
.profile-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 300;
}

/* 소개 섹션 */
.intro-section {
    margin-bottom: 35px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: center;
}

/* 섹션 타이틀 */
.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* 기술 스택 */
.skills-section {
    margin-bottom: 35px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tag {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* 연락처 섹션 */
.contact-section {
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-item:hover {
    background: #ffffff;
    border-color: #000000;
    color: #000000;
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.contact-item i {
    font-size: 1.3rem;
    color: #ffffff;
    width: 25px;
    text-align: center;
}

.contact-item:hover i {
    color: #000000;
}

.contact-item span {
    font-size: 1rem;
    font-weight: 400;
}

.social-link img {
    width: 26px;  /* 이미지 너비 (50px보다 작게) */
    height: 26px; /* 이미지 높이 */
    object-fit: contain; /* 이미지 비율 유지 */
}

/* 소셜 링크 */
.social-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* 액션 섹션 */
.action-section {
    text-align: center;
}

.btn-download {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-download:active {
    transform: translateY(-1px);
}

.btn-download i {
    font-size: 1rem;
}

/* 푸터 */
.footer {
    text-align: center;
    margin-top: 30px;
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .card {
        padding: 35px 25px;
    }

    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .intro-section {
        padding: 20px;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    .skill-tag {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .contact-item {
        padding: 12px 15px;
    }

    .contact-item span {
        font-size: 0.9rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .btn-download {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .shape-1, .shape-2, .shape-3 {
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .skills-container {
        gap: 8px;
    }

    .social-section {
        gap: 15px;
    }
}
