/* ==========================================
   Modern Landing Page - Multi-Section Design
   Inspired by Claude Code, Stripe, Vercel
   ========================================== */

/* CSS Variables */
:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --secondary-color: #6366f1;
    --accent-color: #f59e0b;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #6366f1 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   NAVIGATION SECTION
   ========================================== */
.nav-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, transparent 100%);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.1);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 140px 20px 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-2%, -2%) rotate(1deg);
    }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto 32px;
    border: 4px solid rgba(16, 185, 129, 0.3);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlide 0.8s ease-out;
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
    animation: titleSlide 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    animation: titleSlide 0.8s ease-out 0.4s both;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: titleSlide 0.8s ease-out 0.6s both;
}

.hero-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.hero-link-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-link-btn svg {
    width: 20px;
    height: 20px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: titleSlide 0.8s ease-out 0.6s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-3px);
}

/* ==========================================
   STATS SECTION
   ========================================== */
.stats-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience-section {
    padding: 100px 20px;
    background: var(--bg-dark);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--primary-color) 10%, var(--primary-color) 90%, transparent 100%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    max-width: 380px;
    margin-right: 40px;
    position: relative;
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 40px;
}

.timeline-content:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.timeline-dot {
    position: absolute;
    right: -8px;
    top: 28px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -8px;
}

.timeline-year {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-company {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-role {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.timeline-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

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

.project-icon {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.project-content {
    padding: 24px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.project-link:hover {
    color: var(--primary-color);
}

/* ==========================================
     CONTENT SECTION - MAIN LAYOUT
     ========================================== */
.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-main {
    width: 100%;
}

/* Tab Container - All tabs in one compact box */
.tab-container {
    display: inline-flex;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tab-header {
    display: flex;
    gap: 6px;
}

/* Horizontal Tabs - Compact */
.h-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.h-tab-btn svg {
    width: 16px;
    height: 16px;
}

.h-tab-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.h-tab-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: #10b981;
    border-color: #10b981;
}

.h-tab-btn[data-tab="patents"].active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.08) 100%);
    color: #8b5cf6;
    border-color: #8b5cf6;
}

.h-tab-btn[data-tab="blog"].active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Travel Map */
    .tab-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-header {
        flex-wrap: nowrap;
    }

    .h-tab-btn {
        flex-shrink: 0;
    }

    .life-travel-map {
        height: 300px;
    }
}

.content-sidebar {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    margin-bottom: 8px;
}

.sidebar-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.sidebar-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.sidebar-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.sidebar-btn[data-tab="patents"].active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.08) 100%);
    color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.sidebar-btn[data-tab="blog"].active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.sidebar-btn[data-tab="travel"].active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.08) 100%);
    color: #f97316;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.sidebar-btn[data-tab="collections"].active {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.08) 100%);
    color: #ec4899;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
}

.content-main {
    flex: 1;
    min-width: 0;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-panel.active {
    display: block;
}

/* Tab-specific full background colors - Experience Panel */
#experience-panel.active {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 4px solid #10b981;
    padding: 24px;
    border-radius: 0 12px 12px 0;
}

/* Tab-specific full background colors - Patents Panel */
#patents-panel.active {
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
    border-left: 4px solid #8b5cf6;
    padding: 24px;
    border-radius: 0 12px 12px 0;
}

/* Tab-specific full background colors - Blog Panel */
#blog-panel.active {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    padding: 24px;
    border-radius: 0 12px 12px 0;
}

/* Tab-specific full background colors - Travel Panel */
#travel-panel.active {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border-left: 4px solid #f97316;
    padding: 24px;
    border-radius: 0 12px 12px 0;
}

/* Tab-specific full background colors - Collections Panel */
#collections-panel.active {
    background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 100%);
    border-left: 4px solid #ec4899;
    padding: 24px;
    border-radius: 0 12px 12px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
     STATS ROW (PATENTS) - Purple Theme
     ========================================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: linear-gradient(145deg, #ede9fe 0%, #ddd6fe 100%);
    border-color: #a78bfa;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ==========================================
     PATENT LIST
     ========================================== */
.patent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.patent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.patent-item:hover {
    background: #f5f3ff;
    border-color: #a78bfa;
    transform: translateX(4px);
}

.patent-title {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.patent-tags {
    padding: 3px 8px;
    background: #ede9fe;
    color: #8b5cf6;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ==========================================
     TAGS SECTION - Purple Theme (Patents Panel)
     ========================================== */
.tags-section {
    margin-bottom: 24px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    color: #7c3aed;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.tag:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    color: #8b5cf6;
}

/* ==========================================
     TERMINAL STYLE (Experience) - Green Theme
     ========================================== */
.terminal-window {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    border: 1px solid #a7f3d0;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.1);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ecfdf5;
    border-bottom: 1px solid #a7f3d0;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.red {
    background: #ff5f56;
}

.terminal-btn.yellow {
    background: #ffbd2e;
}

.terminal-btn.green {
    background: #27ca3f;
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.terminal-body {
    padding: 16px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}

.terminal-line {
    margin-bottom: 12px;
    color: #374151;
}

.terminal-line:last-child {
    margin-bottom: 0;
}

.terminal-prompt {
    color: #2563eb;
    margin-right: 8px;
}

.terminal-command {
    color: #374151;
}

.terminal-output {
    color: #6b7280;
    margin-left: 20px;
}

.terminal-highlight {
    color: #059669;
}

.terminal-keyword {
    color: #dc2626;
}

.terminal-string {
    color: #2563eb;
}

.terminal-command.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ==========================================
     ARTICLE LIST - Blue Theme (Blog Panel)
     ========================================== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.article-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-item:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateX(4px);
}

.article-date {
    font-size: 0.75rem;
    color: #9ca3af;
    min-width: 80px;
    flex-shrink: 0;
}

.article-title {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-tag {
    padding: 3px 8px;
    background: #dbeafe;
    color: #3b82f6;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    flex-shrink: 0;
}

}

/* ==========================================
      COLLECTION SECTION - Pink Theme
      ========================================== */
.collection-section {
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.collection-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--collection-color, #ec4899) 0%, rgba(var(--collection-color, #ec4899), 0.7) 100%);
    border-radius: 12px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(var(--collection-color, #ec4899), 0.3);
}

.collection-icon svg {
    width: 24px;
    height: 24px;
}

.collection-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 8px;
}

.collection-item {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(var(--collection-color, #ec4899), 0.2);
    border-radius: 8px;
    color: #374151;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.collection-item:hover {
    background: rgba(var(--collection-color, #ec4899), 0.1);
    border-color: var(--collection-color, #ec4899);
    color: var(--collection-color, #ec4899);
    transform: translateX(4px);
}

.collection-link {
    padding: 10px 0;
    color: #9ca3af;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
    text-align: center;
    margin-top: 8px;
}

.collection-link:hover {
    color: var(--collection-color, #ec4899);
}

.collection-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(236, 72, 153, 0.2);
}

.collection-link-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(var(--link-color, #ec4899), 0.15) 0%, rgba(var(--link-color, #ec4899), 0.08) 100%);
    border: 1px solid rgba(var(--link-color, #ec4899), 0.25);
    border-radius: 24px;
    color: var(--link-color, #ec4899);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.collection-link-btn:hover {
    background: linear-gradient(135deg, rgba(var(--link-color, #ec4899), 0.25) 0%, rgba(var(--link-color, #ec4899), 0.15) 100%);
    border-color: rgba(var(--link-color, #ec4899), 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--link-color, #ec4899), 0.2);
}

.article-list::-webkit-scrollbar,
.collection-list::-webkit-scrollbar {
    width: 4px;
}

.article-list::-webkit-scrollbar-track,
.collection-list::-webkit-scrollbar-track {
    background: transparent;
}

.article-list::-webkit-scrollbar-thumb,
.collection-list::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 2px;
}

.article-list::-webkit-scrollbar-thumb:hover,
.collection-list::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

/* ==========================================
     PANEL LINK - Bottom Link
     ========================================== */
.panel-link {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.panel-link:hover {
    border-color: #6366f1;
    color: #6366f6;
    background: rgba(99, 102, 241, 0.08);
}

/* ==========================================
    RESPONSIVE
    ========================================== */
@media (max-width: 768px) {
    .content-section {
        flex-direction: column;
    }

    .content-sidebar {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-btn {
        flex-shrink: 0;
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .sidebar-btn svg {
        width: 18px;
        height: 18px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .terminal-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .terminal-line {
        white-space: nowrap;
        min-width: max-content;
    }
}

/* ==========================================
    CONTACT SECTION
    ========================================== */
.contact-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    border-color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-3px);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================
    FOOTER
    ========================================== */
.footer-section {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-divider {
    color: var(--text-muted);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-avatar {
        width: 200px;
        height: 200px;
    }

    .hero-avatar img {
        object-position: center 34%;
        /* Adjusted from 33% per request */
    }

    .nav-links {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
        right: auto;
    }

    .projects-grid,
    .activity-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
}

.animate-delay-3 {
    animation-delay: 0.6s;
    opacity: 0;
}

.animate-delay-4 {
    animation-delay: 0.8s;
    opacity: 0;
}

/* Scroll animations */
.timeline-content,
.project-card,
.activity-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.timeline-content.visible,
.project-card.visible,
.activity-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Down Indicator Styles */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-down-indicator:hover {
    color: var(--primary-color);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}