@font-face {
    font-family: 'KakaoBigSans-Regular';
    src: url('src/KakaoBigSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'KakaoBigSans-Bold';
    src: url('src/KakaoBigSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-color: #ddf2e1;
    --text-color: #1a2a1a;
    --text-secondary: #5c705c;
    --box-bg: #ffffff;
    --box-border: rgba(0, 50, 0, 0.05);
    --box-shadow: 0 8px 30px rgba(0, 50, 0, 0.04);
    --box-hover-shadow: 0 12px 40px rgba(0, 50, 0, 0.08);
    --primary-color: #2e4a2e;
    --accent-color: #4caf50;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #ddf2e1;
        /* 어두운 녹색톤 */
        --text-color: #000000;
        --text-secondary: #000000;
        --box-bg: #152415;
        --box-border: rgba(255, 255, 255, 0.08);
        --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
        --box-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
        --primary-color: #000000;
    }
}

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

body {
    font-family: 'KakaoBigSans-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 0 1rem 2rem 1rem; /* Removed top padding to allow image to touch top edge */
    position: relative;
    overflow-x: hidden;
}



.container {
    width: 100%;
    max-width: 600px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Profile Section */
.profile-section {
    width: 100%;
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.8s ease backwards;
}

.profile-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px; /* Slightly taller for full width */
    overflow: hidden;
    z-index: 0;
}

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

.profile-image-wrapper {
    width: 103px;
    height: 103px;
    margin: 140px auto 1.25rem; /* Margins push the image down over the absolute background */
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

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

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32%;
    border: 4px solid var(--bg-color);
    background-color: var(--bg-color);
}

.profile-name {
    font-family: 'KakaoBigSans-Bold', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    /* Font itself is bold */
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Links / Tabs Section */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-group {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--box-border);
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 50, 0, 0.02);
    animation: fadeInUp 0.8s ease backwards;
    display: flex;
    flex-direction: column;
}

.tab-group:nth-child(1) { animation-delay: 0.1s; }
.tab-group:nth-child(2) { animation-delay: 0.2s; }
.tab-group:nth-child(3) { animation-delay: 0.3s; }

.tab-group:nth-child(1) .tab-content { animation-delay: 0.15s; }
.tab-group:nth-child(2) .tab-content { animation-delay: 0.25s; }
.tab-group:nth-child(3) .tab-content { animation-delay: 0.35s; }

.link-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background-color: transparent;
    border: none;
    border-radius: 0;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Hover effects on .link-box removed */

.link-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.link-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0; /* 완전한 네모 테두리로 수정 (원래 10px) */
    background: var(--bg-color);
    transition: var(--transition);
}

.link-box:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
}

.link-text {
    font-family: 'KakaoBigSans-Bold', sans-serif;
    font-weight: bold;
    /* Font itself is bold */
    font-size: 1.45rem;
    letter-spacing: 0.02em;
}

.link-arrow {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.link-box:hover .link-arrow {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Tab Content (Hidden by default, used via JS) */
.tab-content {
    width: 100%;
    padding: 0 1.5rem; 
    background-color: transparent;
    border: none;
    margin: 0;
    box-shadow: none;
    color: var(--text-secondary);
    
    /* Slide Animation Properties */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, opacity 0.3s ease-in-out;
    animation: fadeIn 0.8s ease backwards;
}

.tab-content.active {
    max-height: 500px; 
    padding: 0 1.5rem 1.5rem 1.5rem;
    opacity: 1;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive specific styles */
@media (max-width: 480px) {
    .profile-image-wrapper {
        width: 113px;
        height: 113px;
    }

    .profile-name {
        font-size: 1.35rem;
    }

    .link-box {
        padding: 1rem 1.25rem;
    }

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