/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --secondary-color: #0ea5e9;
  --accent-color: #f59e0b;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --navbar-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
  --primary-color: #3b82f6;
  --secondary-color: #06b6d4;
  --accent-color: #fbbf24;
  --dark-bg: #0a0f1e;
  --light-bg: #0f172a;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-color: #1e293b;
  --bg-color: #0a0f1e;
  --card-bg: #0f172a;
  --navbar-bg: rgba(10, 15, 30, 0.95);
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  scroll-behavior: smooth;
  background: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Clean uniform background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--bg-color);
  pointer-events: none;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 4px 0;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

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

/* Focus Visible Styles */
*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

/* Scroll Reveal Animation */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

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

/* Navigation */
.navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

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

.logo {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}

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

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

/* Hero Section */
.hero {
  background: white;
  color: var(--text-primary);
  padding: 120px 20px 140px;
  position: relative;
}

/* Mesh effects removed for cleaner look */
/* .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
  background:
    radial-gradient(ellipse 800px 600px at 10% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 600px 800px at 90% 30%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 700px 500px at 50% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 500px 700px at 30% 60%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
  mix-blend-mode: screen;
} */

/* .hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
} */

.hero-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero .container {
  position: relative;
  z-index: 10;
  /* Ensure content stays above mesh background */
}

.hero-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
}

.hero-text {
  text-align: left;
}

.hero-title {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Section Styles */
section {
  padding: 80px 20px;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* About Section */
.about {
  background: var(--light-bg);
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

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

.education-section h3,
.interests-section h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.education-section h3 i,
.interests-section h3 i {
  color: var(--primary-color);
  font-size: 1.75rem;
}

.education-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.education-item h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.institution {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.date-range {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.interests-list {
  list-style: none;
  padding: 0;
}

.interests-list li {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.interests-list li:hover {
  transform: translateX(5px);
}

.interests-list i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* Other Info Section */
.other-info-wrapper {
  margin-top: 2.5rem;
}

.other-info-wrapper h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.other-info-wrapper h3 i {
  color: var(--primary-color);
  font-size: 1.75rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-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;
  flex-shrink: 0;
}

.info-icon i {
  color: white;
  font-size: 1.1rem;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.info-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

[data-theme="dark"] .info-card {
  background: var(--card-bg);
}

/* Experience Section - Timeline */
.experience {
  background: white;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-year {
  position: absolute;
  left: -200px;
  top: 0;
  font-size: 7.5rem;
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--primary-color);
  opacity: 0.04;
  letter-spacing: -0.03em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s ease;
  z-index: 0;
}

[data-theme="dark"] .timeline-year {
  opacity: 0.06;
}

.timeline-item:hover .timeline-year {
  opacity: 0.07;
}

[data-theme="dark"] .timeline-item:hover .timeline-year {
  opacity: 0.09;
}

.timeline-marker {
  position: absolute;
  left: -47px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 3px var(--border-color);
}

.timeline-content {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.timeline-date {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-content h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.timeline-content h4 {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.location {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-title {
  color: var(--primary-color);
  margin: 1rem 0;
  font-size: 1rem;
}

.responsibilities {
  margin-top: 1rem;
}

.responsibilities p {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.responsibilities ul {
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

.responsibilities li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Experience Category Tags */
.experience-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.experience-tag.work {
  background: #10b981;
  color: white;
}

.experience-tag.internship {
  background: #3b82f6;
  color: white;
}

.experience-tag.activity {
  background: #8b5cf6;
  color: white;
}

.experience-tag.project {
  background: #f59e0b;
  color: white;
}

.experience-tag.parttime {
  background: #ec4899;
  color: white;
}

/* Skills Section */
.skills {
  background: var(--light-bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.skill-category {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category h3 i {
  color: var(--primary-color);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-header span:first-child {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.skill-level {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.skill-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tags-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Core Values Section in About */
.values-wrapper {
  margin-top: 3rem;
}

.values-wrapper h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.values-wrapper h3 i {
  color: var(--primary-color);
  font-size: 1.75rem;
}

/* Core Values Grid */
.values-category {
  grid-column: 1 / -1;
}

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

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 2rem 2rem 4rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover {
  border-color: var(--primary-color);
  background: var(--light-bg);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
}

.value-card:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.value-number {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.4;
  letter-spacing: 0.1em;
}

.value-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.value-name {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.value-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

[data-theme="dark"] .value-card {
  border-color: var(--border-color);
}

[data-theme="dark"] .value-card:hover {
  background: var(--card-bg);
  border-color: var(--primary-color);
}

.value-placeholder {
  opacity: 0.5;
  border-style: dashed;
}

.value-placeholder .value-number {
  opacity: 0.3;
}

.value-placeholder .value-name {
  font-style: italic;
  font-weight: 500;
}

.value-placeholder .value-desc {
  opacity: 0.7;
}

.language-skills {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 8px;
}

.language-name {
  color: var(--text-primary);
  font-weight: 600;
}

.language-level {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.language-item-with-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 8px;
}

.language-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language-score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-awards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: -0.25rem;
}

.score-badge {
  color: #d97706;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.award-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  opacity: 0.8;
}

.award-badge i {
  color: #fbbf24;
  font-size: 0.7rem;
}

.skill-certification {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.cert-badge i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.cert-link-inline {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.cert-link-inline:hover {
  opacity: 1;
}


/* Accomplishments Section */
.accomplishments {
  background: white;
}

.accomplishments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.accomplishment-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.accomplishment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.accomplishment-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.accomplishment-icon i {
  color: white;
  font-size: 2rem;
}

.accomplishment-card h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.accomplishment-card .organization {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.accomplishment-card .date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.accomplishment-card .description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cert-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.cert-link:hover {
  gap: 0.75rem;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
}

.contact .section-title {
  color: white;
}

.contact .section-title::after {
  background: var(--accent-color);
}

.contact-text {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.contact-item i {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.contact-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  opacity: 0.8;
}

.contact-item p {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-btn {
  background: white;
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
  background: var(--accent-color);
  color: white;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: #94a3b8;
  text-align: center;
  padding: 2.5rem 1rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--accent-color);
  font-weight: 600;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-image img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .hero-text {
    text-align: center;
  }

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

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-marker {
    left: -37px;
  }

  .timeline-year {
    left: -140px;
    font-size: 6rem;
    opacity: 0.05;
  }

  [data-theme="dark"] .timeline-year {
    opacity: 0.08;
  }
}

@media (max-width: 768px) {
  .timeline-year {
    left: -100px;
    font-size: 4.5rem;
    opacity: 0.05;
  }

  [data-theme="dark"] .timeline-year {
    opacity: 0.09;
  }
}

@media (max-width: 640px) {
  .timeline-year {
    display: none;
  }
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  transition: all 0.3s ease;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Menu Backdrop */
.menu-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-backdrop.active {
  display: block;
  opacity: 1;
}

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

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

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

  /* Show hamburger on mobile */
  .hamburger {
    display: flex;
  }

  /* Mobile Menu Styles */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 80px 0 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 99;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links li:last-child {
    border-bottom: none;
    margin-top: auto;
  }

  .nav-links a {
    display: block;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
  }

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

  .nav-links a:hover {
    background: var(--light-bg);
    padding-left: 2.5rem;
  }

  .nav-links li:last-child {
    padding: 1.25rem 2rem;
  }

  .theme-toggle {
    margin: 0;
  }

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

  .contact-info {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

/* View Details Button */
.view-details-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  transition: all 0.3s;
}

.view-details-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.view-details-btn i {
  font-size: 0.85rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s;
}

/* Wider modal for blog posts with TOC */
.blog-modal-content {
  width: 90%;
  max-width: 1600px;
  padding: 0;
}

/* Responsive modal width */
@media (min-width: 768px) {
  .blog-modal-content {
    width: 90%;
  }
}

@media (min-width: 1024px) {
  .blog-modal-content {
    width: 85%;
  }
}

@media (min-width: 1440px) {
  .blog-modal-content {
    width: 80%;
  }
}

@media (min-width: 1920px) {
  .blog-modal-content {
    width: 75%;
    max-width: 1800px;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.modal-close:hover,
.modal-close:focus {
  opacity: 1;
  background: var(--light-bg);
  color: var(--text-primary);
  transform: scale(1.05);
}

[data-theme="dark"] .modal-close:hover,
[data-theme="dark"] .modal-close:focus {
  background: rgba(255, 255, 255, 0.1);
}

#modalBody {
  padding: 20px 40px 40px;
}

#modalBody h2 {
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.modal-company {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.modal-read-time {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.modal-read-time i {
  color: var(--accent-color);
  font-size: 0.85rem;
}

/* Modal Tags Container */
.modal-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.tag-bubble {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
  color: var(--text-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tag-bubble:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(14, 165, 233, 0.15));
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.tag-bubble.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(14, 165, 233, 0.25));
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
  font-weight: 600;
}

[data-theme="dark"] .tag-bubble {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.12));
  border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .tag-bubble:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
  border-color: rgba(59, 130, 246, 0.5);
}

.highlights-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-card {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  position: relative;
}

.highlight-card.expandable {
  padding-bottom: 4rem;
}

.highlight-card h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.highlight-card h3 i {
  color: var(--accent-color);
  font-size: 1.1rem;
}

.highlight-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.highlight-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-metrics li {
  color: var(--text-primary);
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.highlight-metrics li i {
  color: #10b981;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.highlight-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  position: relative;
}

.highlight-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.highlight-image::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.7);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.highlight-image:hover::after {
  opacity: 1;
}

[data-theme="dark"] .highlight-image {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .highlight-image:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

/* Lightbox Gallery Styles */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100% - 80px);
  padding: 20px;
}

#lightboxImage {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 24px;
  font-weight: 400;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.2s ease;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.lightbox-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 24px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  z-index: 2001;
}

.lightbox-nav:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 30px 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#lightboxCounter {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 600;
  color: var(--accent-color);
}

#lightboxTitle {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
  .lightbox-close {
    top: 10px;
    right: 20px;
    font-size: 36px;
  }

  .lightbox-nav {
    padding: 15px 12px;
    font-size: 20px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  #lightboxImage {
    max-width: 95%;
    max-height: 85%;
  }

  .lightbox-caption {
    padding: 20px 20px 15px;
  }

  #lightboxTitle {
    font-size: 0.95rem;
  }
}

/* Expandable Content Styles */
.expandable-content {
  margin-top: 1.5rem;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.expandable-content.collapsed {
  max-height: 0;
  opacity: 0;
}

.expandable-content:not(.collapsed) {
  max-height: 5000px;
  opacity: 1;
}

.expanded-section h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.expanded-section h4:first-child {
  margin-top: 0;
}

.expanded-section p {
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.expanded-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.expanded-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.expanded-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Read More Gradient Overlay */
.read-more-gradient {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--light-bg));
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .read-more-gradient {
  background: linear-gradient(to bottom, transparent, var(--card-bg));
}

/* Read More Button */
.read-more-btn {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  z-index: 2;
}

.read-more-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.read-more-btn i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.read-more-btn:hover i.fa-chevron-down {
  transform: translateY(2px);
}

.read-more-btn:hover i.fa-chevron-up {
  transform: translateY(-2px);
}

/* Progress Indicator */
.progress-indicator {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  background: var(--primary-color);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  z-index: 2;
}

.progress-text::before {
  content: '📍';
  margin-right: 0.25rem;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  #modalBody {
    padding: 20px 20px 30px;
  }

  #modalBody h2 {
    font-size: 1.5rem;
  }

  .highlight-card h3 {
    font-size: 1.1rem;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--border-color);
  border: none;
  width: 60px;
  height: 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 3px;
  position: relative;
}

.theme-toggle::before {
  content: '';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  position: absolute;
  left: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle i {
  position: absolute;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
  left: 8px;
  color: #fbbf24;
  opacity: 1;
}

.theme-toggle .fa-moon {
  right: 8px;
  color: #94a3b8;
  opacity: 0.4;
}

.theme-toggle:hover {
  background: var(--primary-color);
}

[data-theme="dark"] .theme-toggle {
  background: var(--primary-color);
}

[data-theme="dark"] .theme-toggle::before {
  left: 33px;
}

[data-theme="dark"] .theme-toggle .fa-sun {
  opacity: 0.4;
  color: #94a3b8;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  opacity: 1;
  color: #fbbf24;
}

/* Dark mode specific styles */
[data-theme="dark"] .about,
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0a0f1e 0%, #0f172a 100%);
  color: white;
}

[data-theme="dark"] .hero-title {
  color: #ffffff;
}

[data-theme="dark"] .hero-subtitle {
  color: #64748b;
}

[data-theme="dark"] .hero-description {
  color: #94a3b8;
}

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

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

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

[data-theme="dark"] .education-item,
[data-theme="dark"] .interests-list li,
[data-theme="dark"] .skill-category,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .accomplishment-card {
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-card,
[data-theme="dark"] .highlight-card {
  background: var(--card-bg);
}

[data-theme="dark"] .modal-content {
  background: var(--card-bg);
  color: var(--text-primary);
}

[data-theme="dark"] .contact-item {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .timeline-marker {
  border-color: var(--bg-color);
  box-shadow: 0 0 0 3px var(--border-color);
}

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

[data-theme="dark"] .language-item {
  background: var(--card-bg);
}

/* Update Notification for PWA */
.update-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.update-notification p {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.update-notification button {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  font-size: 0.9rem;
}

.update-notification button:hover {
  transform: scale(1.05);
  background: var(--light-bg);
}

.update-notification button:last-child {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.2rem;
  padding: 4px;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0.8;
}

.update-notification button:last-child:hover {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

@media (max-width: 640px) {
  .update-notification {
    bottom: 10px;
    right: 10px;
    left: 10px;
    flex-direction: column;
    text-align: center;
  }
}

/* ========== Blog Page Header ========== */
.blog-page-header {
  padding: 5rem 0 4rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.blog-page-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.blog-page-subtitle {
  font-size: 1.375rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.85;
}

.blog-page-content {
  padding: 0 0 5rem;
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
}

/* Responsive width based on viewport */
@media (min-width: 768px) {
  .blog-page-content {
    width: 85%;
  }
}

@media (min-width: 1024px) {
  .blog-page-content {
    width: 80%;
  }
}

@media (min-width: 1440px) {
  .blog-page-content {
    width: 75%;
  }
}

@media (min-width: 1920px) {
  .blog-page-content {
    width: 70%;
    max-width: 1800px;
  }
}

/* ========== Blog Overlay (iOS/Apple Style) - DEPRECATED ========== */
#blogOverlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  z-index: 10000 !important;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

#blogOverlay[hidden] {
  display: none !important;
}

#blogOverlay:not([hidden]) {
  display: flex !important;
}

[data-theme="dark"] #blogOverlay {
  background: rgba(15, 23, 42, 0.97);
}

#blogOverlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.blog-overlay-header {
  background: transparent;
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  flex-shrink: 0;
}

[data-theme="dark"] .blog-overlay-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-overlay-close {
  position: absolute;
  top: 1.75rem;
  right: 2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

[data-theme="dark"] .blog-overlay-close {
  background: rgba(255, 255, 255, 0.1);
}

.blog-overlay-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

[data-theme="dark"] .blog-overlay-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.blog-overlay-close:active {
  transform: scale(0.95);
}

.blog-overlay-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.blog-overlay-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.blog-overlay-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  -webkit-overflow-scrolling: touch;
}

/* Blog Controls */
.blog-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 2rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .blog-controls {
  background: rgba(30, 30, 30, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.blog-search {
  position: relative;
  width: 100%;
}

.blog-search i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.125rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

[data-theme="dark"] .blog-search i {
  color: rgba(255, 255, 255, 0.5);
}

.blog-search input:focus + i {
  color: var(--primary-color);
  opacity: 1;
}

.blog-search input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  font-size: 1.0625rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .blog-search input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.blog-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .blog-search input:focus {
  background: rgba(255, 255, 255, 0.1);
}

.blog-search input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Blog Filters */
.blog-filters {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.625rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.filter-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Blog Grid */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Blog Card - Glassmorphism */
.blog-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 2.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .blog-card {
  background: rgba(30, 30, 30, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.blog-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .blog-card:hover {
  background: rgba(30, 30, 30, 0.4);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card:hover .blog-card-title {
  color: var(--primary-color);
  transform: translateX(4px);
}

.blog-card:focus {
  outline: none;
  box-shadow:
    0 12px 48px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.blog-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.blog-category {
  background: transparent;
  color: var(--text-secondary);
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-date {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  white-space: nowrap;
  font-weight: 400;
  opacity: 0.7;
}

.blog-card-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1;
}

.blog-tag {
  background: transparent;
  color: var(--text-secondary);
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0.8;
}

.blog-tag::before {
  content: '#';
  margin-right: 2px;
}

.blog-read-time {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  font-weight: 400;
  opacity: 0.7;
}

.blog-read-time i {
  font-size: 0.8125rem;
  opacity: 0.6;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.no-results i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.25;
}

.no-results p {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

/* Blog Modal (for full post) */
.blog-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10001 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.blog-modal[hidden] {
  display: none !important;
}

.blog-modal-content {
  background: white;
  max-width: 1200px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  margin: 2rem auto;
}

[data-theme="dark"] .blog-modal-content {
  background: var(--card-bg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#blogModalBody {
  padding: 3rem;
}

#blogModalBody h1 {
  font-size: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

#blogModalBody h2 {
  font-size: clamp(1.375rem, 1.25rem + 0.75vw, 1.875rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

#blogModalBody h3 {
  font-size: clamp(1.125rem, 1.05rem + 0.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

#blogModalBody p {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

#blogModalBody .lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

#blogModalBody ul,
#blogModalBody ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

#blogModalBody li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

#blogModalBody blockquote {
  background: var(--light-bg);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
  border-radius: 8px;
}

#blogModalBody pre {
  background: var(--dark-bg);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

#blogModalBody code {
  background: var(--light-bg);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

#blogModalBody pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

#blogModalBody strong {
  font-weight: 600;
  color: var(--text-primary);
}

#blogModalBody .blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

#blogModalBody .blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#blogModalBody .blog-meta i {
  color: var(--primary-color);
}

/* Blog Table */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.blog-table th,
.blog-table td {
  padding: 1rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

.blog-table th {
  background: var(--light-bg);
  font-weight: 600;
  color: var(--text-primary);
}

.blog-table td {
  color: var(--text-primary);
}

.blog-table tr:hover {
  background: var(--light-bg);
}

/* Blog CTA */
.blog-cta {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2.5rem 0;
  border-radius: 12px;
}

.blog-cta p {
  margin: 0;
  font-size: 1.05rem;
}

/* ========== Table of Contents (TOC) ========== */

/* Blog layout with TOC */
.blog-with-toc {
  display: flex;
  gap: 3rem;
  position: relative;
  padding: 2rem;
}

/* TOC Sidebar - Desktop Only */
.blog-toc-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .blog-toc-sidebar {
  background: rgba(30, 30, 30, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* TOC Header */
.blog-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.blog-toc-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Language Toggle Button */
.toc-lang-toggle {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.toc-lang-toggle:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* TOC List */
.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc-item {
  margin-bottom: 0.5rem;
}

.blog-toc-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.4;
  border-radius: 8px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.blog-toc-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-color);
  transform: translateX(2px);
}

.blog-toc-link.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

/* Nested TOC items (h3) */
.blog-toc-item.level-3 {
  margin-left: 1rem;
}

.blog-toc-item.level-3 .blog-toc-link {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

/* Blog article content area */
.blog-article-content {
  flex: 1;
  min-width: 0;
  padding: 0 1rem;
}

/* Optimal reading width for text content */
.blog-article-content p,
.blog-article-content ul,
.blog-article-content ol,
.blog-article-content blockquote {
  max-width: 75ch; /* ~75 characters for optimal readability */
}

/* Allow full width for headings and other elements */
.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content hr,
.blog-article-content .blog-meta,
.blog-article-content .blog-cta,
.blog-article-content .blog-share {
  max-width: none;
}

/* Hide TOC on mobile/tablet */
@media (max-width: 1024px) {
  .blog-toc-sidebar {
    display: none;
  }

  .blog-with-toc {
    padding: 1rem;
  }

  .blog-article-content {
    padding: 0;
  }
}

/* Smooth scroll behavior for TOC links */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar for TOC */
.blog-toc-sidebar::-webkit-scrollbar {
  width: 6px;
}

.blog-toc-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.blog-toc-sidebar::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.3);
  border-radius: 3px;
}

.blog-toc-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.5);
}

/* Share Buttons */
.blog-share {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.blog-share h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.share-btn.linkedin {
  background: #0077b5;
}

.share-btn.linkedin:hover {
  background: #006399;
}

.share-btn.facebook {
  background: #1877F2;
}

.share-btn.facebook:hover {
  background: #166FE5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-page-header {
    padding: 3.5rem 0 2.5rem;
  }

  .blog-page-title {
    font-size: 2.5rem;
  }

  .blog-page-subtitle {
    font-size: 1.125rem;
  }

  .blog-controls {
    padding: 1.5rem;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .blog-search input {
    font-size: 1rem;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
  }

  .blog-search i {
    font-size: 1rem;
    left: 1rem;
  }

  .filter-btn {
    font-size: 0.875rem;
    padding: 0.5625rem 1.125rem;
  }

  .blog-grid {
    gap: 1.5rem;
  }

  .blog-card {
    padding: 2rem;
  }

  .blog-card-title {
    font-size: 1.5rem;
  }

  .blog-card-excerpt {
    font-size: 1rem;
  }

  .blog-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  #blogModalBody {
    padding: 2rem 1.25rem;
  }

  #blogModalBody h1 {
    font-size: 1.75rem;
  }

  #blogModalBody h2 {
    font-size: 1.375rem;
  }

  #blogModalBody h3 {
    font-size: 1.125rem;
  }

  #blogModalBody p,
  #blogModalBody li {
    font-size: 1rem;
  }

  .blog-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .share-buttons {
    flex-direction: column;
  }

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

  .blog-table {
    font-size: 0.875rem;
  }

  .blog-table th,
  .blog-table td {
    padding: 0.625rem 0.375rem;
  }
}

@media (max-width: 480px) {
  .blog-page-header {
    padding: 3rem 0 2rem;
  }

  .blog-page-title {
    font-size: 2.25rem;
  }

  .blog-page-subtitle {
    font-size: 1rem;
  }

  .blog-controls {
    padding: 1.25rem;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .blog-search input {
    font-size: 0.9375rem;
    padding: 0.75rem 0.875rem 0.75rem 2.5rem;
  }

  .blog-search i {
    left: 0.875rem;
  }

  .filter-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }

  .blog-filters {
    gap: 0.5rem;
  }

  .blog-grid {
    gap: 1.25rem;
  }

  .blog-card {
    padding: 1.5rem;
  }

  .blog-card-header {
    flex-wrap: wrap;
  }

  .blog-card-title {
    font-size: 1.375rem;
  }

  .blog-card-excerpt {
    font-size: 0.9375rem;
  }

  #blogModalBody {
    padding: 1.5rem 1rem;
  }

  #blogModalBody h1 {
    font-size: 1.5rem;
  }

  #blogModalBody h2 {
    font-size: 1.25rem;
  }
}
