:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --dark: #0f172a;
  --darker: #020617;
  --light: #f8fafc;
  --gray: #64748b;
  --light-gray: #cbd5e1;
  --card-bg: rgba(30, 41, 59, 0.5);
  --transition: all 0.3s ease;
}

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

body {
  background: linear-gradient(135deg, var(--darker), var(--dark));
  color: var(--light);
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

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

section {
  padding: 100px 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--light-gray);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  font-family: "Poppins", sans-serif;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

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

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

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header.header-hidden {
  transform: translateY(-100%);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(16, 185, 129, 0.1) 0%,
      transparent 50%
    );
  z-index: -1;
}


.hero-content {
   max-width: 600px;
}

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

.hero .highlight {
  color: var(--primary);
}

.typed-text {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  min-height: 60px;
  color: var(--primary);
  font-weight: 600;
}

.hero-btns {
  display: flex;
  gap: 15px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Circular image with border-radius: 50% */
.hero-image {
   width: 40%;
   max-width: 450px;
   min-width: 300px;
   overflow: hidden;
   box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
   border-radius: 50%;
   border: 6px solid var(--primary);
   position: relative;
   margin-left: 200px;
}

/* Hero image styling */
#hero-content {
   padding-bottom: 10%;
}
.hero-image img {
   width: 100%;
   height: auto;
   display: block;
   border-radius: 50%;
}

/* About Section */
.about {
  background: rgba(15, 23, 42, 0.7);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 0 0 300px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

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

.about-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-item i {
  color: var(--primary);
  font-size: 1.2rem;
  width: 20px;
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.stat-item {
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 30px;
}

.skill-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.skill-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.skill-level {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 1.5s ease-in-out;
  width: 0%;
}

/* Projects Section */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

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

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 25px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.tech-tag {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

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

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


/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.blog-image {
  height: 180px;
  overflow: hidden;
}

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

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 25px;
}

.blog-date {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-excerpt {
  margin-bottom: 15px;
  display: -webkit-box;
  /* -webkit-line-clamp: 3; */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

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

/* Blog Post Styles */
.blog-post-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  margin-bottom: 60px;
}

.blog-post-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.blog-post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.meta-item i {
  color: var(--secondary);
}

.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-post-image {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  margin: 40px 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--light-gray);
}

.blog-post-body h2 {
  color: var(--light);
  margin: 40px 0 20px;
  text-align: left;
}

.blog-post-body h2::after {
  display: none;
}

.blog-post-body h3 {
  color: var(--primary);
  margin: 30px 0 15px;
}

.blog-post-body p {
  margin-bottom: 1.5rem;
}

.blog-post-body ul, .blog-post-body ol {
  margin: 20px 0;
  padding-left: 30px;
}

.blog-post-body li {
  margin-bottom: 10px;
}

.blog-post-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--gray);
}

.code-block {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  color: var(--light);
}

.code-block code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.blog-tags {
  display: flex;
  gap: 10px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.blog-tag {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-navigation {
  display: flex;
  justify-content: space-between;
  margin: 60px 0;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 10px 20px;
  border-radius: 8px;
}

.nav-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(5px);
}

.nav-btn.prev:hover {
  transform: translateX(-5px);
}

.author-bio {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-details h4 {
  color: var(--light);
  margin-bottom: 5px;
}

.author-details p {
  margin: 0;
  color: var(--light-gray);
}

.related-posts {
  margin: 60px 0;
}

.related-posts h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--light);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

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

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text h4 {
  margin-bottom: 5px;
  color: var(--light);
}

.contact-text p {
  margin: 0;
  color: var(--light-gray);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.contact-form {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--light);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--light);
  font-family: "Poppins", sans-serif;
  transition: var(--transition);
  font-size: 14px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.form-control.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.form-control.valid {
  border-color: #10b981;
}

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

.field-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
  font-weight: 500;
}

/* Footer */
footer {
  background: var(--darker);
  padding: 50px 0 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

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

.footer-links {
  display: flex;
  gap: 30px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

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

.copyright {
  color: var(--gray);
  font-size: 0.9rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.floating {
  animation: float 3s ease-in-out infinite;
}

.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}
.delay-3 {
  transition-delay: 0.6s;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 500;
}

.skip-link:focus {
  top: 6px;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.visible {
  display: flex !important;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Light theme styles */
/* Light theme styles */
body.light-theme {
  --dark: #f8fafc;
  --darker: #e2e8f0;
  --light: #0f172a;
  --light-gray: #475569;
  --card-bg: rgba(255, 255, 255, 0.9);
  --gray: #64748b;
}

body.light-theme header {
  background: rgba(248, 250, 252, 0.9);
}

body.light-theme .nav-links a {
  color: var(--light);
}

body.light-theme .mobile-menu-btn {
  color: var(--light);
}

body.light-theme .mobile-menu-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Make logo black in light mode */
body.light-theme .logo,
body.light-theme .footer-logo {
  color: #0f172a; /* Black color for light mode */
}

body.light-theme .skill-card,
body.light-theme .project-card,
body.light-theme .blog-card,
body.light-theme .contact-form {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--card-bg);
}

body.light-theme .form-control {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--light);
}

body.light-theme .form-control:focus {
  background: rgba(0, 0, 0, 0.08);
}

body.light-theme footer {
  background: var(--darker);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .about {
  background: rgba(248, 250, 252, 0.8);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .about h2 {
  color: var(--light);
}

body.light-theme .about p {
  color: var(--light-gray);
}

body.light-theme .detail-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 15px;
  backdrop-filter: blur(10px);
}

/* Light theme blog styles */
body.light-theme .blog-post-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

body.light-theme .blog-post-body {
  color: var(--gray);
}

body.light-theme .blog-post-body h2 {
  color: var(--light);
}

body.light-theme .blog-post-body h3 {
  color: var(--primary);
}

body.light-theme .blog-post-body blockquote {
  color: var(--gray);
}

body.light-theme .code-block {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--light);
}

body.light-theme .blog-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

body.light-theme .blog-navigation {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .nav-btn:hover {
  background: rgba(99, 102, 241, 0.1);
}

body.light-theme .author-bio {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .author-details h4 {
  color: var(--light);
}

body.light-theme .author-details p {
  color: var(--gray);
}

body.light-theme .related-posts h3 {
  color: var(--light);
}


/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  color: #333;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  max-width: 400px;
  transform: translateX(150%);
  transition: transform 0.3s ease;
  border-left: 4px solid transparent;
}

.notification-success {
  background: #10b981;
  color: white;
  border-left-color: #059669;
}

.notification-error {
  background: #ef4444;
  color: white;
  border-left-color: #dc2626;
}

.notification-info {
  background: #3b82f6;
  color: white;
  border-left-color: #2563eb;
}

.notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.notification-message {
  flex: 1;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

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

/* Loading animation */
body:not(.loaded) {
  overflow: hidden;
}

body:not(.loaded)::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--darker);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.loaded)::after {
  content: "Loading...";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--light);
  font-size: 1.5rem;
  z-index: 10000;
}

body.loaded::before,
body.loaded::after {
  display: none;
}

