/* assets/css/styles.css */

/* ===== RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary-color: #3a86ff;
  --secondary-color: #8338ec;
  --accent-color: #ff006e;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --error-color: #e74c3c;

  /* Text Colors */
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --text-light: #a0aec0;
  --text-white: #000000;

  /* Background Colors */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

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

  /* Typography */
  --font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --line-height: 1.7;
}

.dark-mode {
  --primary-color: #f39c12;

  --text-primary: #f1f3f5;
  --text-secondary: #adb5bd;
  --text-light: #868e96;
  --text-white: #ffffff;

  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-card: #1e1e1e;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
}

/* ===== BASE STYLES ===== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: var(--transition-normal);
  overflow-x: hidden;
}
/* ==== HEADER & NAVBAR ==== */
.header-custom {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.8); /* biru gelap transparan */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.nav-brand h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.5px;
}

.nav-brand span {
  color: var(--primary-color); /* ungu utama */
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #a78bfa;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #7c3aed;
  border-radius: 2px;
}

/* ==== TOMBOL TEMA ==== */
.theme-toggle button {
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.theme-toggle button:hover {
  color: #a78bfa;
  transform: rotate(-10deg);
}

/* ==== HAMBURGER MENU (MOBILE) ==== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 2px;
  background-color: #e2e8f0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

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

  .hamburger {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0;
  }
}

/* ==== SECTION HEADER (OVERVIEW) ==== */
section header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

section header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
}

section header p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: var(--space-xl);
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary-color);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.nav-brand h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.5px;
}

.nav-brand span {
  color: var(--primary-color); /* ungu utama */
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-normal);
}

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

.theme-toggle {
  margin-left: var(--space-md);
}

#theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition-normal);
}

#theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(15deg);
}

.dark-mode #theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition-normal);
  border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.home-section {
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.home-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.home-text {
  padding-right: var(--space-lg);
}

.greeting {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: block;
}

.home-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

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

.home-subtitle {
  font-size: 1.8rem;
  margin-bottom: var(--space-lg);
  font-weight: 500;
  color: var(--text-secondary);
}

.typing-text {
  color: var(--primary-color);
}

.home-description {
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
  line-height: 1.8;
}

.home-buttons {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.home-stats {
  display: flex;
  gap: var(--space-xl);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

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

.home-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.image-container {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--bg-secondary);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.image-container:hover img {
  transform: scale(1.05);
}

.tech-badge {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  animation: bounce 2s infinite;
}

.tech-badge:nth-child(2) {
  top: 20%;
  right: -10px;
  animation-delay: 0.5s;
}

.tech-badge:nth-child(3) {
  bottom: 20%;
  left: -10px;
  animation-delay: 1s;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-secondary);
  animation: bounce 2s infinite;
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.8;
}

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

.detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .detail-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.detail-content {
  flex: 1;
}

.detail-label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.detail-value {
  color: var(--text-secondary);
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-color);
  margin-top: var(--space-xl);
}

.download-btn {
  min-width: 200px;
  height: 56px;
  position: relative;
  overflow: hidden;
}

.download-btn .btn-text,
.download-btn .btn-loading,
.download-btn .btn-success {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.download-btn .btn-loading,
.download-btn .btn-success {
  opacity: 0;
  visibility: hidden;
}

.download-btn.loading .btn-text {
  opacity: 0;
  visibility: hidden;
}

.download-btn.loading .btn-loading {
  opacity: 1;
  visibility: visible;
}

.download-btn.success .btn-text {
  opacity: 0;
  visibility: hidden;
}

.download-btn.success .btn-success {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.download-progress {
  margin-top: var(--space-lg);
  display: none;
  align-items: center;
  gap: var(--space-md);
}

.download-progress.active {
  display: flex;
  animation: fadeInUp 0.5s ease;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.dark-mode .progress-bar {
  background: rgba(255, 255, 255, 0.1);
}

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

.progress-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  min-width: 45px;
}

.download-info {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .download-info {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.file-info,
.download-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.file-info i {
  color: #e74c3c;
}

.download-stats i {
  color: var(--primary-color);
}

/* ===== ABOUT STATS ===== */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.stat-card {
  background: var(--bg-card);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.stat-info h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.stat-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== PUBLICATION SECTION ===== */
.publication-section {
  margin-top: var(--space-2xl);
}

.publication-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 600;
}

.publication-title i {
  font-size: 1.4rem;
}

.publication-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  transition: var(--transition-normal);
}

.dark-mode .publication-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.publication-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

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

.publication-journal {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin: 0;
}

.publication-volume {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 12px;
  border-radius: 12px;
}

.dark-mode .publication-volume {
  background: rgba(255, 255, 255, 0.05);
}

.publication-topic {
  font-size: 1.3rem;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-weight: 600;
}

.publication-authors {
  margin-bottom: var(--space-lg);
  font-size: 1rem;
  color: var(--text-secondary);
}

.author {
  font-weight: 500;
}

.author.main-author {
  color: var(--primary-color);
  font-weight: 600;
}

.publication-doi {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: rgba(58, 134, 255, 0.1);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
}

.publication-doi i {
  color: var(--primary-color);
  font-size: 1rem;
}

.doi-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  word-break: break-all;
  transition: var(--transition-fast);
}

.doi-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.publication-abstract {
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--secondary-color);
}

.dark-mode .publication-abstract {
  background: rgba(255, 255, 255, 0.05);
}

.publication-abstract p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.publication-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.keyword {
  background: rgba(58, 134, 255, 0.1);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(58, 134, 255, 0.2);
}

.publication-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ===== SKILLS SECTION ===== */
.skill-progress {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease-in-out;
}
*/
/* Ubah grid menjadi horizontal scroll */
.skills-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--space-xl);
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

/* Supaya setiap kartu tetap rapi saat di-swipe */
.skill-category {
  flex: 0 0 350px; /* ukuran tiap kartu */
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

/* Hilangkan scrollbar di browser berbasis WebKit (Chrome, Edge, Safari) */
.skills-grid::-webkit-scrollbar {
  height: 8px;
}
.skills-grid::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}
.skills-grid::-webkit-scrollbar-track {
  background: transparent;
}

/* Tambahan efek hover */
.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

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

.project-image {
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  position: relative;
}

.project-content {
  padding: var(--space-xl);
}

.project-content h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-content p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.tech-tag {
  background: rgba(58, 134, 255, 0.1);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: var(--space-md);
}

.project-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: var(--transition-fast);
}

.project-link:hover {
  color: var(--secondary-color);
}

.projects-more {
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  padding: var(--space-2xl) 0 var(--space-lg);
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-info h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.footer-info h3 span {
  color: var(--primary-color);
}

.footer-info p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition-normal);
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: var(--space-lg);
  font-size: 1.2rem;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.contact-item i {
  color: var(--primary-color);
  width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--text-secondary);
  margin: 0;
}

.footer-bottom i {
  color: var(--accent-color);
  margin: 0 4px;
}

/* ===== MODALS ===== */
.download-modal,
.publication-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: var(--transition-normal);
}

.download-modal.active,
.publication-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  transform: translateY(-20px);
  transition: var(--transition-normal);
}

.download-modal.active .modal-content,
.publication-modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dark-mode .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.dark-mode .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: var(--space-xl);
  text-align: center;
}

.modal-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--space-lg);
}

.modal-body p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modal-footer {
  padding: var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.dark-mode .modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.citation-format {
  text-align: left;
}

.citation-format h4 {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.citation-text {
  background: rgba(0, 0, 0, 0.05);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .citation-text {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== ANIMATIONS ===== */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .home-content {
    gap: var(--space-xl);
  }

  .home-title {
    font-size: 3rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: var(--bg-card);
    width: 100%;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl) 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: var(--space-md) 0;
  }

  .home-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-text {
    padding-right: 0;
  }

  .home-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .home-stats {
    justify-content: center;
  }

  .image-container {
    width: 300px;
    height: 300px;
  }

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

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .publication-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .publication-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }

  .home-title {
    font-size: 2.5rem;
  }

  .home-subtitle {
    font-size: 1.5rem;
  }

  .home-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .image-container {
    width: 250px;
    height: 250px;
  }

  .tech-badge {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .publication-card {
    padding: var(--space-lg);
  }

  .publication-doi {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: var(--space-xs);
}
.mt-2 {
  margin-top: var(--space-sm);
}
.mt-3 {
  margin-top: var(--space-md);
}
.mt-4 {
  margin-top: var(--space-lg);
}
.mt-5 {
  margin-top: var(--space-xl);
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--space-xs);
}
.mb-2 {
  margin-bottom: var(--space-sm);
}
.mb-3 {
  margin-bottom: var(--space-md);
}
.mb-4 {
  margin-bottom: var(--space-lg);
}
.mb-5 {
  margin-bottom: var(--space-xl);
}

.p-0 {
  padding: 0;
}
.p-1 {
  padding: var(--space-xs);
}
.p-2 {
  padding: var(--space-sm);
}
.p-3 {
  padding: var(--space-md);
}
.p-4 {
  padding: var(--space-lg);
}
.p-5 {
  padding: var(--space-xl);
}

.d-flex {
  display: flex;
}
.d-grid {
  display: grid;
}
.d-none {
  display: none;
}
.d-block {
  display: block;
}

.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.align-center {
  align-items: center;
}

.w-100 {
  width: 100%;
}
.h-100 {
  height: 100%;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
