/*
 * LUMON AESTHETIC — DR. AHMAD FAISAL
 * "The work is mysterious and important."
 *
 * Palette derived from VSG Labs namecard design language:
 * deep green-blacks, radial gradient glows, accent green #0bbd7a
 *
 * Fonts: Space Grotesk (headings) · Inter (body) · JetBrains Mono (data)
 */

/* ==============================
   1. DESIGN TOKENS
   ============================== */
:root {
  --ink: #0b1a16;
  --ink-mid: #122720;
  --ink-glow: #0d3028;
  --parchment: #f0f5f2;
  --surface: #f9fbf9;
  --surface-pure: #ffffff;
  --accent: #0bbd7a;
  --accent-dark: #0a6b4b;
  --accent-glow: rgba(11, 189, 122, 0.10);
  --text: #0b1a16;
  --text-muted: #3c5a4e;
  --text-faint: #6b8a7e;
  --rule: #d7e3dc;
  --rule-light: #e2ece7;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.2s ease;
}

/* ==============================
   2. RESET & BASE
   ============================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(11, 189, 122, 0.2);
}

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

img {
  max-width: 100%;
  display: block;
}

/* ==============================
   3. TYPOGRAPHY
   ============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

/* ==============================
   4. BUTTONS
   ============================== */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.primary-btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.secondary-btn {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent-dark);
}

.secondary-btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* ==============================
   5. SECTION LAYOUT
   ============================== */
.container {
  width: 90%;
  max-width: 86rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 10rem 0;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-dark);
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-label::after {
  content: '';
  display: block;
  width: 3.2rem;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 1px;
  margin: 1.2rem auto 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 5rem;
}

.section-title::after {
  display: none;
}

/* ==============================
   6. HEADER & NAVIGATION
   ============================== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: var(--ink);
  border-bottom: 1px solid rgba(11, 189, 122, 0.08);
  transition: padding var(--transition);
  padding: 0.3rem 0;
}

header.scrolled {
  padding: 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5.6rem;
  transition: height var(--transition);
}

.scrolled nav {
  height: 5rem;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo a {
  display: flex;
  align-items: center;
  height: 100%;
  color: #fff;
}

.logo img {
  max-height: 3.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  transition: max-height var(--transition);
  object-fit: contain;
}

.scrolled .logo img {
  max-height: 3rem;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin-left: 0.3rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.6rem 1.2rem;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: rgba(255, 255, 255, 0.9);
}

.nav-links a::after {
  display: none;
}

.mobile-menu-logo {
  display: none;
}

.close-mobile-menu {
  display: none;
}

.burger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 3.6rem;
  height: 3.6rem;
  position: relative;
  z-index: 1001;
}

.burger div {
  width: 1.8rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  margin: 5px auto;
  transition: all 0.3s ease;
}

body.no-scroll {
  overflow: hidden;
}

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

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==============================
   7. HERO
   ============================== */
.hero {
  background:
    radial-gradient(ellipse 800px 600px at 15% 80%, rgba(11, 189, 122, 0.07), transparent 55%),
    radial-gradient(ellipse 600px 500px at 85% 15%, rgba(10, 107, 75, 0.05), transparent 55%),
    linear-gradient(175deg, var(--ink), var(--ink-mid) 50%, var(--ink-glow));
  padding: 14rem 0 10rem;
  position: relative;
  overflow: hidden;
}

/* Grid overlay — green-tinted */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 189, 122, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 189, 122, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
}

.hero-text {
  flex: 1;
}

.hero-dept {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 4.8rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 0;
}

.hero-text h1::after {
  content: '';
  display: block;
  width: 4rem;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 1px;
  margin-top: 2rem;
}

.hero-text h2 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-text p {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  max-width: 48rem;
  line-height: 1.85;
}

.hero-text p a {
  color: var(--accent);
}

.hero-text p a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.45);
  transition: border-color var(--transition), color var(--transition);
}

.hero-badge:hover {
  border-color: var(--accent);
  color: rgba(255, 255, 255, 0.85);
}

.hero-badge i {
  color: var(--accent);
  font-size: 1.1rem;
}

.hero-image {
  flex-shrink: 0;
}

.hero-image img {
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--rule);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.hero-buttons {
  display: none;
}

/* ==============================
   8. ABOUT
   ============================== */
.about {
  background:
    radial-gradient(ellipse 700px 400px at 85% 0%, rgba(11, 189, 122, 0.04), transparent 60%),
    var(--parchment);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.about-text {
  max-width: 68rem;
}

.about-text p {
  margin-bottom: 2rem;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-muted);
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--rule);
}

.stat-box {
  padding: 3rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--rule-light);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 500;
  color: var(--accent-dark);
  line-height: 1.1;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.stat-text {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.0rem;
  font-weight: 400;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* ==============================
   9. EXPERIENCE
   ============================== */
.experience {
  background: var(--surface-pure);
}

.experience-list {
  max-width: 68rem;
  margin: 0 auto;
}

.experience-entry {
  display: flex;
  gap: 3.5rem;
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--rule-light);
}

.experience-entry:first-child {
  padding-top: 0;
}

.experience-entry:last-child {
  border-bottom: none;
}

.experience-date {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  min-width: 16rem;
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.experience-detail h3 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.experience-detail p {
  font-size: 1.45rem;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

/* Legacy timeline selectors */
.timeline::after,
.timeline-dot {
  display: none;
}

/* ==============================
   10. PORTFOLIO
   ============================== */
.research {
  background:
    radial-gradient(ellipse 600px 400px at 10% 90%, rgba(11, 189, 122, 0.03), transparent 55%),
    var(--parchment);
}

.research .section-subtitle {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin-top: -3rem;
  margin-bottom: 5rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.research-card {
  background: var(--surface-pure);
  border: 1px solid var(--rule);
  padding: 2.8rem;
  padding-left: calc(2.8rem + 3px);
  border-radius: 0;
  transition: border-color var(--transition);
  position: relative;
}

/* Gradient left accent stripe */
.research-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

.research-card:hover {
  border-color: var(--accent);
}

.research-icon {
  display: none;
}

.research-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.8rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.research-card p {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.research-card p strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ==============================
   11. PUBLICATIONS
   ============================== */
.publications {
  background: var(--surface-pure);
}

.publications-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 4rem;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.6rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--text-faint);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: var(--accent);
  color: #fff;
}

.publications-list {
  max-width: 68rem;
  margin: 0 auto;
}

.publication-item {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--rule-light);
}

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

.publication-item h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.publication-journal {
  font-family: var(--font-body);
  font-size: 1.35rem;
  color: var(--text-faint);
  font-style: italic;
}

.view-more {
  text-align: center;
  margin-top: 4rem;
}

/* ==============================
   12. COLLABORATIONS
   ============================== */
.collaborations {
  background:
    radial-gradient(ellipse 500px 350px at 90% 80%, rgba(11, 189, 122, 0.03), transparent 55%),
    var(--parchment);
}

.collaborations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.collaboration-card {
  background: var(--surface-pure);
  border: 1px solid var(--rule);
  padding: 2.5rem;
  border-radius: 0;
  transition: border-color var(--transition);
}

.collaboration-card:hover {
  border-color: var(--accent);
}

.collab-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.collaboration-card h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.country-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-faint);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.country-flag i {
  display: none;
}

.country-flag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.japan-flag::before { background: #BC002D; }
.australia-flag::before { background: #002B7F; }
.indonesia-flag::before { background: #CE1126; }
.malaysia-flag::before { background: #010066; }

.collaboration-card p {
  font-size: 1.35rem;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ==============================
   13. CONTACT
   ============================== */
.contact {
  background: var(--surface-pure);
}

.contact-content {
  display: flex;
  gap: 6rem;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-icon {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: var(--accent);
  font-size: 1.6rem;
  padding-top: 0.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

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

.contact-text p a {
  color: var(--accent-dark);
}

.contact-text p a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.35rem;
  color: var(--text-faint);
}

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

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.8rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--text);
  background: var(--surface-pure);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form .btn {
  width: 100%;
  padding: 1.4rem;
}

/* ==============================
   14. FOOTER
   ============================== */
footer {
  background:
    radial-gradient(ellipse 600px 400px at 50% 90%, rgba(11, 189, 122, 0.06), transparent 55%),
    var(--ink);
  color: rgba(255, 255, 255, 0.5);
  padding: 6rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Footer grid overlay */
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 189, 122, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 189, 122, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

footer > .container {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  font-family: var(--font-mono);
  font-size: 1.0rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
}

.footer-links {
  display: none;
}

.footer-social {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.25);
  font-size: 1.6rem;
  transition: color var(--transition);
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
}

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

.footer-projects {
  display: flex;
  gap: 1px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  border: 1px solid rgba(11, 189, 122, 0.12);
  overflow: hidden;
}

.footer-projects a {
  font-family: var(--font-mono);
  font-size: 1.0rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  padding: 1.2rem 2.4rem;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(11, 189, 122, 0.12);
  transition: color 0.25s, background 0.25s;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-projects a:last-child {
  border-right: none;
}

.footer-projects a i {
  font-size: 1.1rem;
  color: rgba(11, 189, 122, 0.35);
  transition: color 0.25s;
}

.footer-projects a:hover {
  color: var(--accent);
  background: rgba(11, 189, 122, 0.06);
}

.footer-projects a:hover i {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(11, 189, 122, 0.08);
  font-family: var(--font-mono);
  font-size: 1.0rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.18);
}

/* ==============================
   15. ANIMATIONS & UI
   ============================== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 3.6rem;
  height: 3.6rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(11, 189, 122, 0.15);
  border-radius: 0;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-dark);
  border-color: var(--accent);
  color: #fff;
}

/* ==============================
   16. RESPONSIVE
   ============================== */

/* ---- 1024px ---- */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-dept {
    margin-bottom: 1.5rem;
  }

  .hero-text h1 {
    font-size: 3.8rem;
  }

  .hero-text h1::after {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text p {
    max-width: none;
  }

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

  .hero-image img {
    width: 20rem;
    height: 20rem;
  }

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

  .experience-entry {
    flex-direction: column;
    gap: 0.5rem;
  }

  .experience-date {
    min-width: 0;
  }

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

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

/* ---- 768px ---- */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .section-padding {
    padding: 7rem 0;
  }

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

  .burger {
    display: block;
  }

  .nav-links {
    position: fixed;
    right: 0;
    top: 0;
    background:
      radial-gradient(ellipse 300px 400px at 80% 90%, rgba(11, 189, 122, 0.06), transparent 55%),
      var(--ink);
    height: 100vh;
    width: 75%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 3rem 2.5rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    border-left: 1px solid rgba(11, 189, 122, 0.08);
    z-index: 1000;
  }

  .nav-active {
    transform: translateX(0%);
    overflow-y: auto;
  }

  .nav-links li {
    margin: 0.6rem 0;
    width: 100%;
    margin-left: 0;
  }

  .nav-links a {
    font-size: 1.3rem;
    display: block;
    padding: 0.8rem 0;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.12em;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: rgba(255, 255, 255, 0.9);
  }

  .mobile-menu-logo {
    display: block;
    width: 100%;
    margin-bottom: 2rem !important;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(11, 189, 122, 0.08);
    text-align: left;
  }

  .mobile-menu-logo a {
    display: inline-block;
    padding: 0 !important;
  }

  .mobile-menu-logo img {
    max-height: 3.5rem;
    filter: brightness(0) invert(1);
  }

  .close-mobile-menu {
    display: block;
    margin-top: 2rem !important;
    width: 100%;
    border-top: 1px solid rgba(11, 189, 122, 0.08);
    padding-top: 1.5rem;
  }

  .close-mobile-menu a {
    color: rgba(255, 255, 255, 0.22) !important;
    display: flex;
    align-items: center;
    font-size: 1.2rem !important;
    text-transform: none !important;
    letter-spacing: 0.05em !important;
  }

  .close-mobile-menu a i {
    margin-right: 0.6rem;
    font-size: 1.3rem;
  }

  .toggle .line1 {
    transform: rotate(-45deg) translate(-4px, 5px);
    width: 2rem;
  }

  .toggle .line2 {
    opacity: 0;
    transform: translateX(-1rem);
  }

  .toggle .line3 {
    transform: rotate(45deg) translate(-4px, -5px);
    width: 2rem;
  }

  .hero {
    padding: 12rem 0 7rem;
  }

  .hero-text h1 {
    font-size: 3.2rem;
  }

  .hero-text h2 {
    font-size: 1.1rem;
  }

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

  .contact-content {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    min-width: auto;
  }

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

/* ---- 480px ---- */
@media (max-width: 480px) {
  html {
    font-size: 50%;
  }

  .hero {
    padding: 11rem 0 6rem;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-dept {
    font-size: 0.95rem;
    letter-spacing: 0.15em;
  }

  .hero-image img {
    width: 16rem;
    height: 16rem;
  }

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

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

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

  .publications-filter {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 80%;
    text-align: center;
  }

  .nav-links {
    width: 100%;
  }
}
