/* ========== Apple Liquid Glass Design System ========== */
:root {
    /* Glass Variables - More Transparent */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-bg-hover: rgba(255, 255, 255, 0.65);
    --glass-bg-strong: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-border-subtle: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.02);
    --glass-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.03);
    --glass-blur: blur(40px) saturate(200%);
    --glass-blur-light: blur(24px) saturate(180%);
    
    /* Colors */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --text-primary: #1e1e2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8b8b9a;
    
    /* Spacing */
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #dbeafe 0%, #fce7f3 35%, #e9d5ff 65%, #fef3c7 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Decorative Background Blobs */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.2) 0%, transparent 35%),
        radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 70% 75%, rgba(236, 72, 153, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 25% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    z-index: -1;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

/* ========== Glass Card Base ========== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-lg);
    transform: translateY(-4px);
}

/* ========== Navigation ========== */
.navbar {
    position: sticky;
    top: 16px;
    margin: 16px 24px;
    padding: 12px 24px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-title {
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.btn-lang {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 100px;
    padding: 8px 20px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-lang:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* ========== Hero Section ========== */
.hero {
    padding: 80px 24px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.title-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    background: linear-gradient(135deg, #1e1e2e, #4a4a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: 24px 40px;
    min-width: 140px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glass-shadow-lg);
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

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

/* ========== Sections ========== */
.section {
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ========== Timeline - Modern Design ========== */
.timeline-section {
    background: transparent;
}

.timeline-container {
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date-badge {
    flex: 1;
    text-align: right;
    padding-right: 40px;
}

.timeline-item:nth-child(odd) .timeline-date-badge {
    text-align: left;
    padding-right: 0;
    padding-left: 40px;
}

.timeline-date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--glass-shadow);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.1); }
}

.timeline-event-badge {
    flex: 1;
    padding-left: 40px;
}

.timeline-item:nth-child(odd) .timeline-event-badge {
    padding-left: 0;
    padding-right: 40px;
}

.timeline-event-text {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.timeline-event-text:hover {
    background: rgba(255, 255, 255, 0.55);
    transform: translateX(4px);
}

.timeline-event-text a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.timeline-event-text a:hover {
    border-bottom-color: var(--accent-primary);
}

.timeline-source {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========== Project Cards - Glass Style ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glass-shadow-lg);
}

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

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

.project-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.project-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-name a:hover {
    color: var(--accent-primary);
}

.project-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 100px;
    font-family: 'SF Mono', Monaco, monospace;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

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

.tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 6px;
}

.project-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========== Category Tabs ========== */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.tab-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-color: rgba(99, 102, 241, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* ========== Papers Grid - Beautiful Cards ========== */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.paper-card {
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.paper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.8;
}

.paper-card:hover {
    transform: translateY(-6px) translateX(4px);
    box-shadow: var(--glass-shadow-lg);
}

.paper-rating {
    margin-bottom: 12px;
    letter-spacing: 2px;
    font-size: 0.875rem;
}

.paper-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-primary);
}

.paper-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.paper-title a:hover {
    color: var(--accent-primary);
}

.paper-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 8px;
    display: inline-block;
}

/* ========== Domain Cards ========== */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.domain-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
}

.domain-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glass-shadow-lg);
}

.domain-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.domain-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.domain-count {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ========== News Section ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--glass-shadow);
}

.news-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.systems-list, .events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

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

.system-item:hover {
    background: rgba(99, 102, 241, 0.04);
    margin: 0 -14px;
    padding: 14px;
    border-radius: var(--radius-sm);
}

.system-name {
    font-weight: 500;
}

.system-company {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 2px;
}

.status-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.status-badge.open {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-badge.closed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.event-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.875rem;
}

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

.event-date {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
    white-space: nowrap;
    background: rgba(99, 102, 241, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    height: fit-content;
}

.event-text {
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer strong {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .navbar {
        margin: 12px 16px;
        padding: 10px 16px;
    }
    
    .hero { padding: 60px 20px; }
    .hero-stats { gap: 12px; }
    .stat-card { padding: 20px 28px; min-width: 110px; }
    .stat-num { font-size: 2rem; }
    
    .section { padding: 32px 16px; }
    .projects-grid { grid-template-columns: 1fr; }
    .papers-grid { grid-template-columns: 1fr; }
    
    .timeline-line { left: 20px; }
    .timeline-item, .timeline-item:nth-child(odd) { flex-direction: column; align-items: flex-start; padding-left: 48px; }
    .timeline-date-badge, .timeline-item:nth-child(odd) .timeline-date-badge { text-align: left; padding: 0; margin-bottom: 8px; }
    .timeline-event-badge, .timeline-item:nth-child(odd) .timeline-event-badge { padding: 0; }
    .timeline-dot { position: absolute; left: 12px; }
}

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

.project-card, .paper-card, .domain-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

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