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

:root {
    --primary-dark: #0a0e27;
    --primary-navy: #1a1f3a;
    --primary-charcoal: #2d3748;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4e4bc;
    --accent-teal: #2d7d7d;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #0f1419;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d3748 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
}

body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--bg-primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    z-index: 1001;
    flex-shrink: 0;
    margin-right: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-menu li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.3px;
    display: inline-block;
    line-height: 1.5;
    vertical-align: middle;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-dark);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hero {
    margin-top: 80px;
    padding: 8rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(45, 125, 125, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-image {
    margin-bottom: 2.5rem;
}

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: 3px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: var(--accent-gold);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

.hero-title {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2.25rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background-color: #e5c84a;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.section {
    padding: 6rem 0;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 4rem;
    color: var(--primary-dark);
    position: relative;
    display: block;
    width: 100%;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    text-align: left;
    line-height: 1.9;
    font-weight: 400;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.detail-item {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: left;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.detail-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-align: left;
}

.detail-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.detail-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.resume-container {
    max-width: 900px;
    margin: 0 auto;
}

.resume-section {
    margin-bottom: 5rem;
}

.resume-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.resume-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--accent-gold);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.resume-icon:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.resume-header h3 {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-teal));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--accent-gold-light), var(--shadow);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.4);
    box-shadow: 0 0 0 3px var(--accent-gold-light), 0 0 20px rgba(212, 175, 55, 0.4);
}

.timeline-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 3px solid var(--accent-gold);
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.timeline-content h4 {
    font-size: 1.375rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-subtitle {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.achievement-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: left;
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent-gold);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.achievement-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.25rem;
    text-align: left;
}

.achievement-card h4 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.achievement-card p {
    color: var(--text-secondary);
}

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

.skill-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-gold);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    text-align: left;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.skill-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-gold);
}

.project-image {
    height: 220px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.project-image .image-placeholder {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--bg-secondary);
    color: var(--primary-dark);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 2rem 2.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    min-width: 140px;
    border: 1px solid var(--border-color);
}

.contact-link:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
    background: var(--gradient-primary);
    color: white;
}

.contact-link:hover .contact-icon {
    color: var(--accent-gold);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

.contact-link:hover .contact-icon {
    color: var(--accent-gold);
}

.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.9rem;
}

html {
    scroll-behavior: smooth;
}

/* Tablet styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

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

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar {
        padding: 1rem 0;
    }

    .navbar .container {
        justify-content: space-between;
        align-items: center;
        width: 100%;
        display: flex;
    }

    .nav-brand {
        font-size: 1.25rem;
        margin-right: 0;
        margin-left: 0;
        order: 1;
        flex-shrink: 0;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 0;
        order: 2;
        flex-shrink: 0;
    }

    .nav-menu {
        order: 3;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        margin-top: 70px;
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .about-text {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        line-height: 1.7;
    }

    .about-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-item {
        padding: 2rem;
    }

    .resume-section {
        margin-bottom: 3rem;
    }

    .resume-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .resume-header h3 {
        font-size: 1.75rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
        margin-bottom: 2rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h4 {
        font-size: 1.125rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .achievement-card {
        padding: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card {
        padding: 2rem;
    }

    .skill-icon {
        font-size: 2.5rem;
    }

    .skill-card h3 {
        font-size: 1.25rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-content h3 {
        font-size: 1.25rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-link {
        width: 100%;
        padding: 1.5rem 2rem;
    }

    .footer {
        padding: 2rem 0;
        font-size: 0.85rem;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-brand {
        font-size: 1.125rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.875rem;
    }

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

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

    .section {
        padding: 2.5rem 0;
    }

    .detail-item,
    .achievement-card,
    .skill-card {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .project-content {
        padding: 1.25rem;
    }

    .contact-link {
        padding: 1.25rem 1.5rem;
    }
}
