/* ============================================
   shadcn/ui Inspired Design System
   ============================================ */

/* CSS Variables - Dark Theme (Default) */
:root {
    /* Colors */
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
    
    /* Chart Colors */
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
    
    /* Radius */
    --radius: 0.5rem;
    
    /* Spacing */
    --header-height: 64px;
}

/* Light Theme */
[data-theme="light"] {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: hsl(var(--background) / 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: hsl(var(--foreground));
    font-weight: 600;
    font-size: 1rem;
}

.logo i {
    font-size: 1.25rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--accent));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: hsl(var(--foreground));
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem;
    z-index: 99;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: hsl(var(--accent));
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
    background-color: hsl(var(--accent));
}

.btn-ghost {
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-ghost:hover {
    background-color: hsl(var(--accent));
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: transparent;
    color: hsl(var(--foreground));
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.btn-icon:hover {
    background-color: hsl(var(--accent));
}

/* Theme Toggle Icons */
.theme-icon-light,
.theme-icon-dark {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-icon-light {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-icon-dark {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-icon-light {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-icon-dark {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.btn-icon {
    position: relative;
}

/* ============================================
   Main Content
   ============================================ */
.main {
    padding-top: var(--header-height);
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 0;
    min-height: calc(100vh - var(--header-height));
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    width: fit-content;
}

.status-dot {
    font-size: 0.5rem;
    color: #22c55e;
    animation: pulse 2s infinite;
}

.badge-unavailable .status-dot {
    color: #ef4444;
}

.badge-unavailable {
    border-color: hsl(0 62% 30% / 0.3);
    background-color: hsl(0 62% 30% / 0.1);
}

[data-theme="light"] .badge-unavailable {
    border-color: hsl(0 84% 60% / 0.3);
    background-color: hsl(0 84% 60% / 0.1);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: hsl(var(--foreground));
}

.gradient-text {
    background: linear-gradient(135deg, hsl(var(--chart-1)), hsl(var(--chart-2)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 540px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-links {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    transition: all 0.2s ease;
}

.social-link:hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--accent));
}

.social-link i {
    font-size: 1.25rem;
}

/* Hero Terminal */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-card {
    width: 100%;
    max-width: 480px;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: hsl(var(--muted));
    border-bottom: 1px solid hsl(var(--border));
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

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

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.terminal-title {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    min-height: 280px;
    max-height: 350px;
    overflow-y: auto;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: hsl(var(--border));
    border-radius: 3px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.prompt {
    color: hsl(var(--chart-2));
    font-weight: 600;
}

.command {
    color: hsl(var(--foreground));
}

.terminal-output {
    color: hsl(var(--muted-foreground));
    padding-left: 1.25rem;
    margin-bottom: 0.25rem;
}

.terminal-output.clickable {
    cursor: pointer;
    transition: color 0.2s ease;
}

.terminal-output.clickable:hover {
    color: hsl(var(--chart-1));
}

.terminal-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: hsl(var(--foreground));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    caret-color: hsl(var(--chart-2));
}

.terminal-input::placeholder {
    color: hsl(var(--muted-foreground));
    opacity: 0.5;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background-color: hsl(var(--foreground));
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-hint {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid hsl(var(--border));
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.terminal-hint code {
    background: hsl(var(--secondary));
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    margin: 0 0.125rem;
}

.terminal-hint code.clickable-cmd {
    cursor: pointer;
    transition: all 0.2s ease;
}

.terminal-hint code.clickable-cmd:hover {
    background: hsl(var(--chart-1));
    color: hsl(var(--background));
}

/* ============================================
   Section Styles
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.section-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    padding: 6rem 0;
    border-top: 1px solid hsl(var(--border));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: hsl(var(--ring));
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.stat-icon {
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.stat-change.positive {
    color: #22c55e;
}

.stat-change i {
    font-size: 0.625rem;
}

/* Chart Card */
.chart-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.chart-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.commits {
    background-color: hsl(var(--chart-1));
}

.legend-dot.prs {
    background-color: hsl(var(--chart-2));
}

.chart-container {
    height: 200px;
    position: relative;
}

/* Tech Card */
.tech-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    padding: 1.25rem;
}

.tech-header {
    margin-bottom: 1rem;
}

.tech-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.tech-description {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background-color: transparent;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: hsl(var(--muted-foreground));
    transition: all 0.2s ease;
}

.tech-item:hover {
    border-color: hsl(var(--foreground) / 0.3);
    color: hsl(var(--foreground));
}

.tech-item i {
    font-size: 0.75rem;
    color: inherit;
}

/* ============================================
   Articles Section
   ============================================ */
.articles-section {
    padding: 6rem 0;
    border-top: 1px solid hsl(var(--border));
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.article-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.article-card:hover {
    border-color: hsl(var(--ring));
    transform: translateY(-2px);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-tag {
    padding: 0.125rem 0.5rem;
    background-color: hsl(var(--secondary));
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.article-date {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.article-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    line-height: 1.4;
}

.article-excerpt {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    flex-grow: 1;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: gap 0.2s ease;
}

.article-link:hover {
    gap: 0.75rem;
}

.article-link i {
    font-size: 0.75rem;
}

/* ============================================
   Projects Section
   ============================================ */
.projects-section {
    padding: 6rem 0;
    border-top: 1px solid hsl(var(--border));
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 1.5);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.2s ease;
}

.project-card:hover {
    border-color: hsl(var(--ring));
    transform: translateY(-2px);
}

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

.project-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--secondary));
    border-radius: var(--radius);
    color: hsl(var(--foreground));
    font-size: 1.125rem;
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.project-link:hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--accent));
}

.project-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.project-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    flex-grow: 1;
}

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

.project-tag {
    padding: 0.125rem 0.5rem;
    background-color: hsl(var(--secondary));
    border-radius: 9999px;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.project-stats {
    display: flex;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid hsl(var(--border));
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.project-stat i {
    font-size: 0.75rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 6rem 0;
    border-top: 1px solid hsl(var(--border));
}

.cta-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) * 2);
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.cta-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    border-top: 1px solid hsl(var(--border));
    padding: 2rem 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: hsl(var(--foreground));
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-content {
        order: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .main {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .hero {
        padding: 2.5rem 0;
        gap: 2.5rem;
    }
    
    .hero-content {
        gap: 1.25rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }
    
    .hero-actions {
        gap: 0.75rem;
        margin-top: 0.5rem;
    }
    
    .terminal-card {
        max-width: 100%;
    }
    
    .terminal-body {
        padding: 1.25rem;
        min-height: 200px;
        max-height: 280px;
        font-size: 0.875rem;
        line-height: 1.7;
    }
    
    .terminal-hint {
        padding: 0.75rem 1.25rem;
        font-size: 0.75rem;
    }
    
    .terminal-hint code {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .stats-section,
    .articles-section,
    .projects-section,
    .cta-section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .stat-change {
        font-size: 0.75rem;
    }
    
    .chart-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .chart-container {
        height: 180px;
    }
    
    .tech-card {
        padding: 1.25rem;
    }
    
    .tech-grid {
        gap: 0.5rem;
    }
    
    .tech-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .tech-item i {
        font-size: 0.75rem;
    }
    
    .articles-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .article-card,
    .project-card {
        padding: 1.5rem;
    }
    
    .article-title,
    .project-title {
        font-size: 1.1rem;
    }
    
    .article-excerpt,
    .project-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.375rem;
    }
    
    .cta-description {
        font-size: 0.95rem;
    }
    
    .cta-actions {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 1.625rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .terminal-body {
        min-height: 180px;
        max-height: 250px;
        font-size: 0.8rem;
        padding: 1rem;
    }
    
    .terminal-hint {
        font-size: 0.7rem;
        padding: 0.625rem 1rem;
    }
    
    .terminal-hint code {
        font-size: 0.7rem;
        padding: 0.15rem 0.35rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-icon {
        font-size: 0.875rem;
    }
    
    .stat-change {
        font-size: 0.7rem;
    }
    
    .chart-container {
        height: 150px;
    }
    
    .tech-item {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .tech-item i {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    .article-card,
    .project-card {
        padding: 1.25rem;
    }
    
    .cta-card {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.25rem;
    }
    
    .cta-actions .btn {
        font-size: 0.875rem;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-visual,
.stat-card,
.article-card,
.project-card {
    animation: fadeInUp 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.15s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }
.article-card:nth-child(4) { animation-delay: 0.25s; }
.article-card:nth-child(5) { animation-delay: 0.3s; }
.article-card:nth-child(6) { animation-delay: 0.35s; }

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.15s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }

/* Scroll animations */
.section-header,
.chart-card,
.tech-card,
.cta-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.visible,
.chart-card.visible,
.tech-card.visible,
.cta-card.visible {
    opacity: 1;
    transform: translateY(0);
}
