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

:root {
  --bg-primary: #1a1410;
  --bg-secondary: #241d17;
  --bg-card: rgba(180, 140, 100, 0.06);
  --text-primary: #e8d5b7;
  --text-secondary: #b89a7a;
  --accent-brass: #c9a84c;
  --accent-copper: #b87333;
  --accent-amber: #d4823a;
  --accent-teal: #4a9e8e;
  --accent-rust: #8b4513;
  --glow-brass: 0 0 40px rgba(201, 168, 76, 0.3);
  --glow-amber: 0 0 40px rgba(212, 130, 58, 0.3);
  --border-glass: rgba(180, 140, 100, 0.12);
  --gradient-1: linear-gradient(135deg, #c9a84c 0%, #b87333 50%, #d4823a 100%);
  --gradient-2: linear-gradient(135deg, #8b4513 0%, #4a9e8e 100%);
  --gradient-gold: linear-gradient(135deg, #c9a84c 0%, #d4823a 100%);
}

[data-theme="light"] {
  --bg-primary: #faf6f0;
  --bg-secondary: #f5ede0;
  --bg-card: rgba(90, 70, 50, 0.04);
  --text-primary: #3d3026;
  --text-secondary: #7a6a5a;
  --accent-brass: #b8943c;
  --accent-copper: #a0632a;
  --accent-amber: #c4722a;
  --accent-teal: #3a8e7e;
  --accent-rust: #7a3a0f;
  --glow-brass: 0 0 30px rgba(184, 148, 60, 0.2);
  --glow-amber: 0 0 30px rgba(196, 114, 42, 0.2);
  --border-glass: rgba(90, 70, 50, 0.1);
  --gradient-1: linear-gradient(135deg, #b8943c 0%, #a0632a 50%, #c4722a 100%);
  --gradient-2: linear-gradient(135deg, #7a3a0f 0%, #3a8e7e 100%);
  --gradient-gold: linear-gradient(135deg, #b8943c 0%, #c4722a 100%);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: all 0.5s ease;
}

[data-theme="light"] body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.aurora-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}

[data-theme="dark"] .aurora-container,
:root .aurora-container {
  opacity: 1;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: auroraFloat 20s infinite ease-in-out;
  mix-blend-mode: screen;
}

.aurora-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #d4823a, #c9a84c);
  top: -20%;
  left: -10%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.aurora-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #b87333, #8b4513);
  top: 50%;
  right: -15%;
  animation-delay: -5s;
  animation-duration: 30s;
}

.aurora-3 {
  width: 700px;
  height: 700px;
  background: linear-gradient(135deg, #4a9e8e, #c9a84c);
  bottom: -25%;
  left: 30%;
  animation-delay: -10s;
  animation-duration: 28s;
}

.aurora-4 {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, #c9a84c, #d4823a);
  top: 30%;
  left: 20%;
  animation-delay: -15s;
  animation-duration: 32s;
}

@keyframes auroraFloat {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(10%, 15%) scale(1.1) rotate(90deg); }
  50% { transform: translate(-5%, 10%) scale(0.9) rotate(180deg); }
  75% { transform: translate(15%, -10%) scale(1.05) rotate(270deg); }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.avatar-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 40px;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  position: relative;
  z-index: 2;
  box-shadow: var(--glow-brass);
  animation: avatarPulse 3s ease-in-out infinite;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  animation: avatarZoom 12s ease-in-out infinite;
}

@keyframes avatarZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.avatar-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--accent-amber);
  border-radius: 50%;
  animation: ringRotate 10s linear infinite;
}

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

h1 {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}

.title {
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 500;
}

.tagline {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-stack {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.tech-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tech-icon:hover {
  transform: translateY(-5px);
  background: var(--gradient-1);
  box-shadow: var(--glow-brass);
  border-color: transparent;
}

.stats {
  padding: 100px 20px;
  background: var(--bg-secondary);
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-amber);
  box-shadow: var(--glow-amber);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

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

.experience {
  padding: 100px 20px;
}

.section-title {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 60px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--gradient-1);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50px;
  margin-bottom: 40px;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50px;
  margin-left: 50%;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.timeline-content:hover {
  border-color: var(--accent-amber);
  box-shadow: var(--glow-amber);
  transform: scale(1.02);
}

.timeline-dot {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent-amber);
  border-radius: 50%;
  box-shadow: var(--glow-amber);
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -8px;
}

.timeline-year {
  font-size: 14px;
  color: var(--accent-amber);
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.education {
  padding: 100px 20px;
  background: var(--bg-secondary);
}

.edu-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.edu-card:hover {
  border-color: var(--accent-teal);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
  transform: translateY(-5px);
}

.edu-year {
  font-size: 14px;
  color: var(--accent-teal);
  font-weight: 700;
  margin-bottom: 8px;
}

.edu-degree {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.edu-school {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.edu-grade {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gradient-2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.skills {
  padding: 100px 20px;
}

.skills-container {
  max-width: 1000px;
  margin: 0 auto;
}

.skill-category {
  margin-bottom: 40px;
}

.skill-category-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 25px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-tag:hover {
  background: var(--gradient-1);
  border-color: transparent;
  color: white;
  box-shadow: var(--glow-brass);
  transform: translateY(-2px);
}

.theme-toggle-fatin {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2147483640;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--glow-amber);
  transition: all 0.3s ease;
}
.theme-toggle-fatin:hover {
  background: var(--gradient-1);
  border-color: transparent;
  transform: scale(1.08);
  color: #fff;
}

.achievements-section {
  padding: 100px 10%;
  background: var(--bg-secondary);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
}

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

.achievement-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.achievement-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.achievement-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Articles Section ---------- */
.articles-section {
  padding: 100px 20px;
  background: var(--bg-secondary);
}
.articles-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.articles-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.articles-row-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: var(--accent-brass);
}
.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card-body {
  padding: 24px;
}
.article-card-date {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.article-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.article-byline-label {
  color: var(--text-secondary);
}
.article-youtube-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #ff0000;
  color: white;
  border-radius: 4px;
  font-size: 11px;
  margin-left: 8px;
}
.article-compact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
  padding: 16px;
}
.article-compact-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-brass);
  box-shadow: var(--glow-brass);
}
.article-compact-body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-small-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}
.article-compact-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.article-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.article-title-row:hover {
  border-color: var(--accent-brass);
  transform: translateX(4px);
}
.article-title-row-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.article-title-row-arrow {
  color: var(--accent-brass);
  font-size: 14px;
  flex-shrink: 0;
}
.articles-readmore-wrap {
  max-width: 1100px;
  margin: 40px auto 0;
  text-align: center;
}
.articles-readmore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.articles-readmore-btn:hover {
  background: var(--gradient-1);
  border-color: transparent;
  box-shadow: var(--glow-brass);
  transform: translateY(-3px);
  color: #fff;
}
.articles-pagination {
  max-width: 1100px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.pagination-status {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.pagination-btn {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.pagination-btn:hover:not(:disabled) {
  background: var(--gradient-1);
  border-color: transparent;
  box-shadow: var(--glow-brass);
  color: #fff;
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pagination-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.pagination-page-btn:hover,
.pagination-page-btn.active {
  background: var(--gradient-1);
  border-color: transparent;
  box-shadow: var(--glow-brass);
  color: #fff;
}
.pagination-per-page {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.pagination-select {
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.pagination-select:focus {
  outline: none;
  border-color: var(--accent-brass);
  box-shadow: var(--glow-brass);
}
.articles-actions {
  text-align: center;
  margin: 40px auto 0;
  max-width: 1100px;
}
.add-article-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gradient-1);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--glow-brass);
  text-decoration: none;
}
.add-article-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(0, 245, 255, 0.5);
  color: #fff;
}
[data-theme="light"] .add-article-btn {
  color: #fff;
}

/* ---------- Article Single Page ---------- */
body.article-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  transition: background 0.5s ease, color 0.5s ease;
}
.article-page .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 100px;
}
.article-page .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 40px;
  transition: color 0.3s;
}
.article-page .back:hover {
  color: var(--accent-brass);
}
.article-page .edit-btn {
  background: rgba(0, 245, 255, 0.15);
  border: 1px solid var(--accent-brass);
  border-radius: 8px;
  color: var(--accent-brass);
  cursor: pointer;
  font-size: 16px;
  padding: 8px 16px;
  transition: all 0.3s;
  line-height: 1;
  font-weight: 500;
}
.article-page .edit-btn:hover {
  background: var(--accent-brass);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}
.article-page .article-header {
  margin-bottom: 40px;
}
.article-page .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.article-page .article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.article-page .article-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.article-page .article-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 40px;
  border: 1px solid var(--border-glass);
  cursor: zoom-in;
  transition: opacity 0.3s;
}
.article-page .article-image:hover {
  opacity: 0.95;
}
.article-page .article-content {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 2;
  letter-spacing: 0.01em;
}
.article-page .article-content p {
  margin-bottom: 28px;
  text-align: justify;
  color: var(--text-primary);
}
.article-page .article-content p:first-child {
  font-size: 19px;
}
.article-page .article-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 52px 0 20px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(0, 245, 255, 0.15);
  padding-bottom: 12px;
}
.article-page .article-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--text-primary);
}
.article-page .article-content ul,
.article-page .article-content ol {
  padding-left: 28px;
  margin-bottom: 28px;
}
.article-page .article-content li {
  margin-bottom: 12px;
  color: var(--text-primary);
}
.article-page .article-content blockquote {
  border-left: 4px solid var(--accent-brass);
  padding: 20px 28px;
  margin: 32px 0;
  background: rgba(0, 245, 255, 0.06);
  border-radius: 0 16px 16px 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 17px;
  line-height: 1.8;
}
.article-page .article-content a {
  color: var(--accent-brass);
  text-decoration: underline;
  font-weight: 500;
}
.article-page .article-content a:hover {
  color: var(--accent-teal);
}
.article-page .article-content img {
  max-width: 100%;
  border-radius: 14px;
  margin: 32px 0;
  border: 1px solid var(--border-glass);
}
.article-page .article-content pre {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: 14px;
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border-glass);
  font-size: 15px;
  color: var(--text-primary);
}
.article-page .article-content code {
  font-size: 15px;
  background: var(--bg-secondary);
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.article-page .article-content strong {
  color: var(--text-primary);
  font-weight: 700;
}
.article-page .article-content em {
  color: var(--text-secondary);
}
.article-page .article-content hr {
  border: none;
  border-top: 1px solid var(--border-glass);
  margin: 40px 0;
}
.article-page .article-byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-brass);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.article-page .article-byline a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 245, 255, 0.35);
  transition: color 0.3s, border-color 0.3s;
}
.article-page .article-byline a:hover {
  color: var(--accent-teal);
  border-bottom-color: var(--accent-teal);
}
.article-page .fatin-summary-box {
  margin: 48px 0 0;
  padding: 28px 30px;
  border: 1px solid rgba(0, 245, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.06), rgba(16, 185, 129, 0.08));
}
.article-page .fatin-summary-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}
.article-page .fatin-summary-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.article-page .fatin-summary-photo {
  flex-shrink: 0;
  width: 148px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(0, 245, 255, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  background: var(--bg-secondary);
}
.article-page .fatin-summary-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}
.article-page .fatin-summary-text {
  flex: 1;
  min-width: 0;
}
.article-page .fatin-summary-box p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.article-page .fatin-summary-box a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-brass);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.article-page .fatin-summary-box a:hover {
  color: var(--accent-teal);
}
.article-page .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  margin: 30px 0;
  border: 1px solid var(--border-glass);
}
.article-page .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.article-page .share-section {
  margin: 48px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
}
.article-page .share-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 16px;
}
.article-page .share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.article-page .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.article-page .share-btn svg {
  width: 20px;
  height: 20px;
}
.article-page .share-btn:hover {
  transform: translateY(-3px);
}
.article-page .share-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.article-page .share-x:hover { background: #000; border-color: #000; color: #fff; }
.article-page .share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.article-page .share-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.article-page .share-copy:hover { background: var(--accent-brass); border-color: var(--accent-brass); color: #000; }
.article-page .share-copy.copied { background: #34c759; border-color: #34c759; color: #fff; }
.article-page .img-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2147483646;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
}
.article-page .img-modal.active {
  display: flex;
}
.article-page .img-modal img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}
[data-theme="light"] .article-page .article-content h2 {
  border-bottom-color: rgba(0, 102, 255, 0.2);
}
[data-theme="light"] .article-page .article-content blockquote {
  background: rgba(0, 102, 255, 0.06);
  color: var(--text-primary);
}
[data-theme="light"] .article-page .article-content a {
  color: #0066ff;
}
[data-theme="light"] .article-page .article-content a:hover {
  color: #0044aa;
}
[data-theme="light"] .article-page .article-content pre,
[data-theme="light"] .article-page .article-content code {
  background: #f1f5f9;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .article-page .fatin-summary-box {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(16, 185, 129, 0.05));
  border-color: rgba(0, 102, 255, 0.15);
}
[data-theme="light"] .article-page .fatin-summary-box a,
[data-theme="light"] .article-page .article-byline,
[data-theme="light"] .article-page .article-byline a {
  color: #0066ff;
}
[data-theme="light"] .article-page .edit-btn {
  color: #0066ff;
  border-color: #0066ff;
  background: rgba(0, 102, 255, 0.08);
}
.article-page .article-content [style*="color"] {
  color: var(--text-primary) !important;
}
[data-theme="light"] .article-page .article-content a[style*="color"] {
  color: #0066ff !important;
}
/* ---------- Compose Page ---------- */
.compose-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}
.compose-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 100px;
}
.compose-header {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compose-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.compose-back:hover { color: var(--accent-brass); }
.compose-header h1 {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}
.compose-alert {
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}
.compose-alert--error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.compose-alert--success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.compose-alert--success a {
  color: var(--accent-brass);
  font-weight: 600;
}
.compose-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.compose-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.compose-field input[type="text"],
.compose-field input[type="url"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border 0.3s;
}
.compose-field input:focus {
  border-color: var(--accent-brass);
}
.compose-field input[type="file"] {
  width: 100%;
  padding: 10px;
  color: var(--text-secondary);
}
.compose-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.compose-current-img img {
  border-radius: 8px;
  margin-top: 8px;
  max-width: 200px;
}
.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}
.wysiwyg-toolbar button {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}
.wysiwyg-toolbar button:hover {
  background: var(--border-glass);
  color: var(--text-primary);
}
.wysiwyg-editor {
  width: 100%;
  min-height: 400px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 0 0 12px 12px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.7;
  outline: none;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
}
.wysiwyg-editor:focus {
  border-color: var(--accent-brass);
}
.wysiwyg-editor img {
  max-width: 100%;
  border-radius: 12px;
  margin: 12px 0;
}
.compose-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.compose-cancel {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.compose-cancel:hover {
  border-color: var(--accent-brass);
  color: var(--accent-brass);
}
.compose-submit {
  padding: 12px 32px;
  background: var(--gradient-1);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--glow-brass);
}
.compose-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.5);
}
.compose-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.compose-delete {
  padding: 12px 24px;
  background: #ef4444;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: auto;
}
.compose-delete:hover {
  background: #dc2626;
}
.compose-password-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2147483647;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}
.compose-password-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90vw;
}
.compose-password-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.compose-password-box input {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  text-align: center;
  outline: none;
}
.compose-password-box input:focus {
  border-color: var(--accent-brass);
}
.compose-password-box button {
  margin-top: 16px;
  padding: 12px 40px;
  background: var(--gradient-1);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
[data-theme="light"] .compose-submit { color: #fff; }

@media (max-width: 768px) {
  .article-page .article-title { font-size: 28px; }
  .article-page .container { padding: 20px 16px 80px; }
  .article-page .article-content { font-size: 17px; line-height: 1.9; }
  .article-page .article-content p { text-align: left; }
}
@media (max-width: 600px) {
  .article-page .fatin-summary-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .article-page .fatin-summary-photo { width: min(100%, 220px); }
  .article-page .fatin-summary-text { width: 100%; }
}

@media (max-width: 768px) {
  h1 { font-size: 42px; }
  .title { font-size: 18px; }
  .section-title { font-size: 32px; }
  .edu-grid { grid-template-columns: 1fr; gap: 20px; }
  .theme-toggle-fatin {
    top: 16px;
    left: 16px;
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 12px;
    right: auto;
  }
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  .articles-section { padding: 60px 16px; }
  .articles-row-3 { grid-template-columns: 1fr; gap: 16px; }
  .article-small-img { width: 56px; height: 56px; }
  .pagination-controls { flex-direction: column; width: 100%; }
  .pagination-btn { width: 100%; }
  .pagination-pages { justify-content: center; }
  .compose-header h1 { font-size: 24px; }
  .wysiwyg-editor { min-height: 280px; }
  .compose-actions { flex-wrap: wrap; }
  .compose-delete { margin-left: 0; }
}

/* Hero background pan + zoom */
.hero-bg { overflow: hidden; }
.hero-bg img {
  animation: fatinHeroPanZoom 24s ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform;
}
@keyframes fatinHeroPanZoom {
  0% { transform: scale(1) translate3d(0,0,0); }
  50% { transform: scale(1.10) translate3d(-1.5%, 1%, 0); }
  100% { transform: scale(1.16) translate3d(1.5%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none !important; transform: none !important; }
}

/* Hero image pan + zoom */
.hero-bg,
.hero-avatar,
.avatar {
  overflow: hidden;
}
.hero-bg img {
  animation: FatinHeroBgPanZoom 24s ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform;
}
.hero-avatar img,
.avatar img,
.avatar-img {
  animation: FatinHeroPortraitPanZoom 16s ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform;
}
@keyframes FatinHeroBgPanZoom {
  0% { transform: scale(1) translate3d(0,0,0); }
  50% { transform: scale(1.10) translate3d(-1.5%, 1%, 0); }
  100% { transform: scale(1.16) translate3d(1.5%, -1%, 0); }
}
@keyframes FatinHeroPortraitPanZoom {
  0% { transform: scale(1) translate3d(0,0,0); }
  100% { transform: scale(1.08) translate3d(0,-1.5%,0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img,
  .hero-avatar img,
  .avatar img,
  .avatar-img { animation: none !important; transform: none !important; }
}

/* Reduce overlay darkness */
.hero-overlay {
  background: rgba(0,0,0,0.4) !important;
}

/* Homepage: 3 article cards directly under hero (strong rules) */
.hero-articles,
#hero-articles {
  padding: 28px 20px 12px;
  clear: both;
}
.hero-articles-grid,
#hero-articles-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .hero-articles-grid,
  #hero-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
  .hero-articles-grid,
  #hero-articles-grid { grid-template-columns: 1fr !important; }
}

/* Simple visible cards for the hero strip */
.hero-articles .article-card,
#hero-articles .article-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.hero-articles .article-card:hover,
#hero-articles .article-card:hover {
  border-color: var(--accent-brass);
  transform: translateY(-3px);
}
.hero-articles .article-card-img,
#hero-articles .article-card-img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
}
.hero-articles .article-card-body,
#hero-articles .article-card-body {
  padding: 12px 14px;
}
.hero-articles .article-card-title,
#hero-articles .article-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.hero-articles .article-card-date,
#hero-articles .article-card-date {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.hero-articles .article-card-excerpt,
#hero-articles .article-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.hero-articles .article-card-footer,
#hero-articles .article-card-footer {
  padding: 9px 14px;
  border-top: 1px solid var(--border-glass);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* ========== Hero Articles (3 cards right under hero) ========== */
.hero-articles {
  padding: 40px 20px 20px;
  position: relative;
  z-index: 2;
}

.hero-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}

@media (max-width: 900px) {
  .hero-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero-articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-articles {
    padding: 30px 16px 10px;
  }
}

/* Make sure hero cards look good with fatin palette (reuse + tweak existing .article-card) */
.hero-articles .article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}

.hero-articles .article-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-brass);
}

.hero-articles .article-card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.hero-articles .article-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-articles .article-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.hero-articles .article-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  flex: 1;
}

.hero-articles .article-card-date {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.hero-articles .article-card-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-glass);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========== Related Articles / Videos + Topic chips (article page) ========== */
.article-page .fatin-section {
  margin: 40px 0;
  padding: 0;
}

.article-page .fatin-section__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.article-page .fatin-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.article-page .related-grid,
.article-page .topic-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.article-page .related-card {
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-page .related-card:hover {
  border-color: var(--accent-brass);
  transform: translateY(-2px);
}

.article-page .related-card__thumb {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.04);
}

.article-page .related-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-page .related-card__body {
  padding: 2px 0;
}

.article-page .related-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.article-page .related-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.article-page .related-card__excerpt {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Topic chips */
.article-page .topic-links {
  gap: 10px;
}

.article-page .topic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.22);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-page .topic-chip:hover {
  border-color: var(--accent-brass);
  background: rgba(201, 168, 76, 0.14);
  color: var(--text-primary);
}

/* Responsive for Related + Topics */
@media (max-width: 900px) {
  .article-page .related-grid,
  .article-page .topic-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .article-page .related-grid,
  .article-page .topic-links {
    grid-template-columns: 1fr;
  }
}

