/* Font Declarations */
/* Manrope will be loaded from Google Fonts */
/* Fallback to local Google Sans Mono for code */
@font-face {
    font-family: 'Google Sans Mono';
    src: url('font/GoogleSansMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Material 3 Color Tokens - Default Purple */
    --md-sys-color-primary: #6750A4;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #EADDFF;
    --md-sys-color-on-primary-container: #21005D;
    --md-sys-color-secondary: #625B71;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #E8DEF8;
    --md-sys-color-on-secondary-container: #1D192B;
    --md-sys-color-tertiary: #7D5260;
    --md-sys-color-on-tertiary: #FFFFFF;
    --md-sys-color-tertiary-container: #FFD8E4;
    --md-sys-color-on-tertiary-container: #31111D;
    --md-sys-color-error: #B3261E;
    --md-sys-color-on-error: #FFFFFF;
    --md-sys-color-error-container: #F9DEDC;
    --md-sys-color-on-error-container: #410E0B;
    --md-sys-color-background: #FFFBFE;
    --md-sys-color-on-background: #1C1B1F;
    --md-sys-color-surface: #FFFBFE;
    --md-sys-color-on-surface: #1C1B1F;
    --md-sys-color-surface-variant: #E7E0EC;
    --md-sys-color-on-surface-variant: #49454F;
    --md-sys-color-outline: #79747E;
    --md-sys-color-outline-variant: #CAC4D0;
    --md-sys-color-shadow: #000000;
    --md-sys-color-scrim: #000000;
    --md-sys-color-inverse-surface: #313033;
    --md-sys-color-inverse-on-surface: #F4EFF4;
    --md-sys-color-inverse-primary: #D0BCFF;
    --md-sys-color-surface-tint: #6750A4;
    --md-sys-color-surface-container-lowest: #FFFFFF;
    --md-sys-color-surface-container-low: #F7F2FA;
    --md-sys-color-surface-container: #F3EDF7;
    --md-sys-color-surface-container-high: #ECE6F0;
    --md-sys-color-surface-container-highest: #E6E0E9;
}

[data-theme="dark"] {
    /* Dark theme overrides - Dynamic based on Material You palette */
    --md-sys-color-background: #0F0D13;
    --md-sys-color-on-background: #E6E0E9;
    --md-sys-color-surface: #131318;
    --md-sys-color-on-surface: #E6E0E9;
    --md-sys-color-surface-variant: #49454F;
    --md-sys-color-on-surface-variant: #CAC4D0;
    --md-sys-color-outline: #938F99;
    --md-sys-color-outline-variant: #49454F;
    --md-sys-color-shadow: #000000;
    --md-sys-color-scrim: #000000;
    --md-sys-color-inverse-surface: #E6E0E9;
    --md-sys-color-inverse-on-surface: #313033;
    --md-sys-color-surface-tint: var(--md-sys-color-primary);
    --md-sys-color-surface-container-lowest: #0B0B0F;
    --md-sys-color-surface-container-low: #1D1B20;
    --md-sys-color-surface-container: #211F26;
    --md-sys-color-surface-container-high: #2B2930;
    --md-sys-color-surface-container-highest: #36343B;
}

/* Dark theme dynamic colors will be set by JavaScript */
[data-theme="dark"] {
    --md-sys-color-error: #F2B8B5;
    --md-sys-color-on-error: #601410;
    --md-sys-color-error-container: #8C1D18;
    --md-sys-color-on-error-container: #F9DEDC;
}

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

/* Remove default browser outline and focus styles */
*:focus {
    outline: none;
}

/* Custom focus styles for better accessibility */
button:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
.fab:focus-visible,
.fab-settings:focus-visible,
.theme-toggle:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for content elements */
p, h1, h2, h3, h4, h5, h6, span, div[class*="body"], div[class*="headline"], div[class*="title"], input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    line-height: 1.6;
    transition: background-color 0.2s ease, color 0.2s ease;
    overflow-x: hidden;
}

/* Material 3 Typography with Inter */
.display-large { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(40px, 8vw, 64px); line-height: 1.12; font-weight: 300; letter-spacing: -0.5px; }
.display-medium { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(32px, 6vw, 48px); line-height: 1.16; font-weight: 300; letter-spacing: -0.25px; }
.display-small { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(28px, 5vw, 40px); line-height: 1.22; font-weight: 400; letter-spacing: -0.1px; }
.headline-large { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(24px, 4vw, 36px); line-height: 1.25; font-weight: 500; letter-spacing: -0.1px; }
.headline-medium { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(20px, 3.5vw, 32px); line-height: 1.29; font-weight: 500; }
.headline-small { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(18px, 3vw, 28px); line-height: 1.33; font-weight: 500; }
.title-large { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(16px, 2.5vw, 24px); line-height: 1.27; font-weight: 600; letter-spacing: 0.05px; }
.title-medium { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(14px, 2vw, 18px); line-height: 1.4; font-weight: 600; letter-spacing: 0.1px; }
.title-small { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(12px, 1.8vw, 16px); line-height: 1.43; font-weight: 600; letter-spacing: 0.1px; }
.body-large { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(15px, 2vw, 18px); line-height: 1.6; font-weight: 400; letter-spacing: 0.15px; }
.body-medium { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(13px, 1.8vw, 16px); line-height: 1.5; font-weight: 400; letter-spacing: 0.1px; }
.body-small { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(11px, 1.5vw, 14px); line-height: 1.4; font-weight: 400; letter-spacing: 0.25px; }
.label-large { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(13px, 1.8vw, 16px); line-height: 1.43; font-weight: 600; letter-spacing: 0.1px; }
.label-medium { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(11px, 1.5vw, 14px); line-height: 1.33; font-weight: 600; letter-spacing: 0.25px; }
.label-small { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(10px, 1.3vw, 12px); line-height: 1.45; font-weight: 600; letter-spacing: 0.4px; }

/* Bold styling for important elements using Inter */
.bold, strong, b,
.hero-title,
.project-title,
.timeline-school,
.timeline-period,
h1, h2, h3, h4, h5, h6,
.btn,
.chip,
.theme-toggle {
    font-family: 'Manrope', system-ui, sans-serif !important;
    font-weight: 600;
}

/* Code styling - Keep Google Sans Mono */
code, .code, pre {
    font-family: 'Google Sans Mono', 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: clamp(12px, 1.8vw, 14px);
    letter-spacing: 0;
    font-weight: 400;
}

/* Material Design Icons */
.material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* App Bar */
.top-app-bar {
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 max(16px, calc((100vw - 1200px) / 2));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.app-bar-logo {
    height: 40px;
    width: auto;
    margin-left: 16px;
    transition: all 0.3s ease;
}

.app-bar-logo:hover {
    transform: scale(1.05);
}

.app-bar-title {
    flex: 1;
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 500;
    margin-left: 16px;
}

/* Theme Toggle Button - Fixed */
.theme-toggle {
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.theme-toggle:hover {
    background: var(--md-sys-color-surface-container-high);
    border-color: var(--md-sys-color-primary);
}

/* Cards - Simplified Material 3 */
.card {
    background-color: var(--md-sys-color-surface-container-low);
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--md-sys-color-outline-variant);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.card-filled {
    background-color: var(--md-sys-color-surface-container-high);
}

/* Buttons - Classic Material 3 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 20px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.1px;
}

.btn-filled {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.btn-outlined {
    background-color: transparent;
    color: var(--md-sys-color-primary);
    border: 1px solid var(--md-sys-color-outline);
}

.btn-text {
    background-color: transparent;
    color: var(--md-sys-color-primary);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 0 0 2px var(--md-sys-color-primary);
}

.btn-filled:hover {
    background-color: var(--md-sys-color-primary);
    filter: brightness(1.1);
}

.btn-outlined:hover {
    background-color: rgba(103, 80, 164, 0.08);
}

.btn-text:hover {
    background-color: rgba(103, 80, 164, 0.08);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Container - Responsive Padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 max(24px, calc((100vw - 1200px) / 2 + 24px));
}

/* Hero Section - Redesigned */
.hero {
    text-align: center;
    padding: clamp(40px, 8vw, 80px) 0;
    background: var(--md-sys-color-surface-container);
    margin-bottom: 32px;
    border-radius: 0 0 24px 24px;
}

.hero-avatar {
    width: clamp(80px, 15vw, 120px);
    height: clamp(80px, 15vw, 120px);
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
    display: block;
    border: 3px solid var(--md-sys-color-primary);
    transition: all 0.2s ease;
}

.hero-avatar:hover {
    transform: scale(1.05);
}

.hero-title {
    color: var(--md-sys-color-on-surface);
    margin-bottom: 12px;
}

.hero-subtitle {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 24px;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 0 20px;
}

/* Project Grid - Fixed Layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.project-card {
    position: relative;
    overflow: hidden;
    height: auto;
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.project-content {
    padding: 20px;
}

.project-title {
    margin-bottom: 12px;
    color: var(--md-sys-color-on-surface);
    font-size: 18px;
    line-height: 1.3;
}

.project-description {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.skill-chip {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    padding: 20px 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--md-sys-color-outline-variant);
}

.skill-chip:hover {
    background-color: var(--md-sys-color-secondary);
    color: var(--md-sys-color-on-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Timeline - Modern Design */
.timeline {
    position: relative;
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--md-sys-color-surface-container-low);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    border-left: 4px solid var(--md-sys-color-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.timeline-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.timeline-year {
    color: var(--md-sys-color-primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.timeline-school {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--md-sys-color-on-surface);
}

.timeline-level {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 14px;
}

/* Navigation Chips */
.nav-chips {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 32px 0;
    flex-wrap: wrap;
    padding: 0 20px;
}

.chip {
    padding: 12px 20px;
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip.active {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-color: var(--md-sys-color-primary);
}

.chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.chip:focus {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 0 0 2px var(--md-sys-color-primary);
}

/* Page sections */
.page-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .top-app-bar {
        padding: 0 16px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .nav-chips {
        gap: 8px;
        padding: 0 16px;
    }
    
    .chip {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .social-buttons {
        gap: 8px;
        padding: 0 16px;
    }
    
    .fab {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    /* Weather widget responsive */
    .weather-widget {
        min-height: 60px;
        padding: 10px 14px 18px 14px;
    }
    
    .weather-info {
        font-size: 12px;
        max-width: 200px;
    }
    
    .weather-edit-btn {
        top: 6px;
        right: 6px;
        padding: 3px;
    }
    
    .top-info-bar {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .card {
        padding: 20px;
        margin: 12px 0;
    }
    
    .project-grid {
        gap: 12px;
    }
    
    .timeline-item {
        padding: 20px;
        margin: 16px 0;
    }
}

/* Loading states */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--md-sys-color-outline);
    border-radius: 50%;
    border-top-color: var(--md-sys-color-primary);
    animation: spin 1s ease-in-out infinite;
}

/* Loading for material symbols */
.material-symbols-rounded.loading {
    display: inline-block;
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    animation: spin 1s linear infinite;
    font-size: 18px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Additional animations for weather loading */
@keyframes progress-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Weather Widget - Enhanced for OpenWeatherMap */
.weather-widget {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 20px 16px; /* Extra bottom padding untuk indicators */
    background: var(--md-sys-color-surface-container);
    border-radius: 12px;
    border: 1px solid var(--md-sys-color-outline-variant);
    position: relative;
    min-height: 68px; /* Fixed height agar tidak jumping */
    transition: all 0.2s ease;
    align-items: center;
    text-align: center;
}

.weather-widget:hover {
    background: var(--md-sys-color-surface-container-high);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.weather-first-line {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.weather-city-temp {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    flex: 1;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    margin: 0 8px;
}

.weather-city-temp:hover {
    background-color: var(--md-sys-color-surface-container-high);
}

.weather-info {
    display: none; /* Tidak digunakan lagi */
}

/* Weather Description Container */
.weather-description-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    min-height: 24px;
    animation: fadeInUp 0.5s ease-out;
    width: 100%;
    transition: opacity 0.3s ease-in-out;
}

.weather-description {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.4;
    text-align: center;
    animation: slideText 0.5s ease-out;
    transition: opacity 0.3s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideText {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Transition for weather description icon */
#weather-desc-icon {
    transition: opacity 0.3s ease-in-out;
}

#weather-icon img {
    width: 2em;
    height: 2em;
    vertical-align: middle;
}

#weather-edit-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--md-sys-color-surface-container-high);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 8px;
    padding: 8px;
    margin-top: 4px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

#weather-city-input {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-on-surface);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

#weather-city-btn {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.weather-info {
    font-family: 'Google Sans Mono', monospace;
    font-size: 14px;
    color: var(--md-sys-color-on-surface);
}

/* Achievement Box - Fixed Height */
.achievement-box {
    background: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
    padding: 24px;
    border-radius: 16px;
    margin: 20px 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid var(--md-sys-color-outline-variant);
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.achievement-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.achievement-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--md-sys-color-outline);
    transition: all 0.3s ease;
}

.achievement-dot.active {
    background: var(--md-sys-color-primary);
    transform: scale(1.2);
}

/* Changelog */
.changelog-list {
    max-width: 600px;
    max-height: 300px;
    overflow-y: auto;
    margin: 0 auto;
    background: var(--md-sys-color-surface-container-low);
    border-radius: 16px;
    padding: 16px;
}

.changelog-item {
    padding: 12px 16px;
    margin: 8px 0;
    background: var(--md-sys-color-surface);
    border-radius: 8px;
    border-left: 3px solid var(--md-sys-color-primary);
    font-family: 'Google Sans Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
}

.changelog-item.highlight {
    border-left-color: var(--md-sys-color-error);
    background: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin: 40px 0;
}

.logo-meaning {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: var(--md-sys-color-surface-container-low);
    padding: 24px;
    border-radius: 16px;
    margin-top: 24px;
}

.logo-meaning ul {
    padding-left: 20px;
    line-height: 1.6;
}

.logo-meaning li {
    margin-bottom: 8px;
}

/* Typing Effect - Fixed Height */
.typing-container {
    margin: 32px 0;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(18px, 4vw, 32px);
    font-weight: 500;
    color: var(--md-sys-color-primary);
    border-right: 2px solid var(--md-sys-color-primary);
    padding-right: 8px;
    animation: blink 1s infinite;
    min-height: 1.2em;
    display: flex;
    align-items: center;
    line-height: 1.2;
    white-space: nowrap;
}

@keyframes blink {
    0%, 50% { border-color: var(--md-sys-color-primary); }
    51%, 100% { border-color: transparent; }
}

/* Top Info Bar */
.top-info-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 32px 0;
    padding: 0 16px;
}

.info-card {
    background: var(--md-sys-color-surface-container);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--md-sys-color-outline-variant);
    position: relative; /* For absolute positioned elements inside */
}

.time-display {
    font-family: 'Google Sans Mono', monospace;
    font-size: 18px;
    font-weight: 500;
    color: var(--md-sys-color-primary);
}

/* Dynamic Version Badge */
.version-badge {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

/* Demo/Others Section */
.demo-category {
    margin-bottom: 32px;
}

.demo-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.demo-link {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    border-radius: 16px;
    border: 1px solid var(--md-sys-color-outline-variant);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.demo-link:hover {
    background: var(--md-sys-color-surface-container-high);
    border-color: var(--md-sys-color-outline);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
}

.demo-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--md-sys-color-primary-container);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-icon .material-symbols-rounded {
    font-size: 24px;
    color: var(--md-sys-color-on-primary-container);
}

.demo-content {
    flex: 1;
}

.demo-content h4 {
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    line-height: 1.3;
}

.demo-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 400;
}

@media (max-width: 768px) {
    .demo-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .demo-link {
        padding: 16px;
        gap: 12px;
    }
    
    .demo-icon {
        width: 40px;
        height: 40px;
    }
    
    .demo-icon .material-symbols-rounded {
        font-size: 20px;
    }
    
    .demo-content h4 {
        font-size: 16px;
    }
    
    .demo-content p {
        font-size: 13px;
    }
}

/* Floating Settings Button */
.fab-settings {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    font-family: 'Material Symbols Rounded', sans-serif;
}

.fab-settings:hover {
    background: var(--md-sys-color-primary);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transform: scale(1.05);
}

.fab-settings .material-symbols-rounded {
    font-size: 24px;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    left: 100px;
    bottom: 24px;
    width: 320px;
    background: var(--md-sys-color-surface-container-highest);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 1001;
    transform: translateX(-100px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.settings-panel.show {
    transform: translateX(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-overlay.show {
    opacity: 1;
    visibility: visible;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.settings-header h3 {
    margin: 0;
    color: var(--md-sys-color-on-surface);
    font-family: 'Inter', sans-serif;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 20px;
    color: var(--md-sys-color-on-surface);
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: var(--md-sys-color-surface-container-high);
}

.settings-content {
    padding: 16px 24px 24px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
    margin-right: 16px;
}

.setting-info h4 {
    margin: 0 0 4px 0;
    color: var(--md-sys-color-on-surface);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.setting-toggle {
    background: none;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 100px;
    justify-content: center;
}

.setting-toggle:hover {
    background: var(--md-sys-color-surface-container-high);
}

.palette-lock-toggle.locked {
    background: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
    border-color: var(--md-sys-color-error);
}

/* Settings Panel Buttons */
.settings-panel .btn-outlined,
.settings-panel #refreshPaletteBtn {
    background: transparent;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--md-sys-color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 120px;
    text-decoration: none;
}

.settings-panel .btn-outlined:hover,
.settings-panel #refreshPaletteBtn:hover {
    background: var(--md-sys-color-primary-container);
    border-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary-container);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .fab-settings {
        left: 16px;
        bottom: 16px;
    }
    
    .settings-panel {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        transform: translateY(100%) scale(0.95);
    }
    
    .settings-panel.show {
        transform: translateY(0) scale(1);
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .setting-info {
        margin-right: 0;
    }
    
    .setting-toggle {
        align-self: flex-end;
    }
}

/* Footer */
.footer {
    background: var(--md-sys-color-surface-container);
    border-top: 1px solid var(--md-sys-color-outline-variant);
    margin-top: 64px;
    padding: 40px 0 32px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 max(24px, calc((100vw - 1200px) / 2 + 24px));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h3 {
    color: var(--md-sys-color-primary);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 500;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--md-sys-color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--md-sys-color-outline-variant);
    padding-top: 24px;
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--md-sys-color-surface-container-high);
    border: 1px solid var(--md-sys-color-outline);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-color: var(--md-sys-color-primary);
    transform: translateY(-2px);
}

/* Weather Edit Mode */
.weather-edit-active {
    background: var(--md-sys-color-primary-container);
    border-color: var(--md-sys-color-primary);
}

.weather-input {
    background: transparent;
    border: none;
    color: var(--md-sys-color-on-primary-container);
    font-family: 'Google Sans Mono', monospace;
    font-size: 14px;
    outline: none;
    width: 120px;
}

.weather-input::placeholder {
    color: var(--md-sys-color-on-primary-container);
    opacity: 0.7;
}

.weather-edit-btn {
    background: none;
    border: none;
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 20; /* Above indicators */
}

.weather-edit-btn:hover {
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface);
    transform: scale(1.1);
}

/* Achievement Dots - Clickable */
.achievement-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--md-sys-color-outline);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.achievement-dot:hover {
    background: var(--md-sys-color-secondary);
    transform: scale(1.1);
}

.achievement-dot.active {
    background: var(--md-sys-color-primary);
    transform: scale(1.3);
    border-color: var(--md-sys-color-primary-container);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
    }
}
