/* Custom CSS for Noway's Portfolio */

:root {
  --primary: #0d6efd;
  --secondary: #6c757d;
  --success: #198754;
  --info: #0dcaf0;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #212529;
  --text-dim: #adb5bd;
}

/* Profile container */
.profile-glow {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  z-index: 10;
}

/* Ensure content sections are above planets */
.hero-section,
.container,
section {
  position: relative;
  z-index: 5;
}

/* Ensure navbar is above planets */
#navbar-container,
.navbar {
  position: relative;
  z-index: 15;
}

/* Ensure form elements are above planets */
.contact-form-card,
.contact-info-card,
.form-control,
.form-select,
.dropdown-menu,
.accordion,
.accordion-item {
  position: relative;
  z-index: 10;
}

/* Ensure dropdowns are above everything */
.form-select:focus,
.dropdown-menu {
  z-index: 20;
}

/* Contact page specific styles */
.contact-form-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  z-index: 15;
  overflow: visible;
}

/* Ensure form container is above planets */
.contact-form-card * {
  position: relative;
  z-index: 15;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

/* Form elements z-index */
.form-group {
  position: relative;
  z-index: 10;
}

.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  position: relative;
  z-index: 10;
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  z-index: 20;
}

/* Ensure option elements are visible */
.form-select option {
  background: #1a1a2e;
  color: #ffffff;
  padding: 8px 12px;
  z-index: 25;
  position: relative;
}

/* Bootstrap select dropdown override */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  z-index: 20;
}

/* Ensure dropdown is above everything when open */
.form-select:focus,
.form-select:active {
  z-index: 25;
}

/* Custom dropdown styling */
select.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Option hover effect */
.form-select option:hover {
  background: #0d6efd;
  color: #ffffff;
}

/* Force dropdown to be above everything */
.form-select:focus {
  z-index: 30 !important;
  position: relative;
}

/* Ensure dropdown options are visible */
.form-select option {
  z-index: 30 !important;
  position: relative;
  background: #1a1a2e !important;
  color: #ffffff !important;
}

/* Override any conflicting styles */
select.form-select:focus {
  z-index: 30 !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Ensure the entire form section is above planets */
.container-fluid {
  position: relative;
  z-index: 10;
}

/* 🎮 Game Styles */
.game-stats-bar {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 1rem 0;
  margin: 1rem 0;
  position: relative;
  z-index: 15;
}

.game-stats-bar .game-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

.game-stats-bar .stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  min-width: 120px;
  justify-content: center;
}

.game-stats-bar .stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-stats-bar .stat-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.game-stats-bar .stat-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Responsive Game Stats */
@media (max-width: 768px) {
  .game-stats-bar .game-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .game-stats-bar .stat-item {
    min-width: 100%;
    justify-content: space-between;
  }
}

.game-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  z-index: 10;
  text-align: center;
}

/* Game Control Panel */
.game-control-panel {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: fit-content;
}

.game-control-panel .btn {
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-control-panel .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.game-control-panel .btn:active {
  transform: translateY(0);
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card h6 {
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.info-card ul li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card ul li i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

#gameCanvas {
  border: 2px solid rgba(13, 110, 253, 0.3);
  border-radius: 10px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.2);
  max-width: 100%;
  height: auto;
  min-height: 600px;
}

.game-ui {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 15;
  pointer-events: none;
}

.game-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
}

.game-controls {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

.control-info h5 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #ffffff;
}

.control-item i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.game-buttons {
  margin-top: 2rem;
}

.game-buttons .btn {
  margin: 0.5rem;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.game-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-features {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.feature-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

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

.feature-icon {
  font-size: 3rem;
  color: #0d6efd;
  margin-bottom: 1rem;
}

.feature-card h5 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #adb5bd;
  margin: 0;
}

/* Game gradient text */
.text-gradient-game {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Accordion z-index */
.accordion {
  position: relative;
  z-index: 10;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
}

.profile-glow:hover {
  transform: scale(1.05);
}

/* 🌍 Planets Theme */
.planets-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.planet {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: planet-float 20s linear infinite;
}

.planet-1 {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e, #ffb3b3);
  top: 10%;
  left: 10%;
  animation: planet-drift 25s linear infinite;
  box-shadow: 
    0 0 20px rgba(255, 107, 107, 0.4),
    inset -10px -10px 20px rgba(0, 0, 0, 0.2);
}

.planet-2 {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #4ecdc4, #6dd5d0, #8ee0dc);
  top: 20%;
  right: 15%;
  animation: planet-orbit 30s linear infinite;
  animation-delay: -5s;
  box-shadow: 
    0 0 15px rgba(78, 205, 196, 0.4),
    inset -8px -8px 15px rgba(0, 0, 0, 0.2);
}

.planet-3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #45b7d1, #6bc5d8, #8dd3e0);
  bottom: 20%;
  left: 20%;
  animation: planet-drift 35s linear infinite;
  animation-delay: -10s;
  box-shadow: 
    0 0 25px rgba(69, 183, 209, 0.4),
    inset -12px -12px 25px rgba(0, 0, 0, 0.2);
}

.planet-4 {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, #f9ca24, #fbd437, #fde68a);
  top: 60%;
  right: 25%;
  animation: planet-orbit 28s linear infinite;
  animation-delay: -15s;
  box-shadow: 
    0 0 18px rgba(249, 202, 36, 0.4),
    inset -9px -9px 18px rgba(0, 0, 0, 0.2);
}

.planet-5 {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #6c5ce7, #8b7ed8, #a29bfe);
  top: 40%;
  left: 5%;
  animation: planet-float 22s linear infinite;
  animation-delay: -8s;
  box-shadow: 
    0 0 12px rgba(108, 92, 231, 0.4),
    inset -6px -6px 12px rgba(0, 0, 0, 0.2);
}

.planet-6 {
  width: 90px;
  height: 90px;
  background: linear-gradient(45deg, #fd79a8, #ff9ff3, #ffb3d9);
  bottom: 10%;
  right: 10%;
  animation: planet-orbit 32s linear infinite;
  animation-delay: -12s;
  box-shadow: 
    0 0 22px rgba(253, 121, 168, 0.4),
    inset -11px -11px 22px rgba(0, 0, 0, 0.2);
}

/* Planet floating animation */
@keyframes planet-float {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  25% {
    transform: translate(50px, -30px) rotate(90deg);
  }
  50% {
    transform: translate(100px, -10px) rotate(180deg);
  }
  75% {
    transform: translate(30px, -50px) rotate(270deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(360deg);
  }
}

/* Planet continuous movement */
@keyframes planet-drift {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  25% {
    transform: translate(200px, -100px) rotate(90deg);
  }
  50% {
    transform: translate(400px, 50px) rotate(180deg);
  }
  75% {
    transform: translate(100px, -200px) rotate(270deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(360deg);
  }
}

/* Planet orbit animation */
@keyframes planet-orbit {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  33% {
    transform: translate(300px, -150px) rotate(120deg);
  }
  66% {
    transform: translate(-200px, -300px) rotate(240deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(360deg);
  }
}

/* Planet rings */
.planet::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 20%, 
    rgba(255, 255, 255, 0.6) 50%, 
    rgba(255, 255, 255, 0.3) 80%, 
    transparent 100%
  );
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 50%;
  opacity: 0.4;
}

.planet-2::before {
  width: 140%;
  height: 3px;
  opacity: 0.3;
}

.planet-3::before {
  width: 130%;
  height: 5px;
  opacity: 0.5;
}

/* Planet moons */
.planet::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  top: -15px;
  right: -15px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  animation: moon-orbit 8s linear infinite;
}

@keyframes moon-orbit {
  0% {
    transform: rotate(0deg) translateX(20px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(20px) rotate(-360deg);
  }
}

/* Dark theme variables */
[data-theme="dark"] {
  --bs-body-bg: #0a0a0a;
  --bs-body-color: #ffffff;
  --bs-secondary: #6c757d;
  --bs-light: #1a1a1a;
  --bs-dark: #ffffff;
  --text-dim: #b8c5d1;
}

/* Body and background */
body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-smooth: always;
}

[data-theme="light"] {
  --text-dim: #6c757d;
}

[data-theme="light"] body {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
  color: #212529;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-smooth: always;
}

/* Global text rendering improvements */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Specific improvements for blog content */
.blog-post-content,
.post-body,
.blog-post-content p,
.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6,
.blog-post-content li,
.blog-post-content ul,
.blog-post-content ol {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  line-height: 1.6;
}

/* Improve contrast for better readability */
.blog-post-content p {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .blog-post-content p {
  color: #212529;
  text-shadow: none;
}

/* Enhanced text clarity for all content */
.hero-section p,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-weight: 400;
}

/* Improve list readability */
.blog-post-content ul,
.blog-post-content ol {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.blog-post-content li {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

[data-theme="light"] .blog-post-content li {
  color: #212529;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
  color: #ffffff;
  font-weight: 600;
  line-height: 1.4;
}

[data-theme="light"] .blog-post-content h1,
[data-theme="light"] .blog-post-content h2,
[data-theme="light"] .blog-post-content h3,
[data-theme="light"] .blog-post-content h4,
[data-theme="light"] .blog-post-content h5,
[data-theme="light"] .blog-post-content h6 {
  color: #212529;
}

/* Enhanced Starfield canvas - nhẹ nhàng và tinh tế */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0a0a0a 100%);
  animation: cosmicPulse 30s ease-in-out infinite; /* Chậm hơn */
  opacity: 0.8; /* Nhẹ nhàng hơn */
  visibility: visible;
  display: block;
}

/* Đảm bảo canvas hiển thị */
canvas#starfield {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Cosmic background animation - nhẹ nhàng */
@keyframes cosmicPulse {
  0%, 100% {
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0a0a0a 100%);
  }
  50% {
    background: radial-gradient(ellipse at center, #1f1f2e 0%, #1a1a2e 50%, #0f0f0f 100%);
  }
}

/* Enhanced body background for cosmic theme */
body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Cosmic overlay effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(240, 147, 251, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  animation: cosmicShift 30s ease-in-out infinite;
}

@keyframes cosmicShift {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1) rotate(180deg);
  }
}

/* Cosmic glow effects for cards */
.blog-card, .certificate-card, .language-card, .about-card {
  position: relative;
  overflow: hidden;
}

.blog-card::before, .certificate-card::before, .language-card::before, .about-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.blog-card:hover::before, .certificate-card:hover::before, .language-card:hover::before, .about-card:hover::before {
  opacity: 1;
  animation: cosmicGlow 2s ease-in-out infinite;
}

@keyframes cosmicGlow {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.1) rotate(180deg);
    opacity: 0.3;
  }
}

/* Enhanced text gradients for cosmic theme */
.text-gradient, .text-gradient-blog, .text-gradient-lang, .text-gradient-cert, .text-gradient-contact {
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: cosmicGradient 8s ease-in-out infinite;
}

@keyframes cosmicGradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Cosmic particle effects */
.cosmic-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.cosmic-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) translateX(10px) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateY(10vh) translateX(-10px) scale(1);
  }
  100% {
    transform: translateY(0) translateX(0) scale(0);
    opacity: 0;
  }
}

/* Navbar */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.1) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.1) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Navbar brand gradient hover */
.navbar-brand {
  position: relative;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShiftBlog 2s ease-in-out infinite;
}

/* Navbar links gradient hover */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px 12px !important;
}

.nav-link:hover {
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShiftBlog 2s ease-in-out infinite;
  transform: translateY(-2px);
}

/* GitHub button gradient hover */
.btn-outline-primary {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-outline-primary:hover {
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
  background-size: 400% 400%;
  border: none;
  animation: gradientShiftBlog 2s ease-in-out infinite;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary:hover i,
.btn-outline-primary:hover {
  color: white !important;
}

/* Theme toggle button gradient hover */
#theme-toggle {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

#theme-toggle:hover {
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
  background-size: 400% 400%;
  border: none;
  animation: gradientShiftBlog 2s ease-in-out infinite;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#theme-toggle:hover i {
  color: white !important;
}

/* Profile glow effect */
.profile-glow {
  position: relative;
  width: 320px;
  height: 320px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-glow::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(45deg, var(--primary), #ff6b6b, #4ecdc4, var(--primary));
  border-radius: 50%;
  z-index: -1;
  animation: rotate 3s linear infinite;
  opacity: 0.7;
}

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

/* Avatar switch glow effect - REMOVED */
/* Avatar switching functionality has been disabled */

/* Avatar transition effects */
#profileImage {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
}

#profileImage:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Double-click hint */
#profileImage::after {
  content: '👆 Double-click to change';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

#profileImage:hover::after {
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #profileImage::after {
    font-size: 0.7rem;
    bottom: -25px;
    padding: 3px 8px;
  }
}

/* Text gradient with animation */
.text-gradient {
  position: relative;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  font-weight: 800;
  display: inline-block;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Glowing text effect */
.text-gradient::before {
  content: "Noway";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  filter: blur(2px);
  opacity: 0.6;
  z-index: -1;
}

/* Additional glow effect */
.text-gradient::after {
  content: "Noway";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  filter: blur(4px);
  opacity: 0.3;
  z-index: -2;
}

/* Blog title gradient with animation */
.text-gradient-blog {
  position: relative;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShiftBlog 4s ease-in-out infinite;
  font-weight: 800;
  display: inline-block;
  font-size: 2.5rem;
}

@keyframes gradientShiftBlog {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Blog title glow effect */
.text-gradient-blog::before {
  content: "Blog cá nhân";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShiftBlog 4s ease-in-out infinite;
  filter: blur(3px);
  opacity: 0.7;
  z-index: -1;
}

/* Additional blog glow effect */
.text-gradient-blog::after {
  content: "Blog cá nhân";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShiftBlog 4s ease-in-out infinite;
  filter: blur(6px);
  opacity: 0.4;
  z-index: -2;
}

/* Language section */
.text-gradient-lang {
  position: relative;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  font-weight: 800;
  display: inline-block;
  font-size: 2.5rem;
}

/* Certificate page gradient text */
.text-gradient-cert {
  position: relative;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  font-weight: 800;
  display: inline-block;
  font-size: 2.5rem;
}

/* Language cards */
.language-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

[data-theme="light"] .language-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.language-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .language-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Language card specific styles */
.english-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
  z-index: -1;
}

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

.japanese-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(245, 158, 11, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
  z-index: -1;
}

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

/* Language header */
.language-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.flag-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.language-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}

/* Proficiency level */
.proficiency-level {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.level-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.level-bar {
  width: 200px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .level-bar {
  background: rgba(0, 0, 0, 0.1);
}

.level-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a);
  border-radius: 10px;
  transition: width 1.5s ease-in-out;
  position: relative;
  width: 0%; /* Start at 0% */
}

.level-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.level-percent {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

/* Language content */
.language-content {
  position: relative;
  z-index: 1;
}

.certifications, .skills, .experience {
  margin-bottom: 1.5rem;
}

.certifications h5, .skills h5, .experience h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .cert-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.cert-year {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Skill tags */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

[data-theme="light"] .skill-tag {
  background: rgba(102, 126, 234, 0.1);
  color: #4f46e5;
}

/* Experience text */
.experience p {
  line-height: 1.6;
  margin-bottom: 0;
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .back-to-top-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.1);
  color: #333;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.back-to-top-btn:hover {
  transform: translateY(-5px) scale(1.1);
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

[data-theme="light"] .back-to-top-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}

.back-to-top-btn i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.back-to-top-btn:hover i {
  transform: translateY(-2px);
}

/* Progress Ring */
.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.progress-ring-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
  display: block;
}

.progress-ring-circle {
  stroke-dasharray: 157; /* 2 * π * 25 */
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 0.3s ease;
}

.progress-ring-fill {
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(102, 126, 234, 0.6));
}

/* Responsive */
@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .progress-ring-svg { width: 100%; height: 100%; }
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 40, 0.9));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .footer {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05), rgba(240, 147, 251, 0.05));
  z-index: 0;
}

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

/* Footer Brand */
.footer-brand h5 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.text-gradient-footer {
  position: relative;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  font-weight: 800;
  display: inline-block;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-link:hover {
  color: var(--text);
  transform: translateX(5px);
}

.footer-link::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.footer-link:hover::before {
  width: 10px;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* Social Links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .social-link {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-link i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.social-link span {
  font-weight: 600;
  color: var(--text);
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-link:hover i {
  transform: scale(1.2);
}

/* Social Link Colors */
.social-link.github:hover {
  background: linear-gradient(135deg, rgba(36, 41, 46, 0.2), rgba(36, 41, 46, 0.1));
  border-color: rgba(36, 41, 46, 0.3);
}

.social-link.facebook:hover {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.2), rgba(24, 119, 242, 0.1));
  border-color: rgba(24, 119, 242, 0.3);
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.2), rgba(225, 48, 108, 0.1));
  border-color: rgba(225, 48, 108, 0.3);
}

/* Footer Divider */
.footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 2rem 0 1.5rem;
}

[data-theme="light"] .footer-divider {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
}

/* Copyright */
.footer .row:last-child {
  margin-top: 1rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1.5rem;
  }
  
  .footer-brand h5 {
    font-size: 1.3rem;
  }
  
  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .social-link {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
}

/* Counter Animation Styles */
.counter {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.counter.animated {
  animation: counterPulse 0.6s ease-out;
}

@keyframes counterPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.counter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.counter.animated::before {
  left: 100%;
}

/* Enhanced stat item animation */
.stat-item {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-item:hover .counter {
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* Counter number styling */
.counter {
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

[data-theme="light"] .counter {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Typewriter Effect */
.typewriter-text {
  position: relative;
  overflow: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-right: 2px solid transparent;
  animation: typewriterBlink 1s infinite;
  display: inline-block;
  max-width: 100%;
}

.typewriter-text.typing {
  border-right-color: var(--text);
  animation: typewriterBlink 1s infinite;
}

.typewriter-text.completed {
  border-right: none;
  animation: none;
}

@keyframes typewriterBlink {
  0%, 50% { border-right-color: var(--text); }
  51%, 100% { border-right-color: transparent; }
}

/* Typewriter cursor animation */
.typewriter-text::after {
  content: '|';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--text);
  animation: typewriterCursor 1s infinite;
  opacity: 0;
}

.typewriter-text.typing::after {
  opacity: 1;
}

.typewriter-text.completed::after {
  opacity: 0;
}

@keyframes typewriterCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Enhanced typewriter for gradient text */
.text-gradient.typewriter-text,
.text-gradient-blog.typewriter-text,
.text-gradient-lang.typewriter-text,
.text-gradient-cert.typewriter-text {
  border-right-color: transparent;
}

.text-gradient.typewriter-text.typing,
.text-gradient-blog.typewriter-text.typing,
.text-gradient-lang.typewriter-text.typing,
.text-gradient-cert.typewriter-text.typing {
  border-right-color: #667eea;
}

/* Typewriter speed variations */
.typewriter-text.slow {
  animation-duration: 0.1s;
}

.typewriter-text.medium {
  animation-duration: 0.05s;
}

.typewriter-text.fast {
  animation-duration: 0.03s;
}

/* Responsive typewriter text */
@media (max-width: 768px) {
  .typewriter-text {
    white-space: pre-wrap;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.4;
  }
  
  .typewriter-text.lead {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .typewriter-text h1,
  .typewriter-text h2,
  .typewriter-text h3 {
    line-height: 1.2;
  }
}

/* Ensure proper text wrapping for long content */
.typewriter-text p,
.typewriter-text .lead {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.6;
}

/* Force text wrapping for typewriter elements */
.typewriter-text {
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  max-width: 100% !important;
  display: block !important;
}

/* Specific handling for different text types */
.typewriter-text.lead {
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.6 !important;
}

/* Mobile specific adjustments */
@media (max-width: 576px) {
  .typewriter-text {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }
  
  .typewriter-text.lead {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
}

/* Blog Slider Styles */
.blog-slider-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.blog-slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 0;
}

.blog-slide {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 15px;
  box-sizing: border-box;
}

.blog-slide .row {
  margin: 0;
}

.blog-slide .col-md-4 {
  padding: 0 10px;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.slider-btn {
  background: rgba(102, 126, 234, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: all;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  backdrop-filter: blur(10px);
}

.slider-btn:hover {
  background: rgba(102, 126, 234, 1);
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.slider-btn:active {
  transform: scale(0.95);
}

.prev-btn {
  margin-left: -25px;
}

.next-btn {
  margin-right: -25px;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.slider-dot:hover {
  background: rgba(102, 126, 234, 0.6);
  transform: scale(1.2);
}

.slider-dot.active {
  background: linear-gradient(45deg, #667eea, #764ba2);
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

/* Auto-slide indicator */
.slider-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider-dot.active::after {
  opacity: 1;
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.7; }
}

/* Responsive Slider */
@media (max-width: 768px) {
  .blog-slider-container {
    margin: 0 -15px;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .prev-btn {
    margin-left: -20px;
  }
  
  .next-btn {
    margin-right: -20px;
  }
  
  .slider-dots {
    margin-top: 1.5rem;
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 576px) {
  .blog-slide .col-md-4 {
    padding: 0 5px;
  }
  
  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .prev-btn {
    margin-left: -17px;
  }
  
  .next-btn {
    margin-right: -17px;
  }
}

/* Touch/Swipe Support */
.blog-slider-wrapper {
  touch-action: pan-y;
  user-select: none;
}

.blog-slider {
  cursor: grab;
}

.blog-slider:active {
  cursor: grabbing;
}

/* Fade effect for edges */
.blog-slider-wrapper::before,
.blog-slider-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: 5;
  pointer-events: none;
}

.blog-slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
}

.blog-slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.8), transparent);
}

@media (max-width: 768px) {
  .blog-slider-wrapper::before,
  .blog-slider-wrapper::after {
    width: 30px;
  }
}

/* Mobile polish for blog slider */
@media (max-width: 768px) {
  .blog-slider img { width: 100%; height: auto; object-fit: cover; }
  .blog-slider-wrapper::before,
  .blog-slider-wrapper::after { display: none; }
}

@media (max-width: 576px) {
  .post-card { padding: 1rem; }
  .post-thumbnail img { width: 100%; height: auto; }
}

/* Blog Post Styles */
.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.blog-post-meta {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Enhanced contrast for blog post meta in dark mode */
[data-theme="dark"] .blog-post-meta {
  color: #c8d4e0 !important;
  font-weight: 500;
}

[data-theme="light"] .blog-post-meta {
  color: #495057 !important;
  font-weight: 500;
}

/* Enhanced contrast for other dim text elements */
[data-theme="dark"] .cert-year,
[data-theme="dark"] .footer-link,
[data-theme="dark"] .recent-post-excerpt {
  color: #b8c5d1 !important;
}

[data-theme="light"] .cert-year,
[data-theme="light"] .footer-link,
[data-theme="light"] .recent-post-excerpt {
  color: #6c757d !important;
}

/* Enhanced contrast for blog post date in slider */
[data-theme="dark"] .post-card .text-muted {
  color: #b8c5d1 !important;
  font-weight: 500;
}

[data-theme="light"] .post-card .text-muted {
  color: #6c757d !important;
  font-weight: 500;
}

/* Enhanced contrast for blog slider elements */
[data-theme="dark"] .post-card .text-light {
  color: #ffffff !important;
}

[data-theme="dark"] .post-card .text-primary {
  color: #4dabf7 !important;
}

[data-theme="dark"] .post-card .badge.bg-secondary {
  background-color: #495057 !important;
  color: #ffffff !important;
}

[data-theme="light"] .post-card .text-light {
  color: #212529 !important;
}

[data-theme="light"] .post-card .text-primary {
  color: #0d6efd !important;
}

.blog-post-image {
  margin: 2rem 0;
}

.blog-post-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-post-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .blog-post-content {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.post-body {
  line-height: 1.8;
  font-size: 1.1rem;
}

.post-body p {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.post-body .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2rem;
}

.post-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.5rem 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.post-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 1rem 0;
}

.post-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.post-list li {
  margin-bottom: 0.8rem;
  color: var(--text);
}

.code-block {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

[data-theme="light"] .code-block {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.code-block pre {
  margin: 0;
  color: #e6e6e6;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

[data-theme="light"] .code-block pre {
  color: #2d3748;
}

.code-block code {
  color: inherit;
  background: none;
  padding: 0;
}

/* Copy button for code blocks */
.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(102, 126, 234, 0.8);
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.code-copy-btn:hover {
  background: rgba(102, 126, 234, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.code-copy-btn:active {
  transform: translateY(0);
}

.code-copy-btn.copied {
  background: rgba(34, 197, 94, 0.8);
}

.code-copy-btn.copied:hover {
  background: rgba(34, 197, 94, 1);
}

.code-copy-btn i {
  font-size: 0.9rem;
}

/* Tooltip for copy button */
.code-copy-btn::before {
  content: 'Click to copy code';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.code-copy-btn:hover::before {
  opacity: 1;
}

/* Animation for copy success */
@keyframes copySuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.code-copy-btn.copied {
  animation: copySuccess 0.3s ease;
}

/* Social Sharing */
.social-sharing {
  margin-top: 2rem;
}

/* Contact Page Styles */
.text-gradient-contact {
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

[data-theme="light"] .contact-form-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-form-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-form-title {
  color: #667eea;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

[data-theme="light"] .contact-form .form-label {
  color: #212529;
}

.contact-form .form-control,
.contact-form .form-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

[data-theme="light"] .contact-form .form-control,
[data-theme="light"] .contact-form .form-select {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #212529;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  color: #ffffff;
}

[data-theme="light"] .contact-form .form-control:focus,
[data-theme="light"] .contact-form .form-select:focus {
  background: rgba(255, 255, 255, 0.9);
  color: #212529;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .contact-form .form-control::placeholder {
  color: rgba(33, 37, 41, 0.6);
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  height: fit-content;
}

[data-theme="light"] .contact-info-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-info-title {
  color: #667eea;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-info-list {
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

[data-theme="light"] .contact-info-item {
  background: rgba(0, 0, 0, 0.05);
}

.contact-info-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

[data-theme="light"] .contact-info-item:hover {
  background: rgba(0, 0, 0, 0.1);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

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

.contact-info-content h6 {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info-content p {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

[data-theme="light"] .contact-info-content p {
  color: #212529;
}

.social-links-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

[data-theme="light"] .social-links-section {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-links-title {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 1rem;
}

.social-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

[data-theme="light"] .social-link {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #212529;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  color: #ffffff;
}

[data-theme="light"] .social-link:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #212529;
}

.social-link.github:hover {
  background: rgba(36, 41, 46, 0.8);
  color: #ffffff;
}

.social-link.facebook:hover {
  background: rgba(24, 119, 242, 0.8);
  color: #ffffff;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
}

.social-link.linkedin:hover {
  background: rgba(0, 119, 181, 0.8);
  color: #ffffff;
}

/* FAQ Section */
.faq-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
}

[data-theme="light"] .faq-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-title {
  color: #667eea;
  font-weight: 700;
  margin-bottom: 2rem;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

[data-theme="light"] .accordion-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-button {
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 1.25rem;
}

[data-theme="light"] .accordion-button {
  color: #212529;
}

.accordion-button:not(.collapsed) {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.accordion-body {
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  padding: 1.25rem;
  line-height: 1.6;
}

[data-theme="light"] .accordion-body {
  background: rgba(0, 0, 0, 0.02);
  color: #212529;
}

/* Form validation styles */
.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Email reveal styles */
.email-hidden {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  user-select: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-theme="light"] .email-hidden {
  color: rgba(33, 37, 41, 0.6);
}

.email-hidden:hover {
  color: rgba(102, 126, 234, 0.8);
}

.email-revealed {
  color: #ffffff;
  font-weight: 600;
  user-select: text;
  cursor: text;
  transition: all 0.3s ease;
}

[data-theme="light"] .email-revealed {
  color: #212529;
}

.email-revealed:hover {
  color: #667eea;
}

/* Contact form layout improvements */
.contact-form-card {
  min-height: 500px;
  max-width: 100%;
  padding: 2.5rem;
  margin: 0 1rem;
}

/* Full width layout for large screens */
@media (min-width: 1400px) {
  .contact-form-card {
    padding: 3rem;
    margin: 0 1.5rem;
  }
  
  .contact-info-card {
    padding: 3rem;
    margin: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .contact-form-card {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .contact-form-card {
    padding: 1.5rem;
  }
}

.contact-form .form-control,
.contact-form .form-select {
  min-height: 50px;
  font-size: 1rem;
  padding: 15px 20px;
}

.contact-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn {
  min-height: 50px;
  font-size: 1.1rem;
  padding: 12px 30px;
}

/* Form field spacing */
.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .row.g-3 {
  gap: 1rem;
}

/* Contact info card improvements */
.contact-info-card {
  min-height: 500px;
  max-height: none;
  overflow-y: visible;
  padding: 2.5rem;
  margin: 0 1rem;
}

/* Large screen optimizations */
@media (min-width: 1200px) {
  .contact-form .form-control,
  .contact-form .form-select {
    min-height: 55px;
    font-size: 1.1rem;
    padding: 18px 24px;
  }
  
  .contact-form textarea.form-control {
    min-height: 140px;
  }
  
  .contact-form .btn {
    min-height: 55px;
    font-size: 1.2rem;
    padding: 15px 35px;
  }
}

@media (max-width: 768px) {
  .contact-info-card {
    padding: 1.5rem;
    min-height: auto;
    max-height: none;
  }
}

.contact-info-item {
  min-height: 90px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Enhanced contact info for larger space */
.contact-info-content h6 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.contact-info-content p {
  font-size: 1rem;
  line-height: 1.5;
}

.contact-info-content .btn {
  margin-top: 0.5rem;
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Ultra-wide screen optimizations */
@media (min-width: 1600px) {
  .contact-form-card {
    padding: 3.5rem;
    margin: 0 2rem;
  }
  
  .contact-info-card {
    padding: 3.5rem;
    margin: 0 2rem;
  }
  
  .contact-form .form-control,
  .contact-form .form-select {
    min-height: 60px;
    font-size: 1.15rem;
    padding: 20px 28px;
  }
  
  .contact-form textarea.form-control {
    min-height: 160px;
  }
  
  .contact-form .btn {
    min-height: 60px;
    font-size: 1.25rem;
    padding: 18px 40px;
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .contact-form-card,
  .contact-info-card {
    min-height: auto;
    margin: 0 0.5rem;
  }
}

@media (max-width: 768px) {
  .contact-form-card,
  .contact-info-card,
  .faq-section {
    padding: 1.5rem;
    min-height: auto;
  }
  
  .contact-form .form-control,
  .contact-form .form-select {
    min-height: 45px;
    font-size: 0.95rem;
    padding: 12px 16px;
  }
  
  .contact-form textarea.form-control {
    min-height: 100px;
  }
  
  .contact-form .btn {
    min-height: 45px;
    font-size: 1rem;
    padding: 10px 25px;
  }
  
  .social-links-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info-item {
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }
  
  .contact-info-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .contact-form-card,
  .contact-info-card {
    padding: 1rem;
  }
  
  .contact-form .form-control,
  .contact-form .form-select {
    min-height: 40px;
    font-size: 0.9rem;
    padding: 10px 14px;
  }
  
  .contact-form textarea.form-control {
    min-height: 80px;
  }
  
  .contact-form .btn {
    min-height: 40px;
    font-size: 0.95rem;
    padding: 8px 20px;
  }
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-share-btn.facebook {
  background: #1877f2;
  color: white;
}

.social-share-btn.twitter {
  background: #1da1f2;
  color: white;
}

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

.social-share-btn.link {
  background: var(--text-dim);
  color: white;
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: white;
}

/* Recent Posts */
.recent-posts-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.recent-post-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

[data-theme="light"] .recent-post-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.recent-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.recent-post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recent-post-content {
  padding: 1.5rem;
}

.recent-post-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.recent-post-excerpt {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

/* Responsive Blog Post */
@media (max-width: 768px) {
  .blog-post-title {
    font-size: 2rem;
  }
  
  .blog-post-content {
    padding: 1.5rem;
  }
  
  .post-body {
    font-size: 1rem;
  }
  
  .post-section-title {
    font-size: 1.5rem;
  }
  
  .blog-post-image img {
    height: 250px;
  }
}

/* Hero section */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* Expertise areas */
.expertise-areas {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .expertise-areas {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.expertise-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

[data-theme="light"] .expertise-item {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.expertise-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .expertise-item:hover {
  background: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.expertise-item h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.expertise-item p {
  line-height: 1.5;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .expertise-item p {
  color: rgba(0, 0, 0, 0.8);
}

/* Passion section */
.passion-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .passion-section {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.passion-section h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.passion-section p {
  line-height: 1.6;
  margin-bottom: 0;
}

/* Post cards */
.post-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  color: inherit;
  height: 100%;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

[data-theme="light"] .post-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #212529;
  backdrop-filter: blur(20px);
}

.post-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: inherit;
  border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .post-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.5);
}

/* Post card glow effect */
.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1), rgba(240, 147, 251, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
  z-index: -1;
}

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

/* Post thumbnail */
.post-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.post-thumbnail img {
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(13, 110, 253, 0.1), rgba(255, 107, 107, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card:hover .post-thumbnail::after {
  opacity: 1;
}

/* Read more button */
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 400% 400%;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  animation: gradientShiftBlog 3s ease-in-out infinite;
}

.btn-read-more:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
  text-decoration: none;
  color: white;
}

.btn-read-more i {
  transition: transform 0.3s ease;
}

.btn-read-more:hover i {
  transform: translateX(4px);
}

/* Button glow effect */
.btn-read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-read-more:hover::before {
  left: 100%;
}

/* Badge improvements */
.badge {
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

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

/* Post title improvements */
.post-card h5 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.post-card:hover h5 {
  color: #667eea !important;
}

/* Post excerpt improvements */
.post-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[data-theme="light"] .post-card p {
  color: rgba(33, 37, 41, 0.9);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.footer strong {
  color: #ffffff !important;
  font-weight: 600;
}

.footer .text-muted {
  color: #e9ecef !important;
}

[data-theme="light"] .footer {
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  color: #212529 !important;
  text-shadow: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer strong {
  color: #212529 !important;
}

[data-theme="light"] .footer .text-muted {
  color: #6c757d !important;
}

/* Enhanced light mode contrast */
[data-theme="light"] .language-card .language-title {
  color: #212529 !important;
  font-weight: 700;
}

[data-theme="light"] .language-card .level-text {
  color: #495057 !important;
  font-weight: 600;
}

[data-theme="light"] .language-card .level-percent {
  color: #495057 !important;
  font-weight: 600;
}

[data-theme="light"] .language-card h5 {
  color: #212529 !important;
  font-weight: 600;
}

[data-theme="light"] .language-card p {
  color: #495057 !important;
  line-height: 1.6;
}

[data-theme="light"] .language-card .skill-tag {
  background: rgba(102, 126, 234, 0.1) !important;
  color: #495057 !important;
  border: 1px solid rgba(102, 126, 234, 0.2) !important;
}

[data-theme="light"] .language-card .cert-name {
  color: #212529 !important;
  font-weight: 600;
}

[data-theme="light"] .language-card .cert-year {
  color: #6c757d !important;
  font-weight: 500;
}

[data-theme="light"] .language-card .progress {
  background: rgba(0, 0, 0, 0.1) !important;
  height: 8px !important;
}

[data-theme="light"] .language-card .progress-bar {
  background: linear-gradient(90deg, #28a745, #20c997) !important;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3) !important;
}

/* Enhanced footer light mode */
[data-theme="light"] .footer-brand h5 {
  color: #212529 !important;
  font-weight: 700;
}

[data-theme="light"] .footer-brand p {
  color: #495057 !important;
  line-height: 1.6;
}

[data-theme="light"] .footer-links h6 {
  color: #212529 !important;
  font-weight: 600;
}

[data-theme="light"] .footer-link {
  color: #495057 !important;
}

[data-theme="light"] .footer-link:hover {
  color: #212529 !important;
}

[data-theme="light"] .contact-item {
  color: #495057 !important;
}

[data-theme="light"] .contact-item i {
  color: #667eea !important;
}

[data-theme="light"] .social-link {
  background: rgba(102, 126, 234, 0.1) !important;
  color: #495057 !important;
  border: 1px solid rgba(102, 126, 234, 0.2) !important;
}

[data-theme="light"] .social-link:hover {
  background: rgba(102, 126, 234, 0.2) !important;
  color: #212529 !important;
  border-color: rgba(102, 126, 234, 0.3) !important;
}

/* Enhanced footer links and contact info for light mode */
[data-theme="light"] .footer-links h6 {
  color: #212529 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

[data-theme="light"] .footer-link {
  color: #495057 !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

[data-theme="light"] .footer-link:hover {
  color: #212529 !important;
  font-weight: 600 !important;
  transform: translateX(5px) !important;
}

[data-theme="light"] .contact-info h6 {
  color: #212529 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

[data-theme="light"] .contact-item {
  color: #495057 !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

[data-theme="light"] .contact-item:hover {
  color: #212529 !important;
  transform: translateX(3px) !important;
}

[data-theme="light"] .contact-item i {
  color: #667eea !important;
  font-size: 1.1rem !important;
  margin-right: 0.75rem !important;
}

/* Specific icon colors for better visibility */
[data-theme="light"] .contact-item .bi-envelope-fill {
  color: #007bff !important;
}

[data-theme="light"] .contact-item .bi-geo-alt-fill {
  color: #28a745 !important;
}

[data-theme="light"] .contact-item .bi-code-slash {
  color: #ffc107 !important;
}

/* Enhanced footer section backgrounds */
[data-theme="light"] .footer .col-lg-3 {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

[data-theme="light"] .footer .col-lg-3:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced social links section for light mode */
[data-theme="light"] .social-links h6 {
  color: #212529 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

[data-theme="light"] .social-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

[data-theme="light"] .social-link {
  background: rgba(102, 126, 234, 0.1) !important;
  color: #495057 !important;
  border: 1px solid rgba(102, 126, 234, 0.2) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
}

[data-theme="light"] .social-link:hover {
  background: rgba(102, 126, 234, 0.2) !important;
  color: #212529 !important;
  border-color: rgba(102, 126, 234, 0.3) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2) !important;
}

[data-theme="light"] .social-link i {
  font-size: 1.1rem !important;
  color: #667eea !important;
}

/* Enhanced copyright section for light mode */
[data-theme="light"] .footer .text-muted {
  color: #6c757d !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
}

[data-theme="light"] .footer strong {
  color: #212529 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .footer .bi-cup-hot {
  color: #ffc107 !important;
}

[data-theme="light"] .footer .bi-heart-fill {
  color: #dc3545 !important;
}

/* Enhanced footer section headings for light mode */
[data-theme="light"] .footer h6.fw-bold.text-light {
  color: #212529 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

[data-theme="light"] .footer .footer-links h6 {
  color: #212529 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

[data-theme="light"] .footer .contact-info h6 {
  color: #212529 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

[data-theme="light"] .footer .social-links h6 {
  color: #212529 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

/* Enhanced contact info text for light mode */
[data-theme="light"] .footer .contact-item span.text-light {
  color: #495057 !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
}

[data-theme="light"] .footer .contact-item {
  color: #495057 !important;
  margin-bottom: 0.75rem !important;
  display: flex !important;
  align-items: center !important;
}

[data-theme="light"] .footer .contact-item i {
  font-size: 1.1rem !important;
  margin-right: 0.5rem !important;
}

/* Enhanced social links for light mode */
[data-theme="light"] .footer .social-link {
  color: #495057 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0.5rem !important;
  transition: all 0.3s ease !important;
}

[data-theme="light"] .footer .social-link:hover {
  color: #212529 !important;
  transform: translateX(5px) !important;
}

[data-theme="light"] .footer .social-link i {
  font-size: 1.1rem !important;
  margin-right: 0.5rem !important;
}

/* Enhanced certificate page text for light mode */
[data-theme="light"] .certificate-hero .text-light {
  color: #212529 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

[data-theme="light"] .certificate-hero .lead {
  color: #212529 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

[data-theme="light"] .certificate-hero p {
  color: #212529 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* Enhanced certificate stats for light mode */
[data-theme="light"] .certificate-stats .text-muted {
  color: #6c757d !important;
  font-weight: 500 !important;
}

[data-theme="light"] .certificate-stats .text-primary {
  color: #0d6efd !important;
  font-weight: 700 !important;
}

[data-theme="light"] .certificate-stats .text-success {
  color: #198754 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .certificate-stats .text-warning {
  color: #ffc107 !important;
  font-weight: 700 !important;
}

/* Enhanced certificate cards for light mode */
[data-theme="light"] .certificate-card .text-light {
  color: #212529 !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

[data-theme="light"] .certificate-card .text-muted {
  color: #6c757d !important;
  font-weight: 500 !important;
}

[data-theme="light"] .certificate-card .text-primary {
  color: #0d6efd !important;
  font-weight: 700 !important;
}

[data-theme="light"] .certificate-card p {
  color: #212529 !important;
  font-weight: 500 !important;
}

/* Enhanced certificate card headers and body for light mode */
[data-theme="light"] .certificate-card h5 {
  color: #0d6efd !important;
  font-weight: 700 !important;
}

[data-theme="light"] .certificate-card .certificate-header h5 {
  color: #0d6efd !important;
  font-weight: 700 !important;
}

[data-theme="light"] .certificate-card .certificate-body p {
  color: #212529 !important;
  font-weight: 500 !important;
}

[data-theme="light"] .certificate-card .certificate-body .text-light {
  color: #212529 !important;
  font-weight: 500 !important;
}

/* Enhanced blog post meta for light mode */
[data-theme="light"] .blog-post-meta.text-muted {
  color: #6c757d !important;
  font-weight: 500 !important;
}

[data-theme="light"] .blog-post-meta {
  color: #6c757d !important;
  font-weight: 500 !important;
}

[data-theme="light"] .blog-post-meta i {
  color: #0d6efd !important;
}

/* Enhanced blog post content for light mode */
[data-theme="light"] .blog-post-content .text-muted {
  color: #6c757d !important;
  font-weight: 500 !important;
}

[data-theme="light"] .blog-post-content .text-light {
  color: #212529 !important;
  font-weight: 500 !important;
}

[data-theme="light"] .blog-post-content p {
  color: #212529 !important;
  font-weight: 500 !important;
}

[data-theme="light"] .blog-post-content h1,
[data-theme="light"] .blog-post-content h2,
[data-theme="light"] .blog-post-content h3,
[data-theme="light"] .blog-post-content h4,
[data-theme="light"] .blog-post-content h5,
[data-theme="light"] .blog-post-content h6 {
  color: #212529 !important;
  font-weight: 700 !important;
}

/* Enhanced blog post meta specifically for post pages */
[data-theme="light"] .blog-post-header .blog-post-meta.text-muted {
  color: #6c757d !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

[data-theme="light"] .blog-post-header .blog-post-meta {
  color: #6c757d !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

[data-theme="light"] .blog-post-header .blog-post-meta i {
  color: #0d6efd !important;
  font-size: 1.1rem !important;
}

/* Enhanced blog post title for light mode */
[data-theme="light"] .blog-post-title {
  color: #212529 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

[data-theme="light"] .blog-post-header h1 {
  color: #212529 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Timeline Light Mode */
[data-theme="light"] .timeline-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .timeline-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(13, 110, 253, 0.3);
}

[data-theme="light"] .timeline-title {
  color: #212529;
}

[data-theme="light"] .timeline-date {
  color: #6c757d;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.2);
}

[data-theme="light"] .timeline-description {
  color: #495057;
}

[data-theme="light"] .timeline-dot {
  background: linear-gradient(45deg, #0d6efd, #6f42c1);
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
}

[data-theme="light"] .timeline-container::before {
  background: linear-gradient(180deg, #0d6efd, #6f42c1, #dc3545);
}

/* Timeline Styles */
.timeline-container {
  position: relative;
  padding: 2rem 0;
  overflow: hidden;
  background: 
    radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(79, 172, 254, 0.05) 0%, transparent 50%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  animation: cosmicBackground 20s ease-in-out infinite;
}

@keyframes cosmicBackground {
  0%, 100% {
    background: 
      radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 40% 60%, rgba(79, 172, 254, 0.05) 0%, transparent 50%);
  }
  33% {
    background: 
      radial-gradient(circle at 60% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 20% 70%, rgba(240, 147, 251, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 40%, rgba(79, 172, 254, 0.1) 0%, transparent 50%);
  }
  66% {
    background: 
      radial-gradient(circle at 40% 80%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 90% 20%, rgba(240, 147, 251, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 10% 50%, rgba(79, 172, 254, 0.08) 0%, transparent 50%);
  }
}

/* Cosmic timeline line with nebula effect */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, 
    #667eea 0%, 
    #764ba2 25%, 
    #f093fb 50%, 
    #f5576c 75%, 
    #4facfe 100%);
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 2px;
  box-shadow: 
    0 0 10px rgba(102, 126, 234, 0.5),
    0 0 20px rgba(118, 75, 162, 0.3),
    0 0 30px rgba(240, 147, 251, 0.2);
  animation: cosmicFlow 4s ease-in-out infinite;
}

/* Cosmic flow animation */
@keyframes cosmicFlow {
  0%, 100% {
    box-shadow: 
      0 0 10px rgba(102, 126, 234, 0.5),
      0 0 20px rgba(118, 75, 162, 0.3),
      0 0 30px rgba(240, 147, 251, 0.2);
  }
  50% {
    box-shadow: 
      0 0 15px rgba(102, 126, 234, 0.7),
      0 0 25px rgba(118, 75, 162, 0.5),
      0 0 35px rgba(240, 147, 251, 0.3);
  }
}

/* Floating cosmic particles */
.timeline-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  transform: translateX(-50%);
  z-index: 0;
  animation: cosmicFloat 6s ease-in-out infinite;
}

@keyframes cosmicFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateX(-50%) translateY(-20px) scale(1.1);
    opacity: 0.6;
  }
}

/* Additional floating stars */
.timeline-container {
  position: relative;
}

/* Add star particles using a separate element */
.timeline-container .star-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  z-index: 0;
  animation: starTwinkle 8s ease-in-out infinite;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-10px);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
  border: 3px solid #ffffff;
  box-shadow: 
    0 0 0 4px rgba(102, 126, 234, 0.3),
    0 0 20px rgba(102, 126, 234, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  animation: cosmicPulse 3s ease-in-out infinite;
  position: relative;
}

/* Planet-like surface details */
.timeline-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 
    2px 2px 0 rgba(255, 255, 255, 0.3),
    -1px -1px 0 rgba(0, 0, 0, 0.2);
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 25%;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

@keyframes cosmicPulse {
  0%, 100% {
    box-shadow: 
      0 0 0 4px rgba(102, 126, 234, 0.3),
      0 0 20px rgba(102, 126, 234, 0.4),
      inset 0 0 10px rgba(255, 255, 255, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 
      0 0 0 8px rgba(102, 126, 234, 0.1),
      0 0 30px rgba(102, 126, 234, 0.6),
      inset 0 0 15px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
  }
}

/* Different planet styles for each timeline item */
.timeline-item:nth-child(1) .timeline-dot {
  background: linear-gradient(45deg, #667eea, #4facfe);
}

.timeline-item:nth-child(2) .timeline-dot {
  background: linear-gradient(45deg, #f093fb, #f5576c);
}

.timeline-item:nth-child(3) .timeline-dot {
  background: linear-gradient(45deg, #43e97b, #38f9d7);
}

.timeline-item:nth-child(4) .timeline-dot {
  background: linear-gradient(45deg, #fa709a, #fee140);
}

.timeline-content {
  flex: 1;
  max-width: 45%;
  padding: 0 2rem;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Cosmic nebula background */
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.1) 0%, 
    rgba(118, 75, 162, 0.1) 25%,
    rgba(240, 147, 251, 0.1) 50%,
    rgba(245, 87, 108, 0.1) 75%,
    rgba(79, 172, 254, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
}

/* Floating cosmic particles */
.timeline-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: cosmicDrift 8s linear infinite;
}

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

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

.timeline-card:hover::after {
  opacity: 1;
}

.timeline-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(102, 126, 234, 0.2),
    0 0 60px rgba(118, 75, 162, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

/* Cosmic glow effect on hover */
.timeline-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.timeline-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.timeline-date {
  color: #b8c5d1;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(102, 126, 234, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.timeline-description {
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-tags .badge {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-weight: 500;
}

/* Timeline gradient text */
.text-gradient-timeline {
  position: relative;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  font-weight: 800;
  display: inline-block;
}

/* Cosmic title container */
.cosmic-title-container {
  position: relative;
  padding: 2rem 0;
}

.cosmic-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: cosmicFloat 4s ease-in-out infinite;
  display: inline-block;
}

.cosmic-subtitle {
  margin: 1rem 0;
}

.cosmic-text {
  background: linear-gradient(45deg, #667eea, #f093fb, #f5576c);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 2s ease-in-out infinite;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Cosmic marker icons */
.cosmic-marker-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  z-index: 3;
  animation: cosmicRotate 6s linear infinite;
}

@keyframes cosmicRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Cosmic small icons in titles */
.cosmic-icon-small {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  animation: cosmicBounce 2s ease-in-out infinite;
}

@keyframes cosmicBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Cosmic highlights */
.cosmic-highlight {
  background: linear-gradient(45deg, #667eea, #f093fb);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 2s ease-in-out infinite;
  font-weight: 600;
  display: inline-block;
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline-container::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: row !important;
    padding-left: 4rem;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .timeline-content {
    max-width: 100%;
    padding: 0;
  }
  
  .timeline-card {
    padding: 1.5rem;
  }
}

/* Enhanced footer text contrast for dark mode */
[data-theme="dark"] .footer .text-light {
  color: #ffffff !important;
  font-weight: 500;
}

[data-theme="dark"] .footer .text-muted {
  color: #b8c5d1 !important;
  font-weight: 500;
}

[data-theme="dark"] .footer strong {
  color: #ffffff !important;
  font-weight: 600;
}

[data-theme="dark"] .footer h6 {
  color: #ffffff !important;
  font-weight: 600;
}

[data-theme="dark"] .footer .contact-item span {
  color: #ffffff !important;
  font-weight: 500;
}

[data-theme="dark"] .footer .social-link span {
  color: #ffffff !important;
  font-weight: 500;
}

/* Enhanced footer icons for dark mode */
[data-theme="dark"] .footer .bi-envelope-fill {
  color: #4dabf7 !important;
}

[data-theme="dark"] .footer .bi-geo-alt-fill {
  color: #51cf66 !important;
}

[data-theme="dark"] .footer .bi-code-slash {
  color: #ffd43b !important;
}

[data-theme="dark"] .footer .bi-cup-hot {
  color: #ffd43b !important;
}

[data-theme="dark"] .footer .bi-heart-fill {
  color: #ff6b6b !important;
}

/* Enhanced footer section headings for dark mode */
[data-theme="dark"] .footer h6.fw-bold.text-light {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .footer .footer-links h6 {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

[data-theme="dark"] .footer .contact-info h6 {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

[data-theme="dark"] .footer .social-links h6 {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

/* Enhanced footer links for better visibility */
[data-theme="dark"] .footer .footer-link {
  color: #b8c5d1 !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
}

[data-theme="dark"] .footer .footer-link:hover {
  color: #ffffff !important;
  font-weight: 600 !important;
  transform: translateX(5px) !important;
}

/* Enhanced contact info text for dark mode */
[data-theme="dark"] .footer .contact-item span.text-light {
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
}

[data-theme="dark"] .footer .contact-item {
  color: #ffffff !important;
  margin-bottom: 0.75rem !important;
  display: flex !important;
  align-items: center !important;
}

[data-theme="dark"] .footer .contact-item i {
  font-size: 1.1rem !important;
  margin-right: 0.5rem !important;
}

/* Enhanced social links for dark mode */
[data-theme="dark"] .footer .social-link {
  color: #b8c5d1 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0.5rem !important;
  transition: all 0.3s ease !important;
}

[data-theme="dark"] .footer .social-link:hover {
  color: #ffffff !important;
  transform: translateX(5px) !important;
}

[data-theme="dark"] .footer .social-link i {
  font-size: 1.1rem !important;
  margin-right: 0.5rem !important;
}

/* Enhanced certificate page text for dark mode */
[data-theme="dark"] .certificate-hero .text-light {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .certificate-hero .lead {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .certificate-hero p {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Enhanced certificate stats for dark mode */
[data-theme="dark"] .certificate-stats .text-muted {
  color: #b8c5d1 !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .certificate-stats .text-primary {
  color: #4dabf7 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .certificate-stats .text-success {
  color: #51cf66 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .certificate-stats .text-warning {
  color: #ffd43b !important;
  font-weight: 700 !important;
}

/* Enhanced certificate cards for dark mode */
[data-theme="dark"] .certificate-card .text-light {
  color: #ffffff !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .certificate-card .text-muted {
  color: #b8c5d1 !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .certificate-card .text-primary {
  color: #4dabf7 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .certificate-card p {
  color: #ffffff !important;
  font-weight: 500 !important;
}

/* Enhanced certificate card headers and body for dark mode */
[data-theme="dark"] .certificate-card h5 {
  color: #4dabf7 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .certificate-card .certificate-header h5 {
  color: #4dabf7 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .certificate-card .certificate-body p {
  color: #ffffff !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .certificate-card .certificate-body .text-light {
  color: #ffffff !important;
  font-weight: 500 !important;
}

/* Enhanced blog post meta for dark mode */
[data-theme="dark"] .blog-post-meta.text-muted {
  color: #b8c5d1 !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .blog-post-meta {
  color: #b8c5d1 !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .blog-post-meta i {
  color: #4dabf7 !important;
}

/* Enhanced blog post content for dark mode */
[data-theme="dark"] .blog-post-content .text-muted {
  color: #b8c5d1 !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .blog-post-content .text-light {
  color: #ffffff !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .blog-post-content p {
  color: #ffffff !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .blog-post-content h1,
[data-theme="dark"] .blog-post-content h2,
[data-theme="dark"] .blog-post-content h3,
[data-theme="dark"] .blog-post-content h4,
[data-theme="dark"] .blog-post-content h5,
[data-theme="dark"] .blog-post-content h6 {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Enhanced blog post meta specifically for post pages */
[data-theme="dark"] .blog-post-header .blog-post-meta.text-muted {
  color: #b8c5d1 !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

[data-theme="dark"] .blog-post-header .blog-post-meta {
  color: #b8c5d1 !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

[data-theme="dark"] .blog-post-header .blog-post-meta i {
  color: #4dabf7 !important;
  font-size: 1.1rem !important;
}

/* Enhanced blog post title for dark mode */
[data-theme="dark"] .blog-post-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .blog-post-header h1 {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Additional footer enhancements */
[data-theme="light"] .footer-divider {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent) !important;
  height: 2px !important;
  margin: 2rem 0 1.5rem !important;
}

/* Theme toggle button */
#theme-toggle {
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  transform: scale(1.1);
}

/* 🎵 Music Bubble */
.music-bubble {
  position: fixed;
  bottom: 100px; /* Above back-to-top button */
  right: 20px; /* Same right position as back-to-top button */
  width: 60px; /* Same size as back-to-top button */
  height: 60px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999; /* Lower than back-to-top button */
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.music-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}

.music-bubble:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Add visual feedback when player is hidden */
.music-bubble.player-hidden {
  opacity: 0.7;
  transform: scale(0.9);
}

.music-bubble.player-visible {
  opacity: 1;
  transform: scale(1);
}

/* Add progress ring effect similar to back-to-top */
.music-bubble::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #667eea, #764ba2, #f093fb, #667eea);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.music-bubble.playing::before {
  opacity: 0.3;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.music-bubble.playing {
  animation: bubblePulse 2s ease-in-out infinite;
}

.music-bubble i {
  color: white;
  font-size: 24px; /* Same size as back-to-top icon */
  transition: all 0.3s ease;
}

.music-bubble.playing i {
  animation: iconBounce 1s ease-in-out infinite;
}

@keyframes bubblePulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
  }
}

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

/* Bubble Visualizer */
.music-bubble .bubble-visualizer {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: end;
  gap: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.music-bubble.playing .bubble-visualizer {
  opacity: 1;
}

.bubble-visualizer .mini-bar {
  width: 1.5px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1px;
  animation: miniVisualizer 1.5s ease-in-out infinite;
}

.bubble-visualizer .mini-bar:nth-child(1) { animation-delay: 0s; height: 6px; }
.bubble-visualizer .mini-bar:nth-child(2) { animation-delay: 0.2s; height: 8px; }
.bubble-visualizer .mini-bar:nth-child(3) { animation-delay: 0.4s; height: 10px; }
.bubble-visualizer .mini-bar:nth-child(4) { animation-delay: 0.6s; height: 8px; }
.bubble-visualizer .mini-bar:nth-child(5) { animation-delay: 0.8s; height: 6px; }

@keyframes miniVisualizer {
  0%, 100% { height: 3px; }
  50% { height: 10px; }
}

/* 🎵 Music Player Styles */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 90px; /* Position to the left of bubble */
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 15px 20px;
  z-index: 1000;
  min-width: 300px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateX(100px) scale(0.8);
  opacity: 0;
  visibility: hidden;
}

.music-player.show {
  transform: translateX(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.music-player.hide {
  transform: translateX(100px) scale(0.8);
  opacity: 0;
  visibility: hidden;
}

[data-theme="light"] .music-player {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.music-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.music-btn:active {
  transform: scale(0.95);
}

.music-info {
  flex: 1;
  color: white;
}

[data-theme="light"] .music-info {
  color: #212529;
}

.music-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.music-time {
  font-size: 12px;
  opacity: 0.8;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-control i {
  color: white;
  font-size: 16px;
}

[data-theme="light"] .volume-control i {
  color: #212529;
}

.volume-slider {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

[data-theme="light"] .volume-slider {
  background: rgba(0, 0, 0, 0.2);
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.music-visualizer {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 20px;
  justify-content: center;
}

.visualizer-bar {
  width: 3px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 2px;
  animation: visualizer 1.5s ease-in-out infinite;
}

.visualizer-bar:nth-child(1) { animation-delay: 0s; }
.visualizer-bar:nth-child(2) { animation-delay: 0.2s; }
.visualizer-bar:nth-child(3) { animation-delay: 0.4s; }
.visualizer-bar:nth-child(4) { animation-delay: 0.6s; }
.visualizer-bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes visualizer {
  0%, 100% { height: 4px; }
  50% { height: 20px; }
}

.music-player.playing .visualizer-bar {
  animation-play-state: running;
}

.music-player:not(.playing) .visualizer-bar {
  animation-play-state: paused;
  height: 4px;
}



/* Music Player States - Always visible */
.music-player {
  opacity: 1;
  visibility: visible;
}

/* Responsive Music Player */
@media (max-width: 768px) {
  .music-bubble {
    bottom: 80px;
    right: 15px; /* Same right position as back-to-top button on mobile */
    width: 50px; /* Proportional to back-to-top button */
    height: 50px;
  }
  
  .music-bubble i {
    font-size: 20px; /* Proportional to back-to-top icon */
  }
  
  .music-player {
    bottom: 10px;
    right: 70px; /* Position to the left of bubble on mobile */
    left: 10px;
    min-width: auto;
    padding: 12px 15px;
  }
  
  .music-controls {
    gap: 10px;
  }
  
  .music-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .volume-slider {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .music-bubble {
    bottom: 70px;
    right: 10px; /* Same right position as back-to-top button on small mobile */
    width: 45px; /* Proportional to back-to-top button */
    height: 45px;
  }
  
  .music-bubble i {
    font-size: 18px; /* Proportional to back-to-top icon */
  }
  
  .music-player {
    bottom: 5px;
    right: 60px; /* Position to the left of bubble on small mobile */
    left: 5px;
    padding: 10px 12px;
  }
  
  .music-controls {
    gap: 8px;
  }
  
  .music-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .volume-slider {
    width: 50px;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .profile-glow {
    width: 300px;
    height: 300px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .profile-glow img {
    width: 260px;
    height: 260px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    text-align: center;
  }
  
  .profile-glow {
    width: 240px;
    height: 240px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .profile-glow img {
    width: 200px;
    height: 200px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 1s ease-in;
}

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

/* Certificate cards */
.certificate-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .certificate-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .certificate-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.certificate-header {
  text-align: center;
  margin-bottom: 1rem;
}

.certificate-body {
  text-align: left;
}

.certificate-tags {
  margin-top: 1rem;
}

.certificate-tags .badge {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* PDF Viewer */
.pdf-viewer {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.pdf-viewer:hover .pdf-overlay {
  opacity: 1;
}

.pdf-overlay i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.pdf-overlay p {
  font-weight: 600;
  font-size: 1.1rem;
}

.certificate-card:hover .pdf-viewer {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transform: scale(1.02);
}

/* Certificate image (fallback) */
.certificate-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.certificate-image img {
  transition: transform 0.3s ease;
}

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

.certificate-card:hover .certificate-image {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Certificate image overlay */
.certificate-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.certificate-card:hover .certificate-image::after {
  opacity: 1;
}

/* Certificate page hero */
.certificate-hero {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  padding: 4rem 3rem;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.certificate-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1), rgba(240, 147, 251, 0.1));
  border-radius: 25px;
  z-index: -1;
}

[data-theme="light"] .certificate-hero {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .certificate-hero::before {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05), rgba(240, 147, 251, 0.05));
}

/* Certificate title gradient */
.text-gradient-cert {
  position: relative;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShiftBlog 4s ease-in-out infinite;
  font-weight: 800;
  display: inline-block;
  font-size: 3rem;
}

/* Certificate stats */
.certificate-stats {
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin: 0 0.5rem;
  min-width: 120px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
  z-index: -1;
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.stat-item small {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

[data-theme="light"] .stat-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .stat-item:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .stat-item small {
  color: rgba(0, 0, 0, 0.8);
}

/* Certificate card glow effect */
.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.certificate-card:hover::before {
  left: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

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

::-webkit-scrollbar-thumb:hover {
  background: #0b5ed7;
}