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

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #FFFFFF;
    color: #101828;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.nav {
    width: 100%;
    padding: 2rem 2rem 0;
    display: flex;
    justify-content: center;
}

.nav-content {
    display: flex;
    gap: 1rem;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    width: 100%;
    max-width: 600px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #101828;
    text-decoration: none;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link.active {
    text-decoration: underline;
    text-underline-offset: 0.5rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

.content-wrapper {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 600px;
    width: 100%;
}

/* Profile Section */
.profile-section {
    margin-bottom: 2.5rem;
    align-self: flex-start;
}

.profile-image {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Text Content */
.text-content {
    margin-bottom: 3rem;
    text-align: left;
}

.name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #101828;
}

.text-content p {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: #101828;
}

.text-content a {
    color: #101828;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: opacity 0.2s ease;
}

.text-content a:hover {
    opacity: 0.7;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-start;
}

.social-link {
    display: flex;
    align-items: center;
    color: #101828;
    transition: opacity 0.2s ease;
    position: relative;
}

.social-link:hover svg {
    opacity: 0.7;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Tooltip */
.social-link[data-tooltip] {
    position: relative;
}

.social-link[data-tooltip]:hover::before,
.social-link[data-tooltip]:focus::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFFFFF;
    color: #101828;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease forwards;
}

@keyframes tooltipFadeIn {
    to {
        opacity: 1;
    }
}

.social-link[data-tooltip]:hover::after,
.social-link[data-tooltip]:focus::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #101828;
    z-index: 1001;
    pointer-events: none;
}

/* Resume Styles */
.resume-header {
    margin-bottom: 3rem;
}

.resume-header .name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #101828;
}

.personal-info {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    color: #101828;
}

.email-link {
    color: #101828;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.email-link:hover {
    text-decoration: underline;
}

.resume-section {
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #101828;
}

.resume-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: flex-start;
}

.resume-item .year {
    display: none;
}

.resume-item .title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    color: #101828;
    width: 100%;
}

.project-link {
    color: #101828;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    display: block;
    transition: opacity 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    padding-right: 1.5rem;
    width: 100%;
}

.project-link svg {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.project-link:hover {
    opacity: 0.7;
}

.arrow-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* AI Helper Panel */
.ai-panel {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background-color: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.14);
    min-width: 260px;
    z-index: 1200;
    transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

/* Index-only: wrapper without padding/shadow so launcher stays identical when open */
.ai-panel--light {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    min-width: auto;
    gap: 0;
}

.ai-panel--collapsed {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    min-width: auto;
    gap: 0;
}

.ai-panel__launcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    border-radius: 16px;
    background: oklch(97% 0.001 106.424);
    border: 1px solid rgba(16, 24, 40, 0.1);
    box-shadow: none;
    color: #101828;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ai-panel__launcher svg {
    width: 20px;
    height: 20px;
}

.ai-panel__launcher:hover,
.ai-panel__launcher:focus {
    box-shadow: none;
    transform: translateY(-1px);
}

.ai-panel__launcher[aria-expanded="true"] {
    box-shadow: none;
    border-color: transparent;
}

.ai-panel__content {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.5rem;
    background: #FFFFFF;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
    min-width: 280px;
}

.ai-panel--collapsed .ai-panel__content {
    display: none;
}

.ai-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ai-panel__title {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 0.25rem;
}

.ai-panel__description {
    font-size: 13px;
    line-height: 1.5;
    color: #475467;
}

.ai-panel__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(16, 24, 40, 0.12);
    background-color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-panel__close:hover,
.ai-panel__close:focus {
    transform: translateY(-1px);
}

.ai-panel__close svg {
    width: 14px;
    height: 14px;
}

.ai-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ai-panel__action {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 24, 40, 0.12);
    background-color: #FFFFFF;
    color: #101828;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    justify-content: flex-start;
}

.ai-panel__action:hover,
.ai-panel__action:focus {
    background: oklch(97% 0.001 106.424);
    box-shadow: none;
    transform: translateY(-1px);
}

.ai-panel__action[disabled] {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

.ai-panel__action-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ai-panel__feedback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    font-weight: 600;
    color: #027A48;
    min-height: 16px;
}

.ai-panel__feedback.is-hidden {
    display: none;
}

.ai-panel__feedback.is-error {
    color: #B42318;
}

@media (max-width: 640px) {
    .ai-panel {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        min-width: 0;
    }

    .ai-panel__launcher {
        justify-content: center;
        width: 100%;
    }

    .resume-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .resume-item .year {
        display: none;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .nav {
        padding: 2rem 2rem 0;
    }
    
    .nav-content {
        max-width: 600px;
    }
    
    .main-content {
        padding: 3rem;
    }
    
    .content-wrapper {
        max-width: 600px;
    }
    
    .profile-image {
        width: 96px;
        height: 96px;
    }
    
    .name {
        font-size: 18px;
    }
    
    .text-content p {
        font-size: 18px;
    }
}

/* Blog Styles */
.blog-content {
    margin-bottom: 3rem;
}

.blog-content p {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: #101828;
}

.blog-content ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-content li {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    color: #101828;
}

.blog-content strong {
    font-weight: 700;
}

.blog-content a {
    color: #101828;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.blog-content a:hover {
    opacity: 0.7;
}

.blog-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #101828;
}

.blog-section {
    margin-top: 2.5rem;
}

.blog-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #101828;
    border-top: solid 1px rgba(0, 0, 0, 0.1);
    padding-top: 32px;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 1.5rem;
}

.faq-question {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #101828;
}

.faq-answer {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: #101828;
}

.blog-signature {
    margin-top: 2rem;
    font-style: normal;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 16px;
    color: #101828;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.main-content--blog {
    align-items: flex-start;
    padding-top: 3rem;
}

/* Print Styles */
@media print {
    .nav {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    .social-links {
        display: none;
    }
    
    .container {
        min-height: auto;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles */
.nav-link:focus,
.social-link:focus,
.text-content a:focus,
.project-link:focus,
.email-link:focus,
.ai-panel__launcher:focus,
.ai-panel__action:focus,
.ai-panel__close:focus {
    outline: 2px solid #101828;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .nav-link:hover,
    .social-link:hover,
    .text-content a:hover,
    .project-link:hover {
        opacity: 1;
        text-decoration: underline;
    }
}

