:root {
    --bg-color: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --border-color: #30363d;
    --card-hover: #1c2128;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-pixel: 'VT323', monospace;
}

[data-theme="light"] {
    --bg-color: #f6f8fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e6edf3;
    --text-primary: #24292f;
    --text-secondary: #57606a;
    --accent-color: #0969da;
    --border-color: #d0d7de;
    --card-hover: #f3f4f6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.pixel-font {
    font-family: var(--font-pixel);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Background Grid */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, #21262d 1px, transparent 1px),
        linear-gradient(to bottom, #21262d 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

/* Header */
.site-header {
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-theme="light"] .site-header {
    background-color: rgba(255, 255, 255, 0.9);
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between; 
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions i {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.header-actions i:hover {
    color: var(--text-primary);
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
}

#theme-toggle:hover {
    background-color: var(--bg-tertiary);
}

#theme-toggle i {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

#theme-toggle .sun-icon {
    display: none;
}

#theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] #theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] #theme-toggle .moon-icon {
    display: none;
}

.lang-switcher {
    position: relative;
}

.lang-badge {
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.lang-badge:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.lang-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.lang-switcher.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

[data-theme="light"] .lang-dropdown {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.lang-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-main);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Hero Pixel Art */
.hero {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-color) 100%);
}

/* Robot Animation */
.hero-robot {
    position: absolute;
    bottom: 40px;
    left: -100px;
    animation: robotWalk 15s linear infinite;
    z-index: 0;
}

@keyframes robotWalk {
    0% { left: -100px; }
    100% { left: 100%; }
}

.robot-body {
    position: relative;
    animation: robotBob 0.6s ease-in-out infinite;
}

@keyframes robotBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.robot-head {
    width: 40px;
    height: 35px;
    background: var(--accent-color);
    border-radius: 8px;
    position: relative;
    margin: 0 auto 2px;
}

[data-theme="light"] .robot-head {
    background: #0969da;
}

.robot-antenna {
    width: 2px;
    height: 12px;
    background: var(--accent-color);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.robot-antenna::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: -6px;
    left: -2px;
    animation: antennaGlow 1s ease-in-out infinite;
}

@keyframes antennaGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; box-shadow: 0 0 8px var(--accent-color); }
}

.robot-eye {
    width: 6px;
    height: 6px;
    background: var(--bg-color);
    border-radius: 50%;
    position: absolute;
    top: 12px;
}

.robot-eye-left { left: 8px; }
.robot-eye-right { right: 8px; }

.robot-torso {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 6px;
    position: relative;
    margin: 0 auto;
    border: 2px solid var(--border-color);
}

[data-theme="light"] .robot-torso {
    background: #0969da;
}

.robot-torso::after {
    content: '';
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.robot-arm {
    width: 8px;
    height: 35px;
    background: var(--accent-color);
    border-radius: 4px;
    position: absolute;
    top: 38px;
}

[data-theme="light"] .robot-arm {
    background: #0969da;
}

.robot-arm-left {
    left: 0;
    animation: armSwing 0.6s ease-in-out infinite;
}

.robot-arm-right {
    right: 0;
    animation: armSwing 0.6s ease-in-out infinite reverse;
}

@keyframes armSwing {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
}

.robot-leg {
    width: 10px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 4px;
    position: absolute;
    top: 88px;
}

[data-theme="light"] .robot-leg {
    background: #0969da;
}

.robot-leg-left {
    left: 12px;
    animation: legWalk 0.6s ease-in-out infinite;
}

.robot-leg-right {
    right: 12px;
    animation: legWalk 0.6s ease-in-out infinite reverse;
}

@keyframes legWalk {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(20deg); }
}

.pixel-art-container {
    position: relative;
    z-index: 1;
}

/* Floating Cubes */
.floating-cube {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent-color), #7c3aed);
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    animation: floatCube 6s ease-in-out infinite;
    opacity: 0.6;
}

[data-theme="light"] .floating-cube {
    background: linear-gradient(135deg, #0969da, #7c3aed);
}

.cube-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.cube-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    width: 25px;
    height: 25px;
}

.cube-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    width: 35px;
    height: 35px;
}

@keyframes floatCube {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-20px) rotateX(90deg) rotateY(90deg);
    }
    50% {
        transform: translateY(0) rotateX(180deg) rotateY(180deg);
    }
    75% {
        transform: translateY(-20px) rotateX(270deg) rotateY(270deg);
    }
}

/* Satellites */
.satellite {
    position: absolute;
    animation: orbit 12s linear infinite;
    opacity: 0.7;
}

.satellite-1 {
    top: 20%;
    right: 20%;
}

.satellite-2 {
    top: 70%;
    left: 15%;
    animation-duration: 15s;
    animation-delay: 3s;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(40px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(40px) rotate(-360deg);
    }
}

.satellite-body {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}

[data-theme="light"] .satellite-body {
    background: #0969da;
    box-shadow: 0 0 10px rgba(9, 105, 218, 0.5);
}

.satellite-panel {
    width: 15px;
    height: 8px;
    background: linear-gradient(to right, var(--accent-color), #4a90e2);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.satellite-panel-left {
    right: 20px;
}

.satellite-panel-right {
    left: 20px;
}

/* Code Symbols */
.code-symbol {
    position: absolute;
    font-family: var(--font-pixel);
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 700;
    opacity: 0.4;
    animation: symbolFloat 8s ease-in-out infinite;
}

[data-theme="light"] .code-symbol {
    color: #0969da;
}

.symbol-1 {
    top: 25%;
    right: 10%;
    animation-delay: 0s;
}

.symbol-2 {
    bottom: 25%;
    right: 25%;
    animation-delay: 3s;
}

.symbol-3 {
    top: 50%;
    left: 8%;
    animation-delay: 6s;
    font-size: 2.5rem;
}

@keyframes symbolFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-30px) scale(1.1);
        opacity: 0.6;
    }
}

.pixel-text {
    font-family: var(--font-pixel);
    font-size: 8rem;
    line-height: 1;
    color: #3b82f6;
    text-shadow: 
        4px 4px 0 #1e40af,
        8px 8px 0 #1e3a8a;
    animation: float 4s ease-in-out infinite;
}

[data-theme="light"] .pixel-text {
    color: #2563eb;
    text-shadow: 
        4px 4px 0 #60a5fa,
        8px 8px 0 #93c5fd;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Profile Section */
.profile-section {
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.diagonal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        var(--bg-secondary),
        var(--bg-secondary) 2px,
        transparent 2px,
        transparent 10px
    );
    opacity: 0.3;
    z-index: 0;
}

.profile-inner {
    position: relative;
    z-index: 1;
    padding: 60px 24px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    background-color: var(--bg-secondary);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-content {
    flex: 1;
}

.code-comment {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.name {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 8px;
}

.role {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 16px;
    background: linear-gradient(
        90deg,
        var(--accent-color),
        #7c3aed,
        var(--accent-color)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

#rotating-text {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-block;
    min-width: 200px;
    transition: opacity 0.3s ease;
}

/* Info/Social Bar */
.info-bar {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--border-color); /* Fallback for mobile */
    transition: background-color 0.2s;
}

@media (min-width: 768px) {
    .social-card {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }
    .social-card:last-child {
        border-right: none;
    }
}

.social-card:hover {
    background-color: var(--bg-tertiary);
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.social-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.social-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.social-value {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    opacity: 0;
    transform: translate(-5px, 5px);
    transition: all 0.2s;
}

.social-card:hover .arrow-icon {
    opacity: 1;
    transform: translate(0, 0);
}

/* Sections General */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.section-title .count {
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: normal;
    margin-left: 10px;
}

/* About */
.about-content {
    max-width: 800px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 24px;
}

.highlight-text {
    color: var(--accent-color);
    font-weight: 600;
}

/* Skills */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skill-category {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
}

.skill-cat-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    display: inline-block;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.skill-item:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.skill-item i {
    font-size: 1.2rem;
}

.skill-item .lucide {
    width: 20px;
    height: 20px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.project-image {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.img-pattern {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.project-header i {
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
}

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

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: monospace;
}

/* Timeline Section */
.timeline-section {
    position: relative;
}

.timeline-header {
    margin-bottom: 80px;
}

.timeline-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 12px;
    line-height: 1.6;
}

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

.timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--border-color),
        var(--accent-color) 50%,
        var(--border-color)
    );
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-marker {
    position: absolute;
    left: -50px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 0 4px var(--bg-color), 0 0 20px rgba(88, 166, 255, 0.3);
    z-index: 2;
}

.timeline-content {
    position: relative;
}

.timeline-date {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: var(--font-pixel);
    letter-spacing: 1px;
}

.timeline-description {
    margin-bottom: 32px;
    max-width: 700px;
}

.timeline-description p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.timeline-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.timeline-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

.card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.card-icon i {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
}

.timeline-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.blog-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-date::before {
    content: '';
    width: 4px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.blog-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-read-time::before {
    content: '';
    width: 4px;
    height: 4px;
    background-color: var(--text-secondary);
    border-radius: 50%;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    transition: gap 0.2s ease;
}

.blog-link:hover {
    gap: 12px;
}

.blog-link i {
    width: 18px;
    height: 18px;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 300px;
}

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

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.footer-link i {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-color);
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
}

.footer-link:hover i {
    transform: scale(1.1);
}

.copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .site-header {
        padding: 0 16px;
    }

    .nav-links {
        display: none; /* Hidden on mobile for simplicity, can add hamburger later */
    }

    .pixel-text {
        font-size: 4rem;
    }

    .profile-inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .tagline {
        margin: 0 auto;
    }

    .social-grid {
        grid-template-columns: 1fr;
        border: none;
    }

    .social-card {
        border-right: none;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Timeline Responsive */
    .timeline-container {
        padding-left: 40px;
    }

    .timeline-container::before {
        left: 12px;
    }

    .timeline-marker {
        left: -32px;
        width: 12px;
        height: 12px;
    }

    .timeline-date {
        font-size: 1.5rem;
    }

    .timeline-cards {
        grid-template-columns: 1fr;
    }

    .timeline-header {
        margin-bottom: 50px;
    }
}