/* ========================================
   Personal Website - qzq.at Inspired Style
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

:root {
    /* 柔和配色系统 */
    --bg-primary: #fcfcfd;
    --bg-card: #ffffff;
    --text-primary: #222222;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --accent-secondary: #3b82f6;
    --border: #e5e7eb;
    --border-light: #f0f0f0;
    
    /* 阴影系统 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 18px 48px rgba(0, 0, 0, 0.12);
    
    /* 间距系统 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* 圆角系统 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --nav-height: 64px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", "Roboto", "Ubuntu",
        "Cantarell", "Noto Sans", sans-serif;
    background-image: radial-gradient(circle farthest-corner at 100% 50%, #d1d3d6, #fcfcfd);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Navigation - Glassmorphism Style
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(252, 252, 253, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    z-index: 1000;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* ========================================
   Container
   ======================================== */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 48px) 24px 80px;
}

/* ========================================
   Hero Section - Orbit Animation
   ======================================== */

.hero {
    position: relative;
    text-align: center;
    padding: 80px 0 120px;
    min-height: 500px;
}

/* Orbit Container - Larger rings */
.orbit-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
}

/* Center Card */
.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    padding: 32px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 300px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.center-circle:hover {
    transform: translate(-50%, -50%) scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.center-circle h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.center-circle p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Two Orbit Rings - Larger gap for better visibility */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1.5px dashed var(--border);
}

/* Inner Ring - Warm tone */
.orbit-ring-1 {
    width: 320px;
    height: 320px;
    margin: -160px 0 0 -160px;
    border-color: rgba(245, 158, 11, 0.4);
}

/* Outer Ring - Cool tone */
.orbit-ring-2 {
    width: 420px;
    height: 420px;
    margin: -210px 0 0 -210px;
    border-color: rgba(59, 130, 246, 0.3);
}

/* Rotating Image Card */
.orbit-image-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-lg);
    animation: orbitImage 12s linear infinite;
    z-index: 15;
}

.orbit-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Orbit at midpoint between rings: (160px + 210px) / 2 = 185px */
@keyframes orbitImage {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(185px) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg) translateX(185px) rotate(-360deg);
    }
}

/* ========================================
   Animations
   ======================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   Section Styles
   ======================================== */

.section {
    margin-bottom: var(--space-2xl);
    scroll-margin-top: calc(var(--nav-height) + 24px);
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1.5px solid var(--border);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

/* ========================================
   About Section - Two Column Layout
   ======================================== */

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.about-card {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.about-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-light);
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
}

/* Basic Info Card */
.about-card-basic {
    text-align: center;
}

.about-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
}

.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-info {
    display: grid;
    gap: var(--space-sm);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border-light);
}

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

.info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.info-value.highlight {
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

/* Advantages Card */
.advantage-list {
    display: grid;
    gap: var(--space-md);
}

.advantage-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.advantage-item:hover {
    background: var(--border-light);
}

.advantage-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.advantage-content strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.advantage-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ========================================
   Experience Section - Timeline Layout
   ======================================== */

.timeline {
    position: relative;
    padding-left: 140px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -28px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-date {
    position: absolute;
    left: -140px;
    top: 0;
    width: 110px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: ui-monospace, monospace;
}

.timeline-content {
    position: relative;
}

.exp-card {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.exp-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.exp-role {
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
    display: inline-block;
}

.exp-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.exp-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.exp-highlights span {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--border-light);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* ========================================
   Projects Section - Grid Cards
   ======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(16px);
    position: relative;
    overflow: hidden;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 158, 11, 0.3);
}

.project-card-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card) 0%, #fffbeb 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.project-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.project-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s;
}

.project-card:hover .project-title {
    color: var(--accent);
}

.project-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--border-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.project-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.project-tag {
    font-size: 0.7rem;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all 0.2s;
}

.project-tag:hover {
    background: var(--accent);
    color: white;
}

/* ========================================
   Skills Section - Multiple Layouts (qzq.at style)
   ======================================== */

.skills-radar-section,
.skills-progress-section,
.skills-cards-section,
.skills-tags-section {
    margin-bottom: var(--space-lg);
}

.skill-card {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.skill-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(245, 158, 11, 0.2);
}

.skill-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
}

/* ========================================
   Radar Chart Section
   ======================================== */

.radar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.radar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.radar-chart {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.radar-label {
    font-size: 12px;
    fill: var(--text-secondary);
}

/* ========================================
   Progress Bars Section
   ======================================== */

.progress-list {
    display: grid;
    gap: var(--space-md);
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

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

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

.progress-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    font-family: ui-monospace, monospace;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #fb923c);
    border-radius: 4px;
    width: 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Skill Cards Grid Section
   ======================================== */

.skills-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.skill-category-card {
    background: var(--border-light);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
}

.skill-category-card:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
}

.skill-category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    transition: transform 0.3s ease;
}

.skill-category-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.skill-category-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ========================================
   Tags Cloud Section
   ======================================== */

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.tag {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--border-light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    cursor: default;
}

.tag:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ========================================
   Education Section - Two Column Layout
   ======================================== */

.edu-split {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.edu-main, .edu-sidebar {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.edu-card {
    height: 100%;
    display: flex;
    gap: var(--space-md);
}

.edu-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.edu-content {
    flex: 1;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.edu-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.edu-date {
    font-size: 0.85rem;
    color: var(--accent);
}

.edu-major {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
}

.edu-rank {
    font-size: 0.85rem;
    color: var(--accent);
    background: var(--accent-light);
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.edu-courses {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.edu-thesis {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-light);
}

/* Awards in sidebar */
.edu-card-awards h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.award-list {
    display: grid;
    gap: var(--space-sm);
}

.award-item-simple {
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.award-item-simple:hover {
    background: var(--border-light);
}

.award-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Organization Cards */
.org-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.org-card {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.org-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.org-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xs);
}

.org-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.org-role {
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.org-period {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.org-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-xl) 0 var(--space-md);
}

/* ========================================
   Certificates Section - Horizontal Scroll
   ======================================== */

.cert-scroll {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.cert-scroll::-webkit-scrollbar {
    height: 6px;
}

.cert-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cert-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.cert-card {
    flex-shrink: 0;
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 200px;
    transition: all 0.3s ease;
}

.cert-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.cert-icon {
    font-size: 2rem;
}

.cert-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cert-info .cert-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cert-info .cert-level {
    font-size: 0.8rem;
    color: var(--accent);
}

/* ========================================
   Contact Section
   ======================================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item:hover {
    box-shadow: var(--shadow);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 2rem;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    text-align: center;
    padding-top: var(--space-2xl);
    margin-top: var(--space-xl);
    border-top: 1.5px solid var(--border);
}

.footer p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-dot {
    color: var(--text-muted);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(252, 252, 253, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .container {
        padding: calc(var(--nav-height) + 32px) 16px 60px;
    }

    .hero {
        padding: 40px 0 80px;
        min-height: auto;
    }

    /* Hide orbit on mobile */
    .orbit-container {
        display: none;
    }

    .section {
        margin-bottom: var(--space-xl);
    }

    .section-title {
        font-size: 1.3rem;
    }

    /* About - Stack columns */
    .about-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline - Remove padding */
    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        padding-left: 0;
    }

    .timeline-marker {
        display: none;
    }

    .timeline-date {
        position: static;
        width: auto;
        text-align: left;
        margin-bottom: var(--space-xs);
    }

    /* Projects - Single column */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card-featured {
        grid-column: span 1;
    }

    /* Skills - Stack all layouts */
    .skills-split {
        grid-template-columns: 1fr;
    }

    .radar-grid {
        grid-template-columns: 1fr;
    }

    .skills-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-cards-section {
        margin-bottom: var(--space-md);
    }

    /* Education - Stack columns */
    .edu-split {
        grid-template-columns: 1fr;
    }

    .org-grid {
        grid-template-columns: 1fr;
    }

    /* Certificates - Keep horizontal scroll */
    .cert-scroll {
        padding-bottom: var(--space-sm);
    }

    /* Contact - Single column */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Animation Delays
   ======================================== */

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ========================================
   Scroll Animation
   ======================================== */

.section {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-category,
.project-card,
.org-card,
.cert-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.skill-category.visible,
.project-card.visible,
.org-card.visible,
.cert-card.visible {
    opacity: 1;
    transform: translateY(0);
}
