/* ============================================
   AKASH BORIGI - PORTFOLIO CSS
   Modern, Responsive, Dark/Light Mode
   ============================================ */

:root {
  /* Light Mode Colors */
  --bg-light: #ffffff;
  --bg-light-secondary: #f8f9fa;
  --bg-light-tertiary: #f0f2f5;
  --text-light: #1a1a1a;
  --text-light-secondary: #4a5568;
  --text-light-tertiary: #718096;
  --border-light: #e2e8f0;
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --accent-tertiary: #f093fb;
  --success: #48bb78;
  --warning: #ed8936;
  --danger: #f56565;

  /* Dark Mode Colors */
  --bg-dark: #0f172a;
  --bg-dark-secondary: #1e293b;
  --bg-dark-tertiary: #334155;
  --text-dark: #f1f5f9;
  --text-dark-secondary: #cbd5e1;
  --text-dark-tertiary: #94a3b8;
  --border-dark: #475569;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: background-color var(--transition-smooth),
    color var(--transition-smooth);
  overflow-x: hidden;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

/* ============================================
   SCROLLBAR
   ============================================ */

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

::-webkit-scrollbar-track {
  background: var(--bg-light-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 5px;
}

body.dark-mode ::-webkit-scrollbar-track {
  background: var(--bg-dark-secondary);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
  transition: color var(--transition-smooth);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  font-size: 1.5rem;
}

p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-light-secondary);
  transition: color var(--transition-smooth);
}

body.dark-mode p {
  color: var(--text-dark-secondary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

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

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

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

.section {
  padding: 6rem 0;
  transition: background-color var(--transition-smooth);
}

.section.light-bg {
  background-color: var(--bg-light-secondary);
}

body.dark-mode .section.light-bg {
  background-color: var(--bg-dark-secondary);
}

/* ============================================
   NAVIGATION & HEADER
   ============================================ */

header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-smooth);
}

body.dark-mode header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-bottom-color: var(--border-dark);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  font-size: 1.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;
  text-decoration: none;
}

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

.nav-links a {
  font-weight: 500;
  transition: all var(--transition-fast);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.nav-links a:hover {
  background-color: var(--bg-light-secondary);
}

body.dark-mode .nav-links a:hover {
  background-color: var(--bg-dark-secondary);
}

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

body.dark-mode .theme-toggle {
  border-color: var(--border-dark);
}

.theme-toggle:hover {
  transform: scale(1.1);
  background-color: var(--bg-light-secondary);
}

body.dark-mode .theme-toggle:hover {
  background-color: var(--bg-dark-secondary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  padding: 4rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  object-fit: cover;
  border: 4px solid var(--accent-primary);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  transition: all var(--transition-smooth);
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 70px rgba(102, 126, 234, 0.4);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  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;
  margin-bottom: 1rem;
}

.hero-description {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

body.dark-mode .info-badge {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border-color: var(--border-dark);
}

.info-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  border-color: var(--border-light);
  color: var(--text-light);
  background: transparent;
}

body.dark-mode .btn-secondary {
  border-color: var(--border-dark);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: var(--bg-light-secondary);
  transform: translateY(-2px);
}

body.dark-mode .btn-secondary:hover {
  background-color: var(--bg-dark-secondary);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition-smooth);
}

body.dark-mode .card {
  background: var(--bg-dark-secondary);
  border-color: var(--border-dark);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.15);
  border-color: var(--accent-primary);
}

body.dark-mode .card:hover {
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2-fixed {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-2-fixed {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin: 0.3rem;
  transition: all var(--transition-fast);
}

.badge:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
}

/* ============================================
   SOCIAL ICONS
   ============================================ */

.social-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-size: 1.3rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

/* ============================================
   EXPERIENCE / TIMELINE
   ============================================ */

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 3rem;
  width: 48%;
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
  text-align: right;
  padding-right: 2rem;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
  padding-left: 2rem;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 15px;
  height: 15px;
  background: var(--accent-primary);
  border: 3px solid var(--bg-light);
  border-radius: 50%;
  transform: translateX(-50%);
}

body.dark-mode .timeline-dot {
  border-color: var(--bg-dark);
}

.timeline-content {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all var(--transition-smooth);
}

body.dark-mode .timeline-content {
  background: var(--bg-dark-secondary);
  border-color: var(--border-dark);
}

.timeline-content:hover {
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 0;
  }

  .timeline-item {
    width: 100%;
    padding-left: 2rem !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-dot {
    left: 0;
  }
}

/* ============================================
   PUBLICATION / ARTICLE CARDS
   ============================================ */

.publication-card {
  background: var(--bg-light);
  border-left: 4px solid var(--accent-primary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-smooth);
}

body.dark-mode .publication-card {
  background: var(--bg-dark-secondary);
}

.publication-card:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.publication-status {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  background: var(--success);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.publication-status.in-prep {
  background: var(--warning);
}

.publication-status.submitted {
  background: var(--accent-primary);
}

/* ============================================
   SECTION STYLES
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.highlight {
  background: linear-gradient(120deg, rgba(102, 126, 234, 0.2), rgba(240, 147, 251, 0.2));
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-primary);
  margin-bottom: 2rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 600px;
  margin: 0;
}

.metric-card {
  text-align: center;
  padding: 1.75rem 1rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

body.dark-mode .metric-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-color: var(--border-dark);
}

.metric-number {
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  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.2;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.metric-label {
  font-size: 0.95rem;
  color: var(--text-light-secondary);
  transition: color var(--transition-smooth);
}

body.dark-mode .metric-label {
  color: var(--text-dark-secondary);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: linear-gradient(135deg, var(--bg-light-secondary), var(--bg-light-tertiary));
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
  margin-top: 6rem;
  transition: all var(--transition-smooth);
}

body.dark-mode footer {
  background: linear-gradient(135deg, var(--bg-dark-secondary), var(--bg-dark-tertiary));
  border-top-color: var(--border-dark);
}

.footer-content {
  text-align: center;
}

.footer-content p {
  margin-bottom: 1.5rem;
}

.footer-divider {
  height: 1px;
  background: var(--border-light);
  margin: 2rem 0;
  transition: background-color var(--transition-smooth);
}

body.dark-mode .footer-divider {
  background-color: var(--border-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-light-tertiary);
  transition: color var(--transition-smooth);
}

body.dark-mode .footer-text {
  color: var(--text-dark-tertiary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Desktop (1025px and above) - No changes */

/* iPad/Tablet (1024px and below) */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

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

/* Tablet (769px to 1024px) - iPad Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .profile-image {
    width: 180px;
    height: 180px;
  }

  .hero-description {
    font-size: 1rem;
  }

  nav {
    gap: 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
  }

  .nav-links a {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .theme-toggle {
    width: 37px;
    height: 37px;
    font-size: 1rem;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-dot {
    left: 0;
  }
}

/* Mobile Landscape (481px to 768px) - Smaller tablets/iPad Portrait */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
    max-width: 100%;
  }

  .profile-image {
    width: 160px;
    height: 160px;
    border-width: 3px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
  }

  .hero-info {
    flex-direction: column;
    gap: 0.75rem;
  }

  .info-badge {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  nav {
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav-links {
    gap: 0.6rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
  }

  .nav-links a {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .theme-toggle {
    width: 35px;
    height: 35px;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    gap: 1.5rem;
  }

  .grid-2-fixed {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    max-width: 100%;
  }


  .metric-card {
    padding: 1.5rem 1rem;
  }

  .metric-number {
    font-size: 1.4rem;
  }

  .metric-label {
    font-size: 0.9rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .highlight {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .badge {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    margin: 0.25rem;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 40px !important;
    padding-right: 0 !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-bottom: 2rem;
  }

  .timeline-dot {
    left: 0;
  }

  .timeline-content {
    padding: 1.25rem;
  }

  .publication-card {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .social-links {
    gap: 0.8rem;
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  header .container {
    padding: 0 0.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  header {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow-x: hidden;
  }

  nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
    padding: 0.4rem 0;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  nav::-webkit-scrollbar {
    height: 3px;
  }

  nav::-webkit-scrollbar-track {
    background: transparent;
  }

  nav::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
  }

  .logo {
    font-size: 1rem;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: fit-content;
    margin-right: 0.3rem;
  }

  .nav-links {
    display: flex;
    gap: 0.15rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-grow: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    height: 2px;
  }

  .nav-links::-webkit-scrollbar-track {
    background: transparent;
  }

  .nav-links::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.2);
  }

  .nav-links li {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .nav-links a {
    padding: 0.25rem 0.4rem;
    font-size: 0.65rem;
    white-space: nowrap;
    display: inline-block;
    border-radius: 3px;
    font-weight: 500;
  }

  .theme-toggle {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    border-width: 1.5px;
    flex-shrink: 0;
    cursor: pointer;
  }

  body.dark-mode .theme-toggle {
    border-color: var(--border-dark);
  }

  h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  h4 {
    font-size: 1rem;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .hero::before {
    width: 300px;
    height: 300px;
    top: -25%;
    right: -20%;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 100%;
    margin: 0 0 1.5rem;
  }

  .profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-width: 3px;
  }

  .profile-image:hover {
    transform: scale(1.03);
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .btn {
    width: 100%;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    justify-content: center;
  }

  .btn-primary {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.25);
  }

  .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
  }

  .hero-info {
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .info-badge {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    font-size: 0.82rem;
    gap: 0.4rem;
  }

  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    gap: 1rem;
  }

  .grid-2-fixed {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
    margin: 0;
  }


  .metric-card {
    padding: 1.25rem 0.75rem;
  }

  .metric-number {
    font-size: 1.2rem;
  }

  .metric-label {
    font-size: 0.85rem;
  }

  .card {
    padding: 1.25rem;
  }

  .card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .card h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    margin: 0.2rem;
  }

  .badge:hover {
    transform: scale(1.02);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .highlight {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-left-width: 3px;
  }

  .highlight h3 {
    margin-bottom: 0.75rem;
  }

  .highlight p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .social-links {
    gap: 0.6rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .social-icon:hover {
    transform: translateY(-2px) scale(1.08);
  }

  .timeline {
    padding: 1rem 0;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 35px !important;
    padding-right: 0 !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-bottom: 1.75rem;
  }

  .timeline-dot {
    width: 12px;
    height: 12px;
    left: 2px;
  }

  .timeline-content {
    padding: 1rem;
    border-radius: 8px;
  }

  .timeline-date {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  .timeline-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .timeline-content ul {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .publication-card {
    padding: 1rem;
    margin-bottom: 1rem;
    border-left-width: 3px;
  }

  .publication-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .publication-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }

  .publication-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .footer-content {
    text-align: center;
  }

  .footer-content h3 {
    font-size: 1.2rem;
  }

  .footer-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-text {
    font-size: 0.8rem;
  }
}
