/* =================================
   Isaac Qi's Personal Archive - CSS
   ================================= */

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

/* CSS Custom Properties */
:root {
    /* Primary Colors */
    --parchment: #f4f1e8;
    --old-paper: #e8e0d0;
    --aged-ivory: #f0ead6;
    --sepia: #d4c4a0;
    
    --oxford-blue: #1a1f2e;
    --midnight-navy: #0f1419;
    --charcoal: #2c2c2c;
    --slate-gray: #4a4a4a;
    --pewter: #6d6d6d;
    
    /* Accent Colors */
    --burgundy: #722f37;
    --deep-forest: #2d4a3a;
    --burnt-amber: #cc8500;
    --copper: #b07850;
    --gold-leaf: #d4af37;
    
    /* Text Colors */
    --text-primary: #2c2c2c;
    --text-secondary: #4a4a4a;
    --text-muted: #6d6d6d;
    --text-light: #f4f1e8;
    
    /* Typography */
    --font-serif: 'EB Garamond', 'Crimson Text', Georgia, serif;
    --font-sans: 'Crimson Text', 'Times New Roman', serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Layout */
    --max-width: 1200px;
    --container-padding: 2rem;
    --border-radius: 0.25rem;
    
    /* Shadows */
    --shadow-light: 0 2px 4px rgba(44, 44, 44, 0.1);
    --shadow-medium: 0 4px 12px rgba(44, 44, 44, 0.15);
    --shadow-heavy: 0 8px 24px rgba(44, 44, 44, 0.2);
}

/* Base Typography */
body {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--parchment);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(210, 180, 140, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(160, 82, 45, 0.03) 0%, transparent 50%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    color: var(--oxford-blue);
}

h1 { font-size: 2.5rem; margin-bottom: var(--space-md); }
h2 { font-size: 2rem; margin-bottom: var(--space-md); }
h3 { font-size: 1.5rem; margin-bottom: var(--space-sm); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

a {
    color: var(--burgundy);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--oxford-blue);
    border-bottom-color: var(--burgundy);
}

/* Header Styles */
.site-header {
    padding: var(--space-xl) 0 var(--space-lg);
    border-bottom: 2px solid var(--old-paper);
    margin-bottom: var(--space-xl);
    background: linear-gradient(135deg, var(--aged-ivory) 0%, var(--parchment) 100%);
    box-shadow: var(--shadow-light);
}

.header-content {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.site-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--oxford-blue);
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 4px rgba(26, 31, 46, 0.1);
    letter-spacing: 0.02em;
}

.site-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.main-nav a {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--oxford-blue);
    background: var(--old-paper);
    border-color: var(--sepia);
    box-shadow: var(--shadow-light);
}

/* Main Content */
.main-content {
    margin-bottom: var(--space-xxl);
}

/* Section Styles */
section {
    margin-bottom: var(--space-xxl);
}

/* Intro Section */
.intro-section {
    background: var(--aged-ivory);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border-left: 4px solid var(--burgundy);
    position: relative;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sepia), transparent);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.intro-text:last-child {
    margin-bottom: 0;
}

/* Focus Grid */
.current-focus h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--oxford-blue);
    position: relative;
}

.current-focus h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-leaf);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.focus-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border-top: 3px solid var(--deep-forest);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 74, 58, 0.02) 0%, transparent 50%);
    border-radius: var(--border-radius);
    pointer-events: none;
}

.focus-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.focus-card h4 {
    color: var(--oxford-blue);
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
}

.focus-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

/* Status Labels */
.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status.ongoing {
    background: rgba(204, 133, 0, 0.1);
    color: var(--burnt-amber);
    border: 1px solid rgba(204, 133, 0, 0.3);
}

.status.active {
    background: rgba(45, 74, 58, 0.1);
    color: var(--deep-forest);
    border: 1px solid rgba(45, 74, 58, 0.3);
}

.status.planned {
    background: rgba(114, 47, 55, 0.1);
    color: var(--burgundy);
    border: 1px solid rgba(114, 47, 55, 0.3);
}

/* Update Timeline */
.recent-updates h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--oxford-blue);
    position: relative;
}

.recent-updates h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-leaf);
}

.update-timeline {
    position: relative;
    padding-left: var(--space-lg);
}

.update-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sepia);
}

.update-entry {
    display: flex;
    margin-bottom: var(--space-xl);
    position: relative;
    align-items: flex-start;
}

.update-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    margin-right: var(--space-lg);
    background: var(--old-paper);
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    border: 1px solid var(--sepia);
}

.update-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--burgundy);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.update-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--oxford-blue);
    line-height: 1;
}

.update-date .year {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.update-content {
    flex: 1;
    background: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-left: 3px solid var(--copper);
}

.update-content h4 {
    color: var(--oxford-blue);
    margin-bottom: var(--space-sm);
}

.update-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Navigation Preview */
.navigation-preview h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--oxford-blue);
    position: relative;
}

.navigation-preview h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-leaf);
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.nav-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border-top: 3px solid var(--burgundy);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(114, 47, 55, 0.05), transparent);
    transition: left 0.5s ease;
}

.nav-card:hover::before {
    left: 100%;
}

.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    border-bottom-color: var(--burgundy);
}

.nav-card h4 {
    color: var(--oxford-blue);
    margin-bottom: var(--space-sm);
}

.nav-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background: var(--oxford-blue);
    color: var(--text-light);
    text-align: center;
    padding: var(--space-xl) 0;
    margin-top: var(--space-xxl);
    border-top: 3px solid var(--gold-leaf);
}

.site-footer p {
    color: var(--old-paper);
    margin-bottom: var(--space-xs);
}

.motto {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--sepia);
    letter-spacing: 0.1em;
    margin-bottom: 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --space-xl: 2rem;
        --space-xxl: 2.5rem;
    }
    
    .site-title {
        font-size: 2.2rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
    }
    
    .focus-grid,
    .nav-cards {
        grid-template-columns: 1fr;
    }
    
    .intro-section {
        padding: var(--space-lg);
    }
    
    .update-entry {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .update-date {
        width: auto;
        margin-right: 0;
        text-align: left;
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .update-date .month,
    .update-date .day,
    .update-date .year {
        display: inline;
    }
    
    .update-date .day {
        font-size: 1.2rem;
    }
    
    .update-timeline {
        padding-left: 0;
    }
    
    .update-timeline::before {
        display: none;
    }
    
    .update-entry::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    
    .intro-section {
        padding: var(--space-md);
    }
    
    .focus-card,
    .nav-card,
    .update-content {
        padding: var(--space-md);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--old-paper);
}

::-webkit-scrollbar-thumb {
    background: var(--sepia);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pewter);
}

/* Selection Styling */
::selection {
    background: rgba(114, 47, 55, 0.2);
    color: var(--oxford-blue);
}

/* ===================================
   STUDY LOG SPECIFIC STYLES
   ================================== */

/* Time Period Headers */
.time-period {
    margin: var(--space-xxl) 0 var(--space-xl);
    text-align: center;
    position: relative;
}

.period-title {
    font-size: 2.2rem;
    color: var(--oxford-blue);
    background: var(--parchment);
    padding: 0 var(--space-lg);
    position: relative;
    display: inline-block;
}

.period-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100px;
    right: -100px;
    height: 2px;
    background: var(--sepia);
    z-index: -1;
}

/* Study Log Entry Styles */
.study-log {
    position: relative;
}

.study-entry {
    display: flex;
    margin-bottom: var(--space-xl);
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: all 0.3s ease;
}

.study-entry:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.entry-date {
    flex-shrink: 0;
    width: 120px;
    background: var(--oxford-blue);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    text-align: center;
}

.entry-date .day {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--gold-leaf);
}

.entry-date .month {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--old-paper);
    margin-top: 0.25rem;
}

.entry-content {
    flex: 1;
    padding: var(--space-lg);
    border-left: 4px solid var(--burgundy);
}

.entry-content h3 {
    color: var(--oxford-blue);
    margin-bottom: var(--space-sm);
    font-size: 1.4rem;
}

.entry-content p {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.entry-content p:last-of-type {
    margin-bottom: var(--space-md);
}

.study-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--old-paper);
}

.study-details span {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.study-time {
    background: rgba(204, 133, 0, 0.1);
    color: var(--burnt-amber);
    border: 1px solid rgba(204, 133, 0, 0.3);
}

.study-focus {
    background: rgba(45, 74, 58, 0.1);
    color: var(--deep-forest);
    border: 1px solid rgba(45, 74, 58, 0.3);
}

.study-type {
    background: rgba(114, 47, 55, 0.1);
    color: var(--burgundy);
    border: 1px solid rgba(114, 47, 55, 0.3);
}

/* Current Reading Stack */
.study-resources {
    margin: var(--space-xxl) 0;
    background: var(--aged-ivory);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--deep-forest);
}

.study-resources h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--oxford-blue);
    position: relative;
}

.study-resources h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-leaf);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.resource-item {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.resource-item.primary {
    border-top: 3px solid var(--burgundy);
}

.resource-item.secondary {
    border-top: 3px solid var(--deep-forest);
}

.resource-item.tertiary {
    border-top: 3px solid var(--burnt-amber);
}

.resource-item h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.resource-item p {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.progress {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Academic Goals */
.academic-goals {
    margin: var(--space-xxl) 0;
}

.academic-goals h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--oxford-blue);
    position: relative;
}

.academic-goals h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-leaf);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.goal-item {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border-left: 4px solid var(--copper);
    transition: all 0.3s ease;
}

.goal-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.goal-item h4 {
    color: var(--oxford-blue);
    margin-bottom: var(--space-sm);
}

.goal-item p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--old-paper);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--deep-forest), var(--copper));
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 40px;
}

/* Responsive Design for Study Log */
@media (max-width: 768px) {
    .study-entry {
        flex-direction: column;
    }
    
    .entry-date {
        width: auto;
        flex-direction: row;
        justify-content: center;
        gap: var(--space-sm);
        padding: var(--space-md);
    }
    
    .entry-date .day {
        font-size: 2rem;
    }
    
    .entry-date .month {
        margin-top: 0;
        align-self: flex-end;
        margin-bottom: 0.25rem;
    }
    
    .entry-content {
        border-left: none;
        border-top: 4px solid var(--burgundy);
    }
    
    .resource-grid,
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .period-title::before {
        left: -50px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    .study-entry {
        margin-bottom: var(--space-lg);
    }
    
    .entry-content,
    .resource-item,
    .goal-item {
        padding: var(--space-md);
    }
    
    .study-resources {
        padding: var(--space-lg);
    }
    
    .study-details {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .period-title::before {
        display: none;
    }
}

/* Study Summary Pocket Watch Design */
.current-week h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--oxford-blue);
    position: relative;
}

.current-week h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-leaf);
}

.study-summary-container {
    display: flex;
    justify-content: center;
    margin: var(--space-xl) 0;
}

.study-summary-pocket {
    background: linear-gradient(145deg, var(--aged-ivory), var(--old-paper));
    border: 3px solid var(--copper);
    border-radius: 50px;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    box-shadow: 
        var(--shadow-heavy),
        inset 0 1px 3px rgba(212, 175, 55, 0.3);
    position: relative;
    min-width: 500px;
    justify-content: space-around;
}

.study-summary-pocket::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 16px;
    background: var(--copper);
    border-radius: 10px 10px 0 0;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
}

.study-summary-pocket::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--gold-leaf);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.summary-metric {
    text-align: center;
    flex: 1;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--oxford-blue);
    font-family: var(--font-serif);
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(26, 31, 46, 0.1);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.summary-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--copper), transparent);
    flex-shrink: 0;
}

/* Responsive design for study summary */
@media (max-width: 768px) {
    .study-summary-pocket {
        min-width: auto;
        width: 90%;
        max-width: 400px;
        padding: var(--space-md) var(--space-lg);
        gap: var(--space-md);
        border-radius: 30px;
    }
    
    .metric-value {
        font-size: 1.8rem;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
    
    .summary-divider {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .study-summary-pocket {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-lg);
        border-radius: 25px;
    }
    
    .summary-divider {
        width: 40px;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--copper), transparent);
    }
    
    .metric-value {
        font-size: 1.6rem;
    }
}

/* Time Tracker Specific Styles */
.loading-state, .no-data, .error-state {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-muted);
    font-style: italic;
}

.error-state {
    color: var(--burgundy);
}

.trend.positive {
    color: var(--deep-forest);
}

.trend.negative {
    color: var(--burgundy);
}

.trend.neutral {
    color: var(--text-muted);
}

.insight-data {
    margin-top: var(--space-sm);
}

.data-point {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Visual Chart Styles */
.visual-summary {
    margin: var(--space-xxl) 0;
}

.visual-summary h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--oxford-blue);
    position: relative;
}

.visual-summary h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-leaf);
}

/* Vertical Bar Chart - Clean Pocket Watch Style */
.visual-chart-container {
    display: flex;
    justify-content: center;
    margin: var(--space-xl) 0;
}

.vertical-chart {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: var(--space-lg);
    height: 320px;
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
    background: linear-gradient(145deg, var(--aged-ivory), var(--old-paper));
    border: 3px solid var(--copper);
    border-radius: 50px;
    box-shadow: 
        var(--shadow-heavy),
        inset 0 1px 3px rgba(212, 175, 55, 0.3);
    position: relative;
    min-width: 700px;
    justify-content: space-around;
}

.vertical-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    min-width: 80px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.vertical-bar-container:hover {
    transform: translateY(-4px);
}

.vertical-bar-track {
    width: 28px;
    height: 180px;
    background: linear-gradient(180deg, var(--old-paper) 0%, var(--sepia) 100%);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    box-shadow: 
        inset 0 2px 6px rgba(0,0,0,0.15),
        0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid var(--aged-ivory);
}

.vertical-bar-fill {
    width: 100%;
    border-radius: 12px;
    transition: all 2s cubic-bezier(0.23, 1, 0.320, 1);
    transform: scaleY(0);
    transform-origin: bottom;
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        inset 2px 0 4px rgba(255,255,255,0.3),
        inset -2px 0 4px rgba(0,0,0,0.1);
    animation: riseToPosition 2s cubic-bezier(0.23, 1, 0.320, 1) forwards;
    animation-delay: var(--animation-delay, 0.2s);
}

.vertical-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.4) 0%, 
        transparent 30%, 
        rgba(0,0,0,0.1) 100%);
    border-radius: 12px;
}

.vertical-bar-fill::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 30%;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.6), 
        rgba(255,255,255,0.2), 
        transparent);
    border-radius: 10px;
    opacity: 0.8;
}

@keyframes riseToPosition {
    0% { 
        transform: scaleY(0);
        opacity: 0.7;
    }
    100% { 
        transform: scaleY(1);
        opacity: 1;
    }
}

.vertical-bar-container:hover .vertical-bar-fill {
    filter: brightness(1.15);
    transform: scaleY(1) scaleX(1.05);
}

.vertical-bar-info {
    text-align: center;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.125rem;
    padding: var(--space-sm) 0;
}

.vertical-subject-name {
    font-weight: 600;
    color: var(--oxford-blue);
    font-size: 0.9rem;
    margin-bottom: 0.125rem;
    line-height: 1.3;
    word-break: break-word;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.vertical-subject-hours {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Responsive design for vertical chart */
@media (max-width: 768px) {
    .vertical-chart {
        min-width: auto;
        width: 90%;
        max-width: 400px;
        height: 280px;
        gap: var(--space-md);
        padding: var(--space-md) var(--space-lg) var(--space-lg);
        border-radius: 30px;
    }
    
    .vertical-bar-track {
        width: 30px;
        height: 150px;
        border-radius: 15px;
    }
    
    .vertical-bar-fill {
        border-radius: 13px;
    }
    
    .vertical-bar-container {
        min-width: 60px;
    }
    
    .vertical-subject-name {
        font-size: 0.8rem;
    }
    
    .visual-summary {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .vertical-chart {
        height: 250px;
        gap: var(--space-sm);
        padding: var(--space-lg);
        border-radius: 25px;
    }
    
    .vertical-bar-track {
        width: 25px;
        height: 130px;
        border-radius: 12px;
    }
    
    .vertical-bar-fill {
        border-radius: 10px;
    }
    
    .vertical-bar-container {
        min-width: 55px;
    }
    
    .vertical-subject-name {
        font-size: 0.75rem;
    }
    
    .vertical-subject-hours {
        font-size: 0.7rem;
    }
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.week-stat h3:contains("Loading") {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Print Styles */
@media print {
    * {
        box-shadow: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .site-header,
    .site-footer,
    .main-nav {
        display: none;
    }
}

/* ===================================
   ACHIEVEMENT TIMELINE STYLES
   ================================== */

.achievement-timeline {
    margin: var(--space-xl) 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-lg) 0;
}

/* Main timeline line - centered */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--burgundy), var(--deep-forest));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Timeline dot - centered */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    width: 24px;
    height: 24px;
    background: var(--parchment);
    border: 4px solid var(--burgundy);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Alternating left and right positioning */
.timeline-item:nth-child(odd) {
    justify-content: flex-end;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

/* Timeline content container */
.timeline-content-wrapper {
    width: 45%;
    position: relative;
}

/* Timeline date */
.timeline-date {
    position: absolute;
    top: -8px;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--burgundy);
    font-weight: 600;
    background: var(--aged-ivory);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 3;
}

/* Date positioning for alternating sides */
.timeline-item:nth-child(odd) .timeline-date {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -10px;
}

/* Timeline content */
.timeline-content {
    background: var(--parchment);
    padding: var(--space-md);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-top: var(--space-sm);
}

/* Border styling for alternating sides */
.timeline-item:nth-child(odd) .timeline-content {
    border-right: 4px solid var(--copper);
    margin-right: var(--space-md);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: 4px solid var(--copper);
    margin-left: var(--space-md);
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

/* Category tags */
.timeline-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    margin-bottom: var(--space-xs);
}

.timeline-category.academia {
    background: var(--deep-forest);
    color: var(--text-light);
}

.timeline-category.commitments {
    background: var(--burgundy);
    color: var(--text-light);
}

/* Mobile fixes for projects page */
@media (max-width: 768px) {
    /* Hide all tech icons and organizational logos on mobile to prevent covering content */
    img[src*="devicon"] {
        display: none !important;
    }
    
    /* Hide Excel, PowerBI, and other tech icons */
    img[alt="Excel"], 
    img[alt="Power BI"],
    img[alt="PowerBI"],
    img[alt="R"],
    img[alt="Python"] {
        display: none !important;
    }
    
    /* Hide UBC, Mensa, PAW, and other organizational logos */
    img[src*="ubc-"],
    img[src*="mensa-"],
    img[src*="paw-"],
    img[src*="cursor.jpg"] {
        display: none !important;
    }
    
    /* Hide tech icon containers but keep tape visible */
    div[style*="position: absolute; top: 24px; right: 24px"][style*="z-index: 15"] {
        display: none !important;
    }
    
    /* Show tape in top-right corner on mobile */
    div[style*="position: absolute; top: -8px; right: -8px"][style*="z-index: 10"] {
        display: block !important;
    }
    
    /* Ensure full width on mobile */
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        margin: 0;
    }
    
    /* Header mobile fixes */
    .site-header {
        width: 100%;
        padding: var(--space-xl) 0 var(--space-lg);
        margin-bottom: var(--space-xl);
    }
    
    .header-content {
        width: 100%;
        padding: 0 var(--space-lg);
        margin-bottom: var(--space-lg);
    }
    
    /* Navigation mobile fixes */
    .main-nav {
        width: 100%;
        overflow: visible;
    }
    
    .main-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 var(--space-lg);
        gap: var(--space-sm);
    }
    
    .main-nav li {
        white-space: nowrap;
        margin: 0.25rem 0.5rem;
    }
    
    .main-nav a {
        font-size: 0.9rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    /* Footer mobile fixes */
    .site-footer {
        width: 100%;
        margin: 2rem 0 0 0;
        padding: 2rem 1rem;
    }
    
    /* Content area mobile fixes */
    .main-content {
        width: 100%;
        padding: 1rem 0;
    }
    
    /* Project cards mobile adjustments */
    .update-entry {
        margin-bottom: 2rem;
    }
    
    .update-content {
        margin-left: 0 !important;
        width: 100%;
        padding: 1.5rem !important;
    }
    
    /* Video container mobile */
    .video-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .video-container img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
    
    /* Image galleries mobile */
    .update-content div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .update-content img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Ensure all icons are hidden on very small screens */
    div[style*="position: absolute"][style*="top:"][style*="right:"] {
        display: none !important;
    }
    
    /* Hide any remaining icon images */
    img[style*="width: 24px"],
    img[style*="height: 24px"] {
        display: none !important;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .site-header {
        padding: var(--space-lg) 0;
    }
    
    .header-content {
        padding: 0 var(--space-md);
    }
    
    .main-nav ul {
        padding: 0 var(--space-md);
    }
    
    .site-footer {
        padding: 1.5rem 0.5rem;
    }
    
    .update-content {
        padding: 1rem !important;
    }
}

/* Dashboard button styling */
.dashboard-link {
    background: var(--oxford-blue) !important;
    color: var(--text-light) !important;
    border-color: var(--oxford-blue) !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    padding: 0.5rem 1rem !important;
    text-decoration: none !important;
}

.dashboard-link:hover {
    background: var(--midnight-navy) !important;
    color: var(--text-light) !important;
    border-color: var(--midnight-navy) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
        transform: none;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 60px;
    }
    
    .timeline-item::before {
        left: 18px;
        transform: none;
    }
    
    .timeline-content-wrapper {
        width: 100%;
    }
    
    .timeline-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-left: 4px solid var(--copper) !important;
        border-right: none !important;
    }
    
    .timeline-date {
        position: static;
        margin-bottom: var(--space-xs);
        font-size: 0.85rem;
    }
}