/* Reset and Variables */
:root {
    --background: #0B0F19;
    --surface: #151B2B;
    --primary-text: #E2E8F0;
    --secondary-text: #94A3B8;
    --accent-blue: #A8D1E7;
    --accent-green: #A8D8B9;
    --accent-purple: #C4B5E3;
    --accent-orange: #E7A803;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--background);
    color: var(--primary-text);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Utilities */
.text-accent-blue { color: var(--accent-blue); }
.text-accent-green { color: var(--accent-green); }
.text-accent-purple { color: var(--accent-purple); }
.text-accent-orange { color: var(--accent-orange); }
.font-medium { font-weight: 500; }

/* -----------------------------------
   Navigation Bar
----------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(11, 15, 25, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
}

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

.nav-logo {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-blue);
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* -----------------------------------
   Hero Section
----------------------------------- */
.hero-section {
    position: relative;
    padding: 128px 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-color: rgba(168, 209, 231, 0.1);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-green), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: var(--secondary-text);
    font-size: 1.25rem;
    max-width: 42rem;
    margin: 0 auto;
}

/* -----------------------------------
   About Section
----------------------------------- */
.about-section {
    padding: 96px 0;
    position: relative;
    z-index: 10;
    background-color: rgba(21, 27, 43, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-container {
    max-width: 1024px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.avatar-wrapper {
    width: 192px;
    height: 192px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.avatar-glow {
    position: absolute;
    top: -16px;
    right: -16px;
    bottom: -16px;
    left: -16px;
    background: linear-gradient(to bottom right, var(--accent-blue), var(--accent-green), var(--accent-purple));
    border-radius: 1rem;
    filter: blur(24px);
    opacity: 0.2;
    transition: opacity 0.7s ease;
}

.avatar-wrapper:hover .avatar-glow {
    opacity: 0.4;
}

.avatar-box {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.avatar-wrapper:hover .avatar-box {
    border-color: rgba(168, 209, 231, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.avatar-text {
    color: var(--secondary-text);
    font-size: 1.125rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-info {
    flex: 1;
    text-align: center;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.about-desc {
    color: var(--secondary-text);
    font-size: 1.125rem;
    line-height: 1.625;
    margin-bottom: 24px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tag {
    padding: 8px 16px;
    border-radius: 6px;
    background-color: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* -----------------------------------
   Timeline Section
----------------------------------- */
.timeline-section {
    padding: 96px 0;
    position: relative;
    z-index: 10;
    background-color: rgba(21, 27, 43, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-container {
    max-width: 896px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header .section-title {
    font-size: 1.875rem;
    letter-spacing: -0.025em;
}

.title-accent {
    color: var(--accent-purple);
    opacity: 0.5;
    font-weight: normal;
}

.section-subtitle {
    color: var(--secondary-text);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto;
}

.timeline-wrapper {
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 16px;
}

.timeline-line {
    display: none;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.timeline-dot {
    position: absolute;
    left: -6.5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.dot-blue { background-color: var(--accent-blue); color: var(--accent-blue); }
.dot-green { background-color: var(--accent-green); color: var(--accent-green); }
.dot-purple { background-color: var(--accent-purple); color: var(--accent-purple); }
.dot-orange { background-color: var(--accent-orange); color: var(--accent-orange); }

.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
    box-shadow: 0 0 15px currentColor;
}

.timeline-content {
    width: 100%;
    padding-left: 32px;
}

.timeline-card {
    background-color: var(--surface);
    padding: 24px;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-blue:hover { border-color: rgba(168, 209, 231, 0.5); transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.card-green:hover { border-color: rgba(168, 216, 185, 0.5); transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.card-purple:hover { border-color: rgba(196, 181, 227, 0.5); transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.card-orange:hover { border-color: rgba(231, 168, 3, 0.5); transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.glow-blue { background-color: var(--accent-blue); }
.glow-green { background-color: var(--accent-green); }
.glow-purple { background-color: var(--accent-purple); }
.glow-orange { background-color: var(--accent-orange); }

.timeline-item:hover .card-glow {
    opacity: 0.1;
}

.card-year {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 2.25rem;
    font-weight: 900;
    opacity: 0.2;
    pointer-events: none;
    line-height: 1;
}

.year-blue { color: var(--accent-blue); }
.year-green { color: var(--accent-green); }
.year-purple { color: var(--accent-purple); }
.year-orange { color: var(--accent-orange); }

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 10;
    transition: color 0.3s ease;
}

.timeline-item:hover .title-blue {
    background: linear-gradient(to right, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.timeline-item:hover .title-green {
    background: linear-gradient(to right, #fff, var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.timeline-item:hover .title-purple {
    background: linear-gradient(to right, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.timeline-item:hover .title-orange {
    background: linear-gradient(to right, #fff, var(--accent-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-desc {
    color: var(--secondary-text);
    line-height: 1.625;
    position: relative;
    z-index: 10;
}

.timeline-empty {
    display: none;
}

/* -----------------------------------
   Responsive Design (Desktop)
----------------------------------- */
@media (min-width: 768px) {
    .mobile-break {
        display: none;
    }

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

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

    .about-container {
        flex-direction: row;
        align-items: center;
    }

    .avatar-wrapper {
        width: 256px;
        height: 256px;
    }

    .about-info {
        text-align: left;
    }

    .section-header .section-title {
        font-size: 3rem;
    }

    .tech-tags {
        justify-content: flex-start;
    }

    .timeline-wrapper {
        border-left: none;
        margin-left: 0;
    }

    .timeline-line {
        display: block;
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateX(-50%);
    }

    .timeline-item {
        flex-direction: row;
        align-items: center;
    }

    .timeline-dot {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item:hover .timeline-dot {
        transform: translateX(-50%) scale(1.5);
    }

    .timeline-content {
        width: 41.666667%; /* 5/12 */
        padding-left: 0;
    }

    .content-left {
        /* text-align: right; */
        text-align: left;
        padding-right: 48px;
    }

    .content-right {
        order: 3;
        padding-left: 48px;
    }

    .timeline-empty {
        display: block;
        width: 41.666667%; /* 5/12 */
    }
}

/* -----------------------------------
   Page Header (for Blog List)
----------------------------------- */
.page-header {
    position: relative;
    padding: 64px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.page-header-content {
    position: relative;
    z-index: 10;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-subtitle {
    color: var(--secondary-text);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto;
}

/* -----------------------------------
   Blog List Section
----------------------------------- */
.blog-list-section {
    padding: 48px 0;
}

.blog-list-container {
    max-width: 800px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-card {
    background-color: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(168, 209, 231, 0.3);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.blog-date {
    color: var(--secondary-text);
    font-size: 0.875rem;
    font-family: monospace;
}

.blog-tag {
    background-color: rgba(168, 209, 231, 0.1);
    color: var(--accent-blue);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.blog-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--accent-blue);
}

.blog-desc {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-read-more {
    display: inline-block;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.blog-read-more:hover {
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 64px;
}

.btn-pagination {
    background-color: var(--surface);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-pagination:hover:not(:disabled) {
    background-color: rgba(168, 209, 231, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: var(--secondary-text);
    font-size: 0.875rem;
}

.no-data, .error-msg {
    text-align: center;
    color: var(--secondary-text);
    padding: 48px;
    background-color: var(--surface);
    border-radius: 12px;
}

/* -----------------------------------
   Blog Detail Section
----------------------------------- */
.blog-detail-section {
    padding: 48px 0;
}

.blog-detail-container {
    max-width: 800px;
}

.back-link {
    display: inline-block;
    color: var(--secondary-text);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-blue);
}

.blog-header {
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 32px;
}

.blog-header .blog-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

/* Markdown Body Styles */
.markdown-body {
    color: var(--primary-text);
    line-height: 1.7;
    font-size: 1.125rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: #fff;
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
}

.markdown-body h1 { font-size: 2.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.3em; }
.markdown-body h2 { font-size: 1.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.3em; }
.markdown-body h3 { font-size: 1.5rem; }
.markdown-body h4 { font-size: 1.25rem; }

.markdown-body p {
    margin-bottom: 1.5em;
}

.markdown-body a {
    color: var(--accent-blue);
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.markdown-body li {
    margin-bottom: 0.5em;
}

.markdown-body blockquote {
    margin: 0 0 1.5em 0;
    padding: 0 1em;
    color: var(--secondary-text);
    border-left: 4px solid var(--accent-blue);
    background-color: rgba(168, 209, 231, 0.05);
    padding: 1em;
    border-radius: 0 8px 8px 0;
}

.markdown-body code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.markdown-body pre {
    background-color: #0d1117;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.markdown-body pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: #e6edf3;
}

.markdown-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5em 0;
}

.markdown-body hr {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    margin: 2em 0;
}

/* -----------------------------------
   Site Footer
----------------------------------- */
.site-footer {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(11, 15, 25, 0.5);
    color: var(--secondary-text);
    font-size: 0.875rem;
    line-height: 1.8;
}

.site-footer a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--accent-blue);
}