/* ============================================
   GLOBAL STYLES & CSS VARIABLES
   ============================================ */

:root {
  /* Dark Theme (Default) */
  --bg-primary: #171717;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: rgba(255, 255, 255, 0.03);
  --bg-quaternary: rgba(255, 255, 255, 0.05);
  --bg-accent: rgba(34, 139, 34, 0.2);
  --bg-accent-hover: rgba(34, 139, 34, 0.3);
  
  --text-primary: #ffffff;
  --text-bis :  #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-tertiary: rgba(255, 255, 255, 0.7);
  --text-quaternary: rgba(255, 255, 255, 0.6);
  
  --border-primary: rgba(34, 139, 34, 0.3);
  --border-secondary: rgba(34, 139, 34, 0.3);
  --border-accent: rgba(34, 139, 34, 0.3);
  
  --accent-primary: #228b22;
  --accent-secondary: #90ee90;
  --accent-gradient: linear-gradient(90deg, #228b22, #6eb46e);
  --accent-tertiary: linear-gradient(90deg, #228b22, #6eb46e);
  --gradientblog: linear-gradient(135deg, rgba(15, 15, 15, 0.9), rgba(34, 139, 34, 0.1));
  --shadow-primary: rgba(0, 0, 0, 0.3);
  --shadow-secondary: rgba(0, 0, 0, 0.5);
}

/* Light Theme */
[data-theme="light"] {
  /* === FOND === */
  --bg-primary: #fcfce1;          /* fond général */
  --bg-secondary: rgba(174, 208, 167, 0.427);        /* fond secondaire légèrement plus contrasté */
  --bg-tertiary: rgba(62, 86, 65, 0.227); /* hover ou séparateurs */
  --bg-quaternary: rgba(174, 208, 167, 0.427);

  /* === TEXTE === */
  --text-primary: #2C3A2E;        /* vert-gris très foncé (dérivé de #3E5641) */
  --text-bis :  #2C3A2E;          /* même couleur que text-primary */
  --text-secondary: #3E5641;      /* vert profond */
  --text-tertiary: #6B8E73;       /* vert doux, pour les liens ou muted */

  /* === BORDURES === */
  --border-primary: rgba(62, 86, 65, 0.1);
  --border-secondary: rgba(62, 86, 65, 0.2);
  --border-accent: rgba(53, 205, 53, 0.3);

  /* === ACCENTS === */
  --accent-primary: #3E5641;
  --accent-secondary: #6B8E73;
  --accent-hover: #324B39;        /* vert plus foncé au hover */

  --accent-gradient: linear-gradient(90deg, #427851, #255a2d);
  --accent-tertiary: #8aad92;
  --gradientblog: linear-gradient(135deg, rgba(90, 126, 96, 0.9), rgba(34, 139, 34, 0.1));
  /* === OMBRES === */
  --shadow-primary: rgba(0, 0, 0, 0.03);
  --shadow-secondary: rgba(0, 0, 0, 0.06);
}






/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", serif;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 139, 34, 0.3) var(--bg-primary);
}

html, body {
  overflow-x: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

@media (min-width: 768px) {
  .container {
    padding: 0 10%;
  }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-animation {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(34, 139, 34, 0.3);
  border-top: 3px solid #228b22;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-text {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  background: var( --accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-primary);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 768px) {
  .nav-container {
    padding: 1rem 10%;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.2rem;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

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

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

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-center {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    justify-content: flex-start;
    transition: left 0.3s ease;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */

.theme-toggle {
  position: relative;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--bg-accent);
  border-color: var(--border-accent);
  transform: scale(1.1);
}

.theme-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  color: var(--accent-secondary);
  transition: all 0.3s ease;
}

.theme-icon.light-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-icon.dark-icon {
  opacity: 0;
  transform: rotate(180deg);
}

[data-theme="light"] .theme-icon.light-icon {
  opacity: 0;
  transform: rotate(180deg);
}

[data-theme="light"] .theme-icon.dark-icon {
  opacity: 1;
  transform: rotate(0deg);
}

@media (max-width: 768px) {
  .theme-toggle {
    order: -1;
    margin-left: 0;
    margin-right: 1rem;
  }
}

/* CTA Buttons and Social Links */
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 0 5%;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-badge {
  display: inline-block;
  margin-bottom: 2rem;
}

.badge-glow {
  position: relative;
  /* group: true; */
}

.badge-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, #228b22, #90ee90);
  border-radius: 50px;
  filter: blur(8px);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.badge-glow:hover::before {
  opacity: 0.5;
}

.badge-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  background: linear-gradient(90deg, #228b22, #90ee90);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-content i {
  color: #60a5fa;
  width: 16px;
  height: 16px;
}

.hero-title h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.title-line {
  display: block;
  position: relative;
  word-spacing: 0.1em;
}

.title-word {
  position: relative;
  color: var(--text-primary);
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-title h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1.1;
  }
  
  .title-word {
    white-space: normal;
    word-break: break-word;
  }
  
  .title-line {
    word-spacing: normal;
  }
}

@media (max-width: 480px) {
  .hero-title h1 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }
}

.title-word.gradient {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-word::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: var(--accent-gradient);
  filter: blur(20px);
  opacity: 0.2;
  z-index: -1;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  text-align: justify;
  max-width: 500px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  max-width: 500px;
}

.tech-item {
  padding: 0.5rem 1rem;
  background: var(--bg-quaternary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-primary);
  border-radius: 25px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: var(--bg-accent);
  transform: translateY(-2px);
}

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

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-primary {
  background: var(--accent-tertiary);
  color: var(--text-primary);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--bg-accent);
}

.cta-secondary {
  background: var(--bg-quaternary);
  color: var(--text-primary);
  border: 1px solid var(--border-secondary);
}

.cta-secondary:hover {
  background: var(--bg-accent);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-quaternary);
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(34, 139, 34, 0.2);
  border-color: #228b22;
  color: #228b22;
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-illustration {
  width: 100%;
  max-width: 500px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-illustration:hover {
  transform: scale(1.05);
}

.ai-illustration svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 30px var(--shadow-primary));
  transition: all 0.3s ease;
}

.ai-illustration:hover svg {
  filter: drop-shadow(0 15px 40px var(--shadow-secondary)) 
          drop-shadow(0 0 20px var(--accent-primary)) 
          drop-shadow(0 0 40px var(--accent-secondary));
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Glow animation */
@keyframes glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 15px 40px var(--shadow-secondary)) 
            drop-shadow(0 0 25px var(--accent-primary)) 
            drop-shadow(0 0 50px var(--accent-secondary));
  }
  50% {
    filter: drop-shadow(0 20px 50px var(--shadow-secondary)) 
            drop-shadow(0 0 35px var(--accent-primary)) 
            drop-shadow(0 0 70px var(--accent-secondary));
  }
}

/* Neural Node Interactions */
.neural-node {
  filter: drop-shadow(0 2px 4px var(--shadow-primary));
  transition: all 0.3s ease;
}

/* Neural Connection Interactions */
.neural-connection {
  filter: drop-shadow(0 1px 2px var(--shadow-primary));
  transition: all 0.3s ease;
}

/* Data Points Interactions */
.data-points circle {
  filter: drop-shadow(0 2px 4px var(--shadow-secondary));
  transition: all 0.3s ease;
}

/* AI Brain Center Interactions */
.ai-brain-center {
  transition: all 0.3s ease;
}

/* Interactive Background Circle */
.neural-background {
  transition: all 0.3s ease;
}

/* Click Effects */
@keyframes pulse-burst {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.8);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes connection-flash {
  0% {
    opacity: 0.3;
    stroke-width: 1;
  }
  50% {
    opacity: 1;
    stroke-width: 4;
  }
  100% {
    opacity: 0.6;
    stroke-width: 1;
  }
}

.neural-burst {
  transform: scale(1.02);
  filter: drop-shadow(0 20px 50px var(--accent-primary)) 
          drop-shadow(0 0 30px var(--accent-primary)) 
          drop-shadow(0 0 60px var(--accent-secondary)) !important;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

/* About Section - First section with extra top padding */
.about-section {
  padding: 8rem 0 5rem 0;
}

/* Section Dividers */
.section-divider {
  border: none;
  height: 1px;
  background: var(--border-primary);
  margin: 0 auto 3rem auto;
  max-width: 1200px;
  width: 90%;
}

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

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-text {
    padding-right: 0;
  }
  
  .about-text p {
    text-align: left;
  }
}

.about-text {
  padding-right: 2rem;
}

/* About Intro Styling */
.about-intro {
  margin-bottom: 3rem;
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  padding: 2rem;
}

.about-greeting {
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.greeting-text {
  display: block;
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.name-text {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 2rem;
}

/* About Social Links */
.about-social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.about-social-links .social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-quaternary);
  border: 1px solid var(--border-primary);
  border-radius: 25px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  width: auto;
  height: auto;
}

.about-social-links .social-link:hover {
  background: rgba(34, 139, 34, 0.2);
  border-color: #228b22;
  color: #228b22;
  transform: translateY(-2px);
}

.about-social-links .social-link span {
  font-size: 0.9rem;
}

/* About CTA Buttons */
.about-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Blog Section */
.blog-section {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
}

.blog-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(34, 139, 34, 0.3);
}

.blog-title i {
  color: #228b22;
  width: 20px;
  height: 20px;
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* New Blog Post Cards */
.blog-post-card {
  background: var(--bg-quaternary);
  border: 1px solid var(--border-primary);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-post-card:hover {
  background: var(--bg-accent);
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-primary);
}

.post-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.post-type-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-primary);
}

.post-type-badge.research {
  background: var(--bg-accent);
  color: var(--accent-secondary);
  border: 1px solid var(--border-accent);
}

.post-type-badge.project {
  background: var(--bg-accent);
  color: var(--accent-secondary);
  border: 1px solid var(--border-accent);
}

.post-type-badge.thoughts {
  background: rgba(255, 99, 71, 0.2);
  color: #ff7f50;
  border: 1px solid rgba(255, 99, 71, 0.3);
}

.post-type-badge.tutorial {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.post-type-badge.literature {
  background: rgba(106, 90, 205, 0.2);
  color: #9370db;
  border: 1px solid rgba(106, 90, 205, 0.3);
}

.post-content {
  padding: 1.5rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-quaternary);
}

.post-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-tag {
  padding: 0.25rem 0.75rem;
  background: var(--bg-accent);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 500;
}

.post-action {
  display: flex;
  justify-content: flex-end;
}

.read-more-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.blog-post-card:hover .read-more-btn {
  color: var(--accent-primary);
}

/* Updated Blog CTA */
.view-all-posts-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--accent-tertiary);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.view-all-posts-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(34, 139, 34, 0.3);
}

/* Blog Post Modal */
.blog-post-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--shadow-secondary);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.blog-post-modal.show {
  display: flex;
}

.blog-post-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  max-height: 95vh;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

.blog-post-header {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.close-blog-modal-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.close-blog-modal-btn:hover {
  background: var(--bg-accent);
  border-color: var(--border-accent);
}

.blog-post-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

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

.blog-hero-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
}

.blog-post-type-badge {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
}

.blog-post-type-badge.research {
  background: var(--bg-accent);
  color: var(--accent-secondary);
  border: 1px solid var(--border-accent);
}

.blog-post-type-badge.project {
  background: var(--bg-accent);
  color: var(--accent-secondary);
  border: 1px solid var(--border-accent);
}

.blog-post-type-badge.thoughts {
  background: rgba(255, 99, 71, 0.2);
  color: #ff7f50;
  border: 1px solid rgba(255, 99, 71, 0.3);
}

.blog-post-type-badge.tutorial {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.blog-post-type-badge.literature {
  background: rgba(106, 90, 205, 0.2);
  color: #9370db;
  border: 1px solid rgba(106, 90, 205, 0.3);
}

.blog-post-body {
  padding: 2rem 3rem 3rem;
  overflow-y: auto;
  max-height: calc(95vh - 4rem);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-quaternary);
  flex-wrap: wrap;
  min-height: 32px;
}

.blog-post-date,
.blog-post-read-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  height: 32px;
}

.blog-post-date i,
.blog-post-read-time i {
  width: 14px;
  height: 14px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.blog-post-type {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: 32px;
  white-space: nowrap;
}

.blog-post-type.research {
  background: var(--bg-accent);
  color: var(--accent-secondary);
  border: 1px solid var(--border-accent);
}

.blog-post-type.project {
  background: var(--bg-accent);
  color: var(--accent-secondary);
  border: 1px solid var(--border-accent);
}

.blog-post-type.tutorial {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.blog-post-type.thoughts {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.blog-post-type.literature {
  background: rgba(106, 90, 205, 0.2);
  color: #9370db;
  border: 1px solid rgba(106, 90, 205, 0.3);
}

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

.blog-post-tags {
  display: flex;
  gap: 0.75rem;
  margin-top : 0.75rem;

  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.blog-post-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-accent);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.blog-post-text {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.blog-post-text h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(34, 139, 34, 0.3);
}

.blog-post-text h4 {
  color: #90ee90;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

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

.blog-post-text ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.blog-post-text li {
  margin-bottom: 0.5rem;
}

.blog-post-text blockquote {
  background: rgba(34, 139, 34, 0.1);
  border-left: 4px solid #228b22;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

/* Responsive design for blog modal */
@media (max-width: 768px) {
  .blog-post-modal {
    padding: 1rem;
  }
  
  .blog-post-body {
    padding: 1.5rem 2rem 2rem;
  }
  
  .blog-post-title {
    font-size: 2rem;
  }
}

/* Responsive design for blog section */
@media (max-width: 768px) {
  .about-text {
    padding-right: 0;
  }
  
  .greeting-text {
    font-size: 1.3rem;
  }
  
  .name-text {
    font-size: 2rem;
  }
  
  .blog-section {
    padding: 1.5rem;
  }
  
  .blog-title {
    font-size: 1.2rem;
  }
  
  .linkedin-follow-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

.skills-grid {
  display: grid;
  gap: 2rem;
}

.skill-category h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

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

.skill-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-accent);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--bg-accent-hover);
  transform: translateY(-2px);
}

.profile-card {
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  max-width: 300px;
  margin: 0 auto;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--shadow-primary);
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--border-accent);
}

.profile-info h4 {
  color: var(--text-bis);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.profile-info p {
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.profile-info .education {
  color: var(--accent-primary);
  font-style: italic;
  font-size: 0.9rem;
}

.profile-info .orcid-id {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.orcid-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: inline-block;
}

.orcid-link:hover {
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* Education Section */
.education-section {
  margin-top: 1.5rem;
}

.education-section h4 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.education-item {
  background: var(--bg-quaternary);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--accent-primary);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.education-header h5 {
  color: var(--text-primary);
  font-size: 1rem;
  margin: 0;
}

.education-period {
  color: var(--accent-primary);
  font-weight: 500;
  font-size: 0.85rem;
}

.education-institution {
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.education-description {
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
  font-size: 0.9rem;
}

/* CV Download Button */
.cv-download {
  margin-top: 1.5rem;
}

.cv-btn {
  background: var( --accent-gradient);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cv-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(34, 139, 34, 0.3);
}

.cv-btn i {
  width: 20px;
  height: 20px;
}

.cv-download-profile {
  margin-top: 1rem;
}

.cv-btn-small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-tertiary);
  color: var(--text-primary);
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.cv-btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 139, 34, 0.3);
}

.cv-btn-small i {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Portfolio Section */
.tab-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--bg-quaternary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}

.tab-btn:hover {
  background: var(--bg-accent);
}

.tab-btn.active {
  background: var(--accent-tertiary);
  color: var(--text-primary);
  border-color: transparent;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.projects-grid, .certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

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

.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  height: 550px;
}

.certificate-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: fit-content;
  min-height: auto;
}

.project-card:hover, .certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(34, 139, 34, 0.3);
}

.project-image, .certificate-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.certificate-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #228b22, #90ee90);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.project-content, .certificate-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.project-title, .certificate-title {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-description, .certificate-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(34, 139, 34, 0.2);
  border-radius: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 139, 34, 0.2);
  border: 1px solid rgba(34, 139, 34, 0.3);
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
}

[data-theme="light"] .project-link {
  background: rgba(34, 139, 34, 0.8);
  border: 1px solid rgba(34, 139, 34, 0.9);
  color: white;
}

.project-link:hover {
  background: rgba(34, 139, 34, 0.3);
  transform: translateY(-2px);
}

[data-theme="light"] .project-link:hover {
  background: rgba(34, 139, 34, 1);
  border-color: rgba(34, 139, 34, 1);
}

.project-link.details-btn {
  background: rgba(144, 238, 144, 0.1);
  border-color: rgba(144, 238, 144, 0.3);
  color: #90ee90;
}

[data-theme="light"] .project-link.details-btn {
  background: rgba(46, 125, 50, 0.8);
  border-color: rgba(46, 125, 50, 0.9);
  color: white;
}

.project-link.details-btn:hover {
  background: rgba(144, 238, 144, 0.2);
  border-color: rgba(144, 238, 144, 0.5);
}

[data-theme="light"] .project-link.details-btn:hover {
  background: rgba(46, 125, 50, 1);
  border-color: rgba(46, 125, 50, 1);
}

.tech-stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: all 0.3s ease;
  text-align: center;
}

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

.tech-stack-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

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

.tech-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.tech-name {
  color: white;
  font-weight: 600;
}

[data-theme="light"] .tech-name {
  color: #333333;
}

.show-more-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.show-more-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

[data-theme="light"] .show-more-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.8);
}

.show-more-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

[data-theme="light"] .show-more-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #2c3e50;
}

/* Project Details Modal */
.project-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.project-details-modal.show {
  display: flex;
}

.project-details-content {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(34, 139, 34, 0.3);
  border-radius: 20px;
  padding: 3rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.project-details-title {
  color:var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.project-details-info {
  margin-bottom: 2rem;
}

.project-details-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.project-details-section {
  margin-bottom: 2rem;
}

.project-details-section h3 {
  color: #90ee90;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(34, 139, 34, 0.3);
  padding-bottom: 0.5rem;
}

.project-details-section p,
.project-details-section ul {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.project-details-section ul {
  padding-left: 1.5rem;
}

.project-details-section li {
  margin-bottom: 0.5rem;
}

.project-details-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.project-details-tech .tech-tag {
  background: rgba(34, 139, 34, 0.3);
  border: 1px solid rgba(34, 139, 34, 0.5);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.project-details-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-details-actions .project-link {
  flex: none;
  min-width: 150px;
}

@media (max-width: 768px) {
  .project-details-content {
    padding: 2rem;
    margin: 1rem;
  }
  
  .project-details-title {
    font-size: 1.5rem;
  }
  
  .project-details-actions {
    flex-direction: column;
  }
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--bg-accent);
  border-radius: 50%;
  color: var(--accent-primary);
}

.contact-icon-link {
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.contact-icon-link:hover .contact-icon {
  background: var(--bg-accent-hover);
  transform: scale(1.1);
  box-shadow: 0 8px 20px var(--shadow-primary);
}

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

.contact-details p {
  color: var(--text-secondary);
}

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

.contact-link:hover {
  color: var(--accent-primary);
  transform: translateX(3px);
}

.contact-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg-quaternary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  padding: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group textarea {
  resize: none;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-quaternary);
  box-shadow: 0 0 0 3px var(--bg-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-quaternary);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--accent-tertiary);
  border: none;
  border-radius: 12px;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--bg-accent);
}

/* Footer */
.footer {
  padding: 2rem 0;
  text-align: center;
}

.footer-divider {
  border: none;
  height: 1px;
  background: var(--border-primary);
  margin-bottom: 1.5rem;
}

.footer-content p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.footer-link {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: transparent;
}

::-webkit-scrollbar-track {
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(34, 139, 34, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(34, 139, 34, 0.3);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 0 20px rgba(168, 85, 247, 0.2),
    0 0 10px rgba(34, 139, 34, 0.2);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 139, 34, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 
    inset 0 0 30px rgba(168, 85, 247, 0.3),
    0 0 15px rgba(34, 139, 34, 0.3);
}

::-webkit-scrollbar-thumb:active {
  background: rgba(34, 139, 34, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 
    inset 0 0 40px rgba(168, 85, 247, 0.4),
    0 0 20px rgba(34, 139, 34, 0.4);
}

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

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

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

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
  }
  
  .cta-primary, .cta-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .projects-grid, .certificates-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* ============================================
   RESPONSIVE FIXES - PROJECTS & BLOG
   ============================================ */

@media (max-width: 768px) {
  /* Fix pour les boutons details-btn tronqués dans les projets */
  .project-content, .certificate-content {
    padding: 1.2rem;
    min-height: auto;
  }
  
  .project-card {
    min-height: 420px; /* Hauteur minimale pour éviter la troncature */
  }
  
  .project-links {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
  }
  
  .project-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    text-align: center;
    min-height: 44px; /* Taille minimale pour le toucher mobile */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Fix pour les boutons blog-read-more-home qui dépassent */
  .blog-post-card-home {
    padding: 2rem 1.5rem;
    min-height: 380px; /* Hauteur minimale pour éviter les débordements */
  }
  
  .blog-post-excerpt-home {
    -webkit-line-clamp: 2; /* Réduire le nombre de lignes sur mobile */
    line-clamp: 2;
    margin-bottom: 1rem;
  }
  
  .blog-read-more-home {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    margin-top: auto;
  }
}

@media (max-width: 480px) {
  /* Projets en mobile */
  .project-content, .certificate-content {
    padding: 1rem;
  }
  
  .project-card {
    min-height: 450px;
  }
  
  .project-title, .certificate-title {
    font-size: 1.1rem;
  }
  
  .project-description, .certificate-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .tech-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  
  /* Blog en mobile */
  .blog-post-card-home {
    padding: 1.5rem;
    min-height: 350px;
  }
  
  .blog-read-more-home {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Media query supplémentaire pour tablettes */
@media (max-width: 1024px) and (min-width: 769px) {
  .project-card {
    min-height: 400px;
  }
  
  .blog-post-card-home {
    min-height: 370px;
    padding: 2.2rem;
  }
}

/* Media query pour écrans très petits */
@media (max-width: 320px) {
  .project-card {
    min-height: 500px;
  }
  
  .project-links {
    gap: 0.3rem;
  }
  
  .project-link {
    padding: 0.5rem;
    font-size: 0.75rem;
    min-height: 40px;
  }
  
  .blog-post-card-home {
    padding: 1.2rem;
    min-height: 330px;
  }
  
  .blog-post-title-home {
    font-size: 1.1rem;
  }
  
  .blog-read-more-home {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* ============================================
   NEW BLOG SECTION - FULL WIDTH
   ============================================ */

/* Blog Section Full Width */
.blog-section-full {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 3rem;
}

.blog-section-full .blog-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-accent);
  text-align: center;
  justify-content: center;
}

.blog-section-full .blog-title i {
  color: var(--accent-primary);
  width: 24px;
  height: 24px;
}

/* Home Blog Grid - 2x1 Layout */
.blog-grid-home {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 1200px) {
  .blog-grid-home {
    gap: 2.5rem;
  }
}

/* Blog Post Card - No Image Version */
.blog-post-card-home {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2.5rem;
  min-height: 350px; /* Changé de height fixe à min-height */
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column; /* Ajouté pour la flexibilité */
}

.blog-post-card-home:hover {
  background: var(--bg-quaternary);
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow-primary);
}

.blog-post-meta-home {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  min-height: 32px; /* Assure une hauteur minimale pour l'alignement */
}

.blog-post-date-home,
.blog-post-read-time-home {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  height: 32px; /* Hauteur fixe pour l'alignement vertical */
}

.blog-post-date-home i,
.blog-post-read-time-home i {
  width: 14px;
  height: 14px;
  color: var(--accent-primary);
  flex-shrink: 0; /* Empêche la compression des icônes */
}

.blog-post-type-home {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: 32px; /* Même hauteur que les autres éléments */
  white-space: nowrap; /* Empêche le retour à la ligne */
}

.blog-post-type-home.research {
  background: var(--bg-accent);
  color: var(--accent-secondary);
  border: 1px solid var(--border-accent);
}

.blog-post-type-home.project {
  background: var(--bg-accent);
  color: var(--accent-secondary);
  border: 1px solid var(--border-accent);
}

.blog-post-type-home.tutorial {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.blog-post-type-home.thoughts {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.blog-post-type-home.literature {
  background: rgba(106, 90, 205, 0.2);
  color: #9370db;
  border: 1px solid rgba(106, 90, 205, 0.3);
}

.blog-post-title-home {
  color: var(--text-bis);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.blog-post-card-home:hover .blog-post-title-home {
  color: var(--accent-secondary);
}

.blog-post-excerpt-home {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1; /* Ajouté pour que l'excerpt prenne l'espace disponible */
}

.blog-post-tags-home {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  margin-top: auto; /* Pousse les tags vers le bas de l'espace disponible */
}

.blog-tag-home {
  padding: 0.3rem 0.8rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 15px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-post-card-home:hover .blog-tag-home {
  background: var(--bg-accent);
  border-color: var(--border-accent);
  color: var(--accent-secondary);
}

.blog-read-more-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--bg-quaternary), var(--bg-tertiary));
  border: 1px solid var(--border-primary);
  cursor: pointer;
  padding: 0.75rem 1.2rem;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px var(--shadow-primary);
  margin-top: auto; /* Pousse le bouton vers le bas */
  align-self: flex-start; /* Empêche le bouton de s'étirer */
}

.blog-read-more-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  transition: left 0.3s ease;
  z-index: -1;
}

.blog-read-more-home:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--shadow-secondary);
}

.blog-read-more-home:hover::before {
  left: 0;
}

.blog-read-more-home i {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
}

.blog-read-more-home:hover i {
  transform: translateX(3px);
  color: var(--text-primary);
}

/* Blog Read More Button - Full Page */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--bg-quaternary), var(--bg-tertiary));
  border: 1px solid var(--border-primary);
  cursor: pointer;
  padding: 0.75rem 1.2rem;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px var(--shadow-primary);
}

.blog-read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  transition: left 0.3s ease;
  z-index: -1;
}

.blog-read-more:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--shadow-secondary);
}

.blog-read-more:hover::before {
  left: 0;
}

.blog-read-more i {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
}

.blog-read-more:hover i {
  transform: translateX(3px);
  color: var(--text-primary);
}

/* Blog CTA Center */
.blog-section-full .blog-cta {
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-section-full .view-all-posts-btn {
  padding: 1.2rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  gap: 1rem;
}

/* ============================================
   BLOG PAGE STYLES
   ============================================ */

/* Blog Header */
.blog-header-section {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 0 3rem;
  background: var(--gradientblog);
}

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

.blog-main-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: white;
}

.blog-main-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Posts Section */
.blog-posts-section {
  padding: 4rem 0;
}

/* Filter Navigation */
.blog-filter-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 25px;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var( --accent-gradient);
  border-color: #228b22;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 139, 34, 0.3);
}

.filter-btn i {
  width: 16px;
  height: 16px;
}

/* Filter Description */
.filter-description {
  text-align: center;
  margin-bottom: 3rem;
  display: none;
  animation: fadeInUp 0.6s ease-out;
}

.filter-description-text {
  color: var(--text-primary);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: 1.5rem 2.5rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid var(--border-primary);
  display: inline-block;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  max-width: 600px;
}


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

/* Blog Posts Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Literature filter - 2 columns layout */
.blog-posts-grid.literature-layout {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .blog-posts-grid.literature-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .blog-posts-grid {
    gap: 3rem;
  }
  
  .blog-posts-grid.literature-layout {
    gap: 2rem;
  }
}

/* Blog Post Card Full */
.blog-post-card-full {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
  transition: all 0.3s ease;
  cursor: pointer;
  height: fit-content;
  position: relative;
}

.blog-post-card-full:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 139, 34, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Blog Post Image */
.blog-post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card-full:hover .blog-post-image img {
  transform: scale(1.05);
}

/* Load More Container */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 2.5rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(34, 139, 34, 0.3);
}

.load-more-btn:active {
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN - BLOG
   ============================================ */

@media (max-width: 768px) {
  .blog-grid-home {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-section-full {
    padding: 2rem;
    margin-top: 2rem;
  }
  
  .blog-section-full .blog-title {
    font-size: 1.4rem;
  }
  
  .blog-main-title {
    font-size: 2.5rem;
  }
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .blog-post-card-full {
    padding: 2rem;
  }
  
  .blog-filter-nav {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .blog-section-full {
    padding: 1.5rem;
  }
  
  .blog-post-card-home,
  .blog-post-card-full {
    padding: 1.5rem;
  }
  
  .blog-main-title {
    font-size: 2rem;
  }
  
  .blog-main-description {
    font-size: 1rem;
  }
}

/* ============================================
   THEME-AWARE COMPONENT UPDATES
   ============================================ */

/* Update major components to use CSS variables */
.project-card,
.certificate-card,
.blog-post-card,
.blog-post-card-home,
.blog-post-card-full {
  background: var(--bg-quaternary) !important;
  border: 1px solid var(--border-primary) !important;
  color: var(--text-primary) !important;
}

.project-card:hover,
.certificate-card:hover,
.blog-post-card:hover,
.blog-post-card-home:hover,
.blog-post-card-full:hover {
  background: var(--bg-accent) !important;
  border-color: var(--border-accent) !important;
}

.project-title,
.certificate-title,
.blog-post-title,
.blog-post-title-home,
.hero-description,
.contact-form input,
.contact-form textarea {
  color: var(--text-primary) !important;
}

.project-description,
.certificate-description,
.blog-post-excerpt,
.blog-post-excerpt-home {
  color: var(--text-secondary) !important;
}

.tech-tag,
.blog-tag,
.blog-tag-home,
.collab-tag {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border-primary) !important;
  color: var(--text-tertiary) !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--border-accent) !important;
}

.footer {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-primary) !important;
}

.footer-content {
  color: var(--text-secondary) !important;
}

.footer-link {
  color: var(--accent-secondary) !important;
}

/* Mobile Navigation Updates */
@media (max-width: 768px) {
  .nav-menu {
    background: var(--bg-secondary) !important;
  }
}

/* Loading Screen */
.loading-screen {
  background: var(--bg-primary) !important;
}

.loading-text {
  color: var(--text-primary) !important;
}

/* Blog Modal Updates */
.blog-post-modal {
  background: rgba(0, 0, 0, 0.8) !important;
}

.blog-post-content {
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-accent) !important;
}

.blog-post-text {
  color: var(--text-primary) !important;
}

.blog-post-text h3,
.blog-post-text h4 {
  color: var(--text-primary) !important;
}

.blog-post-text p {
  color: var(--text-secondary) !important;
}

/* Project Details Modal */
.project-details-modal {
  background: rgba(0, 0, 0, 0.8) !important;
}

.project-details-content {
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-accent) !important;
}

.project-details-title {
  color: var(--text-primary) !important;
}

.project-details-section h3 {
  color: var(--text-primary) !important;
}

.project-details-section p,
.project-details-section li {
  color: var(--text-secondary) !important;
}

/* ============================================
   RESEARCH IDEAS / CERTIFICATES CARDS
   ============================================ */

.certificate-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  height: fit-content;
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.certificate-card:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-secondary);
}

.certificate-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.certificate-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 15px;
}

.certificate-status {
  padding: 0.5rem 1rem;
  background: var(--bg-quaternary);
  color: var(--accent-secondary);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.certificate-title {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.certificate-card:hover .certificate-title {
  color: var(--accent-secondary);
}

.certificate-category {
  color: var(--accent-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.certificate-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.certificate-details {
  margin-bottom: 1.5rem;
}

.detail-item {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.detail-item strong {
  color: var(--accent-secondary);
}

.certificate-objectives {
  margin-bottom: 1.5rem;
}

.certificate-objectives h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.certificate-objectives ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.certificate-objectives li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.certificate-objectives li::before {
  content: "•";
  color: var(--accent-secondary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.certificate-collaboration h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

.collab-tag {
  padding: 0.3rem 0.8rem;
  background: var(--bg-quaternary);
  border: 1px solid var(--border-primary);
  border-radius: 15px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.certificate-card:hover .collab-tag {
  background: var(--bg-accent);
  border-color: var(--border-accent);
  color: var(--accent-secondary);
}

/* ============================================
   BLOG MODAL SPECIFIC STYLES
   ============================================ */

/* Blog Modal Container */
.blogmodal-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  max-height: 95vh;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blogmodal-header {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

.blogmodal-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.blogmodal-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blogmodal-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.blogmodal-type-badge.research {
  background: var(--bg-accent);
  color: var(--accent-secondary);
  border: 1px solid var(--border-accent);
}

.blogmodal-type-badge.project {
  background: var(--bg-accent);
  color: var(--accent-secondary);
  border: 1px solid var(--border-accent);
}

.blogmodal-type-badge.thoughts {
  background: rgba(255, 99, 71, 0.2);
  color: #ff7f50;
  border: 1px solid rgba(255, 99, 71, 0.3);
}

.blogmodal-type-badge.tutorial {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.blogmodal-type-badge.literature {
  background: rgba(106, 90, 205, 0.2);
  color: #9370db;
  border: 1px solid rgba(106, 90, 205, 0.3);
}

.blogmodal-body {
  padding: 2rem 3rem 3r;
  overflow-y: auto;
  max-height: calc(95vh - 4rem);
}

.blogmodal-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 2rem;
}

.blogmodal-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blogmodal-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
  margin: 0 2rem 1.5rem 2rem;
  width: fit-content;
}

.blogmodal-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 2rem 1rem 2rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}

.blogmodal-date,
.blogmodal-read-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-weight: 500;
}

.blogmodal-date i,
.blogmodal-read-time i {
  width: 14px;
  height: 14px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.blogmodal-title {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 2rem 1.5rem 2rem;
}

.blogmodal-tags {
  display: flex;
  gap: 0.75rem;
  margin: 0 2rem 2rem 2rem;
  flex-wrap: wrap;
}

.blogmodal-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-accent);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.blogmodal-text {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 2rem 3rem 2rem;
  padding-bottom: 2rem;
}

.blogmodal-text h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-accent);
}

.blogmodal-text h4 {
  color: var(--accent-secondary);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

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

.blogmodal-text ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.blogmodal-text li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.blogmodal-text blockquote {
  background: rgba(34, 139, 34, 0.1);
  border-left: 4px solid var(--accent-primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.blogmodal-text code {
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--accent-secondary);
}

.blogmodal-text pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.blogmodal-text pre code {
  background: none;
  border: none;
  padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .blogmodal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .blogmodal-body {
    max-height: calc(100vh - 3rem);
  }
  
  .blogmodal-hero {
    height: 200px;
    margin-bottom: 1.5rem;
  }
  
  .blogmodal-type-badge {
    margin: 0 1.5rem 1rem 1.5rem;
  }
  
  .blogmodal-meta {
    margin: 0 1.5rem 1rem 1.5rem;
  }
  
  .blogmodal-title {
    font-size: 2rem;
    margin: 0 1.5rem 1.5rem 1.5rem;
  }
  
  .blogmodal-tags {
    margin: 0 1.5rem 1.5rem 1.5rem;
  }
  
  .blogmodal-text {
    font-size: 1rem;
    margin: 0 1.5rem 2rem 1.5rem;
    padding-bottom: 1.5rem;
  }
}
