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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #4a90e2;
    --text-color: #333333;
    --light-text: #666666;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
    position: relative;
    background-color: #6D604B;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: opacity 0.8s ease-in-out;
}

.background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: url('/assets/selfie.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    mask-image: linear-gradient(to right, #6D604B 0%, black 5%, black 70%, rgba(0,0,0,0.5) 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #6D604B 0%, black 5%, black 70%, rgba(0,0,0,0.5) 85%, transparent 100%);
    transition: filter 0.8s ease-in-out;
}

.background-image.blurred::before {
    filter: blur(10px) brightness(0.4);
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.navigation {
    position: fixed;
    top: 30px;
    right: 120px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.nav-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, visibility 0.6s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px 60px;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.slide.exiting {
    transform: translateX(-100px);
}

.portrait-container {
    display: none;
}

.portrait {
    display: none;
}

.content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 2;
}

.slide[data-slide="0"] .content {
    margin-left: auto;
    margin-right: 60px;
    max-width: 600px;
}

.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

h2 {
    font-size: 32px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.contact-info {
    margin-bottom: 30px;
    color: var(--light-text);
    font-size: 15px;
    line-height: 1.6;
}

.linkedin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 18px;
    background: #0077b5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.linkedin-badge:hover {
    background: #006399;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-badge svg {
    flex-shrink: 0;
}

.profile-section p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
}

.skills-section {
    margin-top: 30px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    list-style: none;
    margin-top: 15px;
}

.skills-list li {
    padding: 12px 16px;
    background: rgba(74, 144, 226, 0.08);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.skills-list li:hover {
    background: rgba(74, 144, 226, 0.15);
    transform: translateX(5px);
}

.experience-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience-item {
    padding: 25px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.experience-item:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: translateX(5px);
}

.company-link {
    background: none;
    border: none;
    color: var(--accent-color);
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: all 0.3s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.company-link:hover {
    color: #357abd;
    text-decoration-color: #357abd;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 8px;
}

.job-dates {
    font-size: 14px;
    color: var(--light-text);
    margin-top: 4px;
}

.accomplishments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.accomplishments-section ul {
    margin-top: 15px;
    padding-left: 25px;
}

.accomplishments-section li {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--text-color);
}

.detail-slide .content {
    max-width: 800px;
}

.back-btn {
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateX(-5px);
}

.detail-content {
    margin-top: 25px;
}

.detail-content ul {
    padding-left: 25px;
}

.detail-content li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

.projects-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-item {
    padding: 30px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.project-item:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-item h3 {
    margin-bottom: 12px;
}

.project-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-item a:hover {
    color: #357abd;
    border-bottom-color: #357abd;
}

.external-link-icon {
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.project-item a:hover .external-link-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}

.project-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin-top: 8px;
}

.project-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: rgba(74, 144, 226, 0.15);
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes fadeInContent {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dark-mode-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 193, 7, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
}

.notice-content p {
    margin: 0;
    color: #000;
    font-size: 14px;
    font-weight: 500;
}

.dismiss-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.dismiss-btn:hover {
    transform: scale(1.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    .navigation {
        top: 15px;
        right: 15px;
        gap: 10px;
        flex-wrap: wrap;
        max-width: calc(100% - 30px);
    }

    .nav-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .slide {
        padding: 90px 20px 40px;
    }

    .content {
        padding: 30px 25px;
        max-height: calc(100vh - 130px);
    }

    .slide[data-slide="0"] .content {
        margin-right: 0;
        max-width: 100%;
        opacity: 0;
        animation: fadeInContent 0.8s ease-out 2s forwards;
    }

    .background-image::before {
        width: 100%;
        mask-image: linear-gradient(to bottom, #6D604B 0%, black 20%, black 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, #6D604B 0%, black 20%, black 80%, transparent 100%);
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 20px;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }
}
