.profile-container {
    text-align: center;
    padding: 60px 20px;
    font-family: 'NanumSquare', sans-serif;
    background: var(--header-bg);
    position: relative;
    overflow: hidden;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/myMacbookPro.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--text-color);
}

.profile-title {
    margin-top: 20px;
    font-size: 32px;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-description {
    margin-top: 16px;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.85;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .profile-description {
    opacity: 0.8;
}

.sns-icons {
    margin-top: 30px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.sns-icon {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px;
    border-radius: 50%;
    background: var(--background-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.sns-icon:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.sns-icon-svg {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sns-icon:hover .sns-icon-svg {
    fill: var(--accent-color);
    filter: drop-shadow(0 0 2px var(--accent-color));
}

/* 다크모드 스타일 */
body.dark-mode .profile-container::before {
    opacity: 0.05;
}

body.dark-mode .sns-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .sns-icon-svg {
    fill: #ffffff;
}

body.dark-mode .sns-icon:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .sns-icon:hover .sns-icon-svg {
    fill: var(--accent-color);
    filter: drop-shadow(0 0 3px var(--accent-color));
}

@media screen and (max-width: 768px) {
    .profile-container {
        padding: 40px 15px;
    }

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

    .profile-title {
        font-size: 28px;
    }

    .profile-description {
        font-size: 14px;
        margin-top: 12px;
        padding: 0 10px;
    }

    .sns-icon {
        padding: 8px;
    }

    .sns-icon-svg {
        width: 20px;
        height: 20px;
    }
}

@media screen and (max-width: 480px) {
    .profile-container {
        padding: 30px 10px;
    }

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

    .profile-title {
        font-size: 24px;
    }

    .profile-description {
        font-size: 13px;
        margin-top: 10px;
        padding: 0 5px;
    }

    .sns-icon {
        padding: 6px;
    }

    .sns-icon-svg {
        width: 18px;
        height: 18px;
    }
}

/* 네비게이션 바 스타일 */
#header {
    position: relative;
}

.header-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0;
}

.header-nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    width: 100%;
    gap: 20px;
    position: relative;
}

.nav-profile-image {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(-10px);
    flex-shrink: 0;
    margin-left: 8px;
    position: relative;
    z-index: 999;
}

.nav-profile-image.show {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

body.dark-mode .nav-profile-image {
    border-color: #7ec8ff;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.nav-title {
    display: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    padding-left: 10px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 0px;
    z-index: 999;
}

.nav-profile-image.show ~ .nav-title {
    left: 96px;
}

.nav-title.show {
    opacity: 1;
    transform: translateY(0);
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.nav-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--accent-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--accent-color);
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--accent-color);
    background: rgba(52, 152, 219, 0.15);
    font-weight: 600;
}

.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-login-btn[hidden] {
    display: none !important;
}

.nav-login-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6391 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.nav-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.nav-auth-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.nav-logout-btn[hidden] {
    display: none !important;
}

.nav-logout-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.nav-logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

/* 토글 버튼 스타일 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
}

.nav-toggle:hover {
    background: rgba(52, 152, 219, 0.1);
}

.nav-toggle:active {
    background: rgba(52, 152, 219, 0.15);
}

.nav-toggle-icon {
    width: 22px;
    height: 2.5px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    position: absolute;
    left: 50%;
    margin-left: -11px;
}

.nav-toggle-icon:nth-child(1) {
    top: 12px;
}

.nav-toggle-icon:nth-child(2) {
    top: 50%;
    margin-top: -1.25px;
}

.nav-toggle-icon:nth-child(3) {
    bottom: 12px;
}

.nav-toggle:hover .nav-toggle-icon {
    background: var(--accent-color);
}

.nav-toggle.active .nav-toggle-icon:nth-child(1) {
    top: 50%;
    margin-top: -1.25px;
    transform: rotate(45deg);
    background: var(--accent-color);
}

.nav-toggle.active .nav-toggle-icon:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active .nav-toggle-icon:nth-child(3) {
    bottom: auto;
    top: 50%;
    margin-top: -1.25px;
    transform: rotate(-45deg);
    background: var(--accent-color);
}

body.dark-mode .nav-toggle-icon {
    background: rgba(255, 255, 255, 0.9);
}

body.dark-mode .nav-toggle:hover {
    background: rgba(52, 152, 219, 0.2);
}

body.dark-mode .nav-toggle:hover .nav-toggle-icon {
    background: #7ec8ff;
}

body.dark-mode .nav-toggle.active .nav-toggle-icon {
    background: #7ec8ff;
}

body.dark-mode .nav-title {
    color: rgba(255, 255, 255, 0.9);
}

/* 다크 모드 네비게이션 */
body.dark-mode .header-nav {
    background: rgba(26, 26, 26, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .header-nav.fixed {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .nav-link:hover {
    color: #7ec8ff;
    background: rgba(52, 152, 219, 0.2);
}

body.dark-mode .nav-link.active {
    color: #7ec8ff;
    background: rgba(52, 152, 219, 0.25);
}

body.dark-mode .nav-login-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
}

body.dark-mode .nav-login-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6391 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.5);
}

body.dark-mode .nav-logout-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

body.dark-mode .nav-logout-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

/* 모바일 네비게이션 */
@media screen and (max-width: 768px) {
    .header-nav {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-container {
        padding: 10px 15px;
        gap: 12px;
        flex-wrap: nowrap;
        position: relative;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .nav-profile-image {
        display: none !important;
    }

    .nav-title {
        display: block;
        font-size: 16px;
        left: 46px;
        padding-left: 8px;
    }

    .nav-profile-image.show ~ .nav-title {
        left: 90px;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        margin-top: 10px;
        z-index: 1000;
    }

    .nav-list.active {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link:hover {
        background: rgba(52, 152, 219, 0.1);
        transform: none;
    }

    .nav-auth-container {
        gap: 8px;
    }

    .nav-login-btn {
        padding: 8px 18px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .nav-logout-btn {
        padding: 8px 18px;
        font-size: 13px;
        flex-shrink: 0;
    }

    body.dark-mode .header-nav {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    body.dark-mode .nav-list {
        background: rgba(26, 26, 26, 0.98);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    body.dark-mode .nav-link {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    body.dark-mode .nav-link:hover {
        background: rgba(52, 152, 219, 0.2);
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        padding: 8px 12px;
        gap: 10px;
    }

    .nav-toggle {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .nav-toggle-icon {
        width: 20px;
        height: 2px;
        margin-left: -10px;
    }

    .nav-toggle-icon:nth-child(1) {
        top: 11px;
    }

    .nav-toggle-icon:nth-child(3) {
        bottom: 11px;
    }

    .nav-profile-image {
        display: none !important;
    }

    .nav-toggle.active .nav-toggle-icon:nth-child(1),
    .nav-toggle.active .nav-toggle-icon:nth-child(3) {
        margin-top: -1px;
    }

    .nav-profile-image {
        display: none !important;
    }

    .nav-title {
        font-size: 14px;
        left: 15px;
        padding-left: 6px;
    }

    .nav-list {
        padding: 10px 0;
        margin-top: 8px;
    }

    .nav-link {
        padding: 10px 16px;
        font-size: 13px;
    }

    .nav-auth-container {
        gap: 6px;
    }

    .nav-login-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .nav-logout-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}