/* ═══════════════════════════════════════════════════════════════════════════
   ACADEMIC PERSONAL WEBSITE — STYLESHEET
   Muhammad Aslam Fadhillah, S.Si., Gr.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables (Light Mode) ─── */
:root {
    --primary: #0F2D52;
    --primary-light: #1A4A7A;
    --secondary: #2E7D32;
    --secondary-light: #4CAF50;
    --accent: #D4AF37;
    --accent-light: #E5C54D;
    --bg: #FFFFFF;
    --bg-alt: #F7F8FA;
    --text: #1A1A2E;
    --text-muted: #5A6072;
    --text-light: #8A90A2;
    --border: #E2E5EA;
    --card-bg: #FFFFFF;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-border: rgba(0, 0, 0, 0.06);
    --hero-bg: linear-gradient(135deg, #0F2D52 0%, #1A4A7A 50%, #0F2D52 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

/* ─── Dark Mode ─── */
[data-theme="dark"] {
    --primary: #E5C54D;
    --primary-light: #D4AF37;
    --secondary: #4CAF50;
    --secondary-light: #66BB6A;
    --accent: #E5C54D;
    --bg: #0A0E17;
    --bg-alt: #111827;
    --text: #F0F0F5;
    --text-muted: #A0A5B5;
    --text-light: #6B7080;
    --border: #1E2535;
    --card-bg: #141B2D;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(10, 14, 23, 0.95);
    --nav-border: rgba(255, 255, 255, 0.06);
    --hero-bg: linear-gradient(135deg, #0A0E17 0%, #111827 50%, #0A0E17 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Scroll Progress Bar ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ─── Navigation ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

[data-theme="dark"] .nav-logo {
    color: var(--accent);
}

.logo-dot {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
    background: rgba(46, 125, 50, 0.08);
}

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

.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--secondary);
    transform: rotate(15deg);
}

[data-theme="light"] .dark-icon { display: none; }
[data-theme="dark"] .light-icon { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Hero Section ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-bg);
    overflow: hidden;
    padding-top: 70px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: var(--secondary);
}

.shape-1 { width: 400px; height: 400px; top: -100px; right: -100px; animation: float1 15s ease-in-out infinite; }
.shape-2 { width: 300px; height: 300px; bottom: -50px; left: -50px; animation: float2 18s ease-in-out infinite; }
.shape-3 { width: 200px; height: 200px; top: 50%; left: 30%; animation: float3 12s ease-in-out infinite; }
.shape-4 { width: 150px; height: 150px; top: 20%; right: 30%; animation: float1 20s ease-in-out infinite reverse; }
.shape-5 { width: 100px; height: 100px; bottom: 20%; right: 20%; animation: float2 14s ease-in-out infinite; }

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(40px, -20px) rotate(180deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-20px, 30px); }
    75% { transform: translate(20px, -20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    color: white;
}

.hero-greeting {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero-name {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    line-height: 1.1;
}

.hero-name .degree {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent);
}

.hero-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.typing-prefix {
    color: rgba(255, 255, 255, 0.7);
}

.typing-text {
    color: var(--accent);
    font-weight: 600;
    min-width: 200px;
}

.typing-cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.hero-right {
    display: flex;
    justify-content: center;
}

.hero-photo-wrapper {
    position: relative;
    animation: floatPhoto 6s ease-in-out infinite;
}

@keyframes floatPhoto {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-photo {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-decoration {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── Section Styles ─── */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.4rem;
    color: var(--text);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── About Section ─── */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-text strong {
    color: var(--text);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

[data-theme="dark"] .stat-number {
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-evolution {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--card-shadow);
}

.evolution-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 24px;
    text-align: center;
}

[data-theme="dark"] .evolution-title {
    color: var(--accent);
}

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

.evo-item {
    position: relative;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.evo-dot {
    position: absolute;
    left: -30px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--bg-alt);
}

.evo-item.current .evo-dot {
    background: var(--secondary);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.2);
}

.evo-item.future .evo-dot {
    background: var(--accent);
    border-style: dashed;
}

.evo-line {
    width: 2px;
    height: 100%;
    background: var(--border);
    position: absolute;
    left: -25px;
    top: 24px;
}

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

.evo-item.current .evo-label {
    color: var(--secondary);
    font-weight: 600;
}

.evo-item.future .evo-label {
    color: var(--accent);
    font-style: italic;
}

/* ─── Research Interests ─── */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.interest-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.interest-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--secondary);
}

.interest-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
}

.interest-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--secondary);
}

.interest-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.interest-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── Research Journey Timeline ─── */
.timeline-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 20px 0;
    position: relative;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.timeline-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 8px;
}

.timeline-year {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-block;
    background: var(--card-bg);
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

[data-theme="dark"] .timeline-year {
    color: var(--accent);
    border-color: var(--border);
}

.timeline-item.future .timeline-year {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.timeline-content h4 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─── Publications ─── */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.publication-item {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.pub-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    height: fit-content;
}

.pub-badge.scopus {
    background: rgba(46, 125, 50, 0.1);
    color: var(--secondary);
}

.pub-badge.sinta {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent);
}

.pub-content h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text);
}

.pub-journal {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.pub-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pub-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pub-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .pub-link {
    color: var(--accent);
}

.pub-link:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.academic-profiles {
    text-align: center;
}

.profiles-title {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.profiles-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text);
}

.profile-card:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.profile-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
}

/* ─── Projects ─── */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card-bg);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.project-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-status.completed {
    background: rgba(46, 125, 50, 0.1);
    color: var(--secondary);
}

.project-status.ongoing {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent);
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
    padding-right: 80px;
}

.project-year,
.project-inst {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tag {
    padding: 4px 12px;
    background: var(--bg-alt);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ─── Teaching ─── */
.teaching-concept {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.concept-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.concept-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: 16px;
    flex: 1;
    min-width: 160px;
    transition: all 0.3s ease;
}

.concept-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.concept-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 12px;
}

.concept-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--secondary);
}

.concept-item h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 6px;
}

.concept-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.concept-arrow {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 700;
}

.teaching-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.teach-detail {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

.teach-detail h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 12px;
}

.teach-detail p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ─── Skills ─── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    margin-bottom: 48px;
}

.skill-category h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.skill-percent {
    color: var(--secondary);
    font-weight: 600;
}

.skill-track {
    height: 8px;
    background: var(--bg-alt);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

.software-grid {
    text-align: center;
}

.software-title {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 20px;
}

.software-items {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.software-tag {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.software-tag:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}

/* ─── Achievements ─── */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.achievement-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.achievement-card h3 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 8px;
}

.achievement-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── Current Research ─── */
.current-research-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    border-left: 4px solid var(--secondary);
}

.research-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.research-title-area h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin: 8px 0;
    font-style: italic;
}

.research-title-en {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.research-flow {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.flow-step {
    text-align: center;
    min-width: 140px;
    flex: 1;
}

.flow-node {
    padding: 14px 16px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

[data-theme="dark"] .flow-node {
    background: var(--accent);
    color: var(--bg);
}

.flow-node.result {
    background: var(--secondary);
}

.flow-arrow {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 700;
    margin: 8px 0;
}

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

/* ─── Roadmap ─── */
.roadmap-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
    transform: translateX(-50%);
}

.roadmap-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.roadmap-item {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.roadmap-item.left {
    flex-direction: row;
}

.roadmap-item.right {
    flex-direction: row-reverse;
    text-align: right;
}

.roadmap-dot {
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    border: 4px solid var(--bg);
    box-shadow: 0 0 0 4px var(--secondary);
    flex-shrink: 0;
    z-index: 2;
}

.roadmap-content {
    flex: 1;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.roadmap-phase {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.roadmap-content h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 6px 0;
}

.roadmap-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Gallery ─── */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.gallery-filter {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card-bg);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.gallery-filter.active,
.gallery-filter:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.gallery-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.02);
}

/* ─── Contact ─── */
.contact-grid {
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--secondary);
}

.contact-item h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-item p,
.contact-item a {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--secondary);
}

.contact-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
}

.contact-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    transition: fill 0.3s ease;
}

.contact-link:hover svg {
    fill: white;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
}

/* ─── Footer ─── */
.footer {
    background: var(--primary);
    padding: 60px 0 40px;
    text-align: center;
}

[data-theme="dark"] .footer {
    background: #060A12;
}

.footer-quote {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.footer-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--nav-border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-photo {
        width: 250px;
        height: 250px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

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

    .roadmap-line {
        left: 20px;
    }

    .roadmap-item,
    .roadmap-item.right {
        flex-direction: row;
        text-align: left;
    }

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

    .teaching-details {
        grid-template-columns: 1fr;
    }

    .concept-flow {
        flex-direction: column;
    }

    .concept-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

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

    .hero-name {
        font-size: 2rem;
    }

    .hero-name .degree {
        font-size: 1.3rem;
    }

    .hero-typing {
        font-size: 1rem;
        justify-content: center;
    }

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

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

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

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

    .research-flow {
        flex-direction: column;
        align-items: center;
    }

    .flow-step {
        width: 100%;
        max-width: 250px;
    }

    .publication-item {
        flex-direction: column;
    }

    .profiles-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 1.7rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .container {
        padding: 0 16px;
    }

    .hero-photo {
        width: 200px;
        height: 200px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}
