@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");

/* --- CSS Variables for Theming --- */
:root {
  /* Light Theme Colors (Default) */
  --bg-primary: linear-gradient(to right, rgb(255, 255, 255), rgb(254, 215, 173));
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-alt: #f8f9fa;
  --bg-card-content: #e0e0e0;
  --bg-nav: rgba(255, 255, 255, 0.5);
  --bg-nav-hover: rgba(109, 67, 0, 0.05);
  
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #6f6f6f;

  --accent-primary: rgb(109, 67, 0);
  --accent-secondary: rgb(254, 215, 173);
  --accent-glow: rgba(109, 67, 0, 0.7);

  --border-color: rgba(109, 67, 0, 0.15);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(109, 67, 0, 0.2);

  --filter-btn-bg: none;
  --filter-btn-border: #ddd;
  --filter-btn-text: #555;

  /* Brand colors (social icons pin their own !important values; these
     variables serve the clap button, timeline and any future use) */
  --linkedin-blue: #0a66c2;
  --github-dark: #333333;
  --facebook-blue: #1877f2;
  --x-black: #000000;
  --orcid-green: #a6ce39;
  --timeline-line: #e0e0e0;
}

/* Dark Theme Colors - True Dark Mode like Chrome */
[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-card: #2d2d2d;
  --bg-card-alt: #333333;
  --bg-card-content: #3d3d3d;
  --bg-nav: rgba(30, 30, 30, 0.9);
  --bg-nav-hover: rgba(255, 255, 255, 0.08);
  
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-muted: #808080;
  
  --accent-primary: #bb86fc;
  --accent-secondary: #03dac6;
  --accent-glow: rgba(187, 134, 252, 0.5);
  
  --border-color: rgba(255, 255, 255, 0.12);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --shadow-hover: rgba(187, 134, 252, 0.3);
  
  --filter-btn-bg: rgba(255, 255, 255, 0.05);
  --filter-btn-border: #404040;
  --filter-btn-text: #a0a0a0;
}

/* --- 1. General Setup --- */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 10vh;
}

* {
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- 2. Navigation Bar (Modern Design) --- */

nav {
  width: 100%;
  height: 10vh;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.nav-container {
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
}

/* Theme Toggle Button */
.theme-toggle {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-nav);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.theme-toggle i {
  position: absolute;
  font-size: 1.4rem;
  transition: all 0.4s ease;
}

/* Sun icon (shown in light mode) */
.theme-toggle .fa-sun {
  color: #ffc107;
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle .fa-moon {
  color: #8e99a4;
  opacity: 0;
  transform: rotate(-180deg);
}

/* Dark mode - switch icons */
[data-theme="dark"] .theme-toggle .fa-sun {
  opacity: 0;
  transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle .fa-moon {
  color: #ffc107;
  opacity: 1;
  transform: rotate(0deg);
}

.logo {
  font-size: 1.8rem;
  font-weight: bolder;
  white-space: nowrap;
}

.logo span {
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* Modern Navigation Wrapper */
.modern-nav-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modern-nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  background: var(--bg-nav);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 12px;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.3s ease;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-width: 65px;
}

.nav-item i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.nav-item span {
  font-size: 0.7rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Hover Effect */
.nav-item:hover {
  color: var(--accent-primary);
  background: var(--bg-nav-hover);
}

.nav-item:hover i {
  transform: translateY(-2px);
}

/* Active State with Gradient Underline */
.nav-item.active {
  color: var(--accent-primary);
  font-weight: 600;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--accent-glow) 0%, 
    var(--accent-primary) 50%, 
    rgba(13, 202, 240, 0.8) 100%
  );
  border-radius: 10px;
  animation: slideIn 0.3s ease-in-out;
}

/* Special styling for Contact button */
.nav-item-contact {
  background: rgba(109, 67, 0, 0.1);
  color: var(--accent-primary);
  font-weight: 600;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .nav-item-contact {
  background: var(--bg-nav-hover);
}

.nav-item-contact:hover {
  background: var(--accent-primary);
  color: white;
}

@keyframes slideIn {
  from {
    width: 0%;
    opacity: 0;
  }
  to {
    width: 60%;
    opacity: 1;
  }
}

/* Responsive adjustments for medium screens */
@media (max-width: 1400px) {
  .modern-nav-links {
    gap: 2px;
    padding: 6px 10px;
  }
  
  .nav-item {
    padding: 8px 10px;
    min-width: 55px;
  }
  
  .nav-item i {
    font-size: 1.1rem;
  }
  
  .nav-item span {
    font-size: 0.65rem;
  }
}

@media (max-width: 1200px) {
  .nav-item span {
    font-size: 0.6rem;
  }
  
  .nav-item {
    padding: 8px 8px;
    min-width: 50px;
  }
}

/* Post Navigation (for development.html) */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: var(--bg-nav);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.post-nav .nav-back-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.post-nav .nav-back-link:hover {
  color: var(--accent-primary);
}

.post-nav .nav-back-link i {
  font-size: 1rem;
}

.post-nav .theme-toggle {
  width: 45px;
  height: 45px;
}

/* --- 3. Hero Section (Home) --- */

section#home {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.main-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 40px;
}

.main-container .image {
  width: 45%;
  max-width: 450px;
}

.main-container .content {
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.content h1 span,
.content #typed-output {
  color: rgb(109, 67, 0);
  text-shadow: 0 0 10px rgba(109, 67, 0, 0.7);
}

.content .typewriter {
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  min-height: 5rem;
}

.typed-cursor {
  color: rgb(109, 67, 0);
  font-weight: bold;
}

.content p {
  font-size: 1rem;
  margin: 15px 0;
}

.social-links i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border: 0.2rem solid;
  border-radius: 50%;
  margin: 10px 15px 10px 0;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

/* GitHub - Black */
.social-links .github-icon i {
  border-color: #333 !important;
  color: #333 !important;
}
.social-links .github-icon:hover i {
  background-color: #333 !important;
  color: white !important;
  transform: scale(1.1);
}

/* Facebook - Blue */
.social-links .facebook-icon i {
  border-color: #1877F2 !important;
  color: #1877F2 !important;
}
.social-links .facebook-icon:hover i {
  background-color: #1877F2 !important;
  color: white !important;
  transform: scale(1.1);
}

/* LinkedIn - Blue */
.social-links .linkedin-icon i {
  border-color: #0A66C2 !important;
  color: #0A66C2 !important;
}
.social-links .linkedin-icon:hover i {
  background-color: #0A66C2 !important;
  color: white !important;
  transform: scale(1.1);
}

/* ORCID - Green */
.social-links .orcid-icon i {
  border-color: #A6CE39 !important;
  color: #A6CE39 !important;
}
.social-links .orcid-icon:hover i {
  background-color: #A6CE39 !important;
  color: white !important;
  transform: scale(1.1);
}

/* X/Twitter - Black */
.social-links .x-icon i {
  border-color: #000 !important;
  color: #000 !important;
}
.social-links .x-icon:hover i {
  background-color: #000 !important;
  color: white !important;
  transform: scale(1.1);
}

.content button {
  cursor: pointer;
  width: 180px;
  height: 50px;
  margin-top: 20px;
  background-color: rgb(109, 67, 0);
  color: white;
  border: 2px solid rgb(109, 67, 0);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 5px;
  transition: all 0.2s linear;
}

.content button:hover {
  background-color: transparent;
  color: rgb(109, 67, 0);
}

/* --- 4. Other Page Sections (About, Skills, etc.) --- */

.page-section {
  width: 100%;
  padding: 100px 20px;
  position: relative;
  z-index: 1;
}

.page-section .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 1.5rem + 3vw, 3rem);
  color: rgb(109, 67, 0);
  margin-bottom: 40px;
}

/* Back-arrow for sub-pages */
.page-title-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.page-title-header .section-title {
  margin-bottom: 0;
}

.back-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(109, 67, 0, 0.1);
  color: rgb(109, 67, 0);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.back-arrow-btn:hover {
  background: rgb(109, 67, 0);
  color: #fff;
  transform: translateX(-3px);
}

[data-theme="dark"] .back-arrow-btn {
  background: rgba(255, 193, 68, 0.15);
  color: #ffc144;
}

[data-theme="dark"] .back-arrow-btn:hover {
  background: #ffc144;
  color: #1a1a2e;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: left;
}

/* --- 5. Mobile & Dropdown Menu --- */

.hamburg,
.dropdown {
  display: none;
}

@media (max-width: 1024px) {
  .modern-nav-wrapper {
    display: none;
  }

  .hamburg {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    color: rgb(109, 67, 0);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
  }

  section#home {
    height: auto;
    padding-top: 5vh;
    padding-bottom: 5vh;
  }

  .main-container {
    flex-direction: column;
    text-align: center;
  }

  .main-container .image {
    width: 60%;
    max-width: 300px;
    margin-bottom: 30px;
  }

  .main-container .content {
    width: 100%;
    align-items: center;
  }

  .dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.4s ease-in-out, visibility 0.4s;
  }

  /* Keep the closed menu out of the tab order; .menu-open is toggled by the
     hamburg()/cancel() handlers alongside the inline transform. */
  .dropdown.menu-open {
    visibility: visible;
  }

  .dropdown .links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .dropdown .links a {
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
  }

  .dropdown .cancel {
    display: block;
    color: white;
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
  }

  .social-links i,
  .content button {
    transition: all 0.3s ease-in-out;
  }

  .social-links i:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(109, 67, 0, 0.4);
  }

  .content button:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(109, 67, 0, 0.4);
  }
}

/* ================================================== */
/* 6. ABOUT ME - STAT CARDS SECTION */
/* ================================================== */

.about-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.about-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary, #666);
  margin-bottom: 50px;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin: 0 auto;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 35px 20px;
  background: var(--bg-card, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow-color, rgba(0, 0, 0, 0.08));
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, rgba(109, 67, 0, 0.1));
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px var(--shadow-hover, rgba(109, 67, 0, 0.15));
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(109, 67, 0, 0.1), rgba(109, 67, 0, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgb(109, 67, 0);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgb(109, 67, 0);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary, #666);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dark mode */
[data-theme="dark"] .stat-icon {
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.15), rgba(3, 218, 198, 0.1));
  color: var(--accent-primary);
}

[data-theme="dark"] .stat-number {
  color: var(--accent-primary);
}

/* Mobile responsiveness */
@media screen and (max-width: 600px) {
  .stat-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 280px;
  }

  .stat-card {
    padding: 25px 15px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* ================================================== */
/* 7. SKILLS - SPLIT VIEW SHOWCASE */
/* ================================================== */

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.skills-split-view {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  align-items: flex-start;
}

.skills-left-panel {
  flex: 1.2;
}

.skill-filters {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.skill-filter-btn {
  background: none;
  border: 1px solid #ddd;
  color: #555;
  padding: 8px 18px;
  margin: 5px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-filter-btn:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}

.skill-filter-btn.active {
  background-color: rgb(109, 67, 0);
  color: white;
  border-color: rgb(109, 67, 0);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.skill-bubble {
  background-color: white;
  color: rgb(109, 67, 0);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.skill-bubble:hover {
  transform: translateY(-3px);
  background-color: #f5f5f5;
}

.skill-bubble.active {
  background-color: rgb(109, 67, 0);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 15px rgba(109, 67, 0, 0.2);
}

.skills-right-panel {
  flex: 1;
  position: sticky;
  top: 15vh;
}

#skill-info-box {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  min-height: 250px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

#skill-info-box i {
  font-size: 2rem;
  color: rgb(109, 67, 0);
  margin-bottom: 15px;
}

#skill-info-box h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #333;
}

#skill-info-box p {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
}

@media (max-width: 992px) {
  .skills-split-view {
    flex-direction: column;
    align-items: center;
  }

  .skills-left-panel {
    width: 100%;
  }

  .skills-right-panel {
    width: 100%;
    position: relative;
    top: 0;
    margin-top: 30px;
  }
}

/* ================================================== */
/* 8. CLEAN SIMPLE PROJECTS SECTION - NO TILT EFFECTS */
/* ================================================== */

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Clean, simple project card - COMPLETELY STATIC */
.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  position: relative;
  /* NO HOVER EFFECTS AT ALL */
}

/* Project image - static */
.project-card img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  background-color: #f5f5f5;
  padding: 10px;
}

/* Content area - grey background */
.card-content {
  background-color: #e0e0e0;
  padding: 35px 25px 80px 35px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.card-content h4 {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
}

.card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Tags - proper spacing */
.card-tags {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span {
  display: inline-block;
  background-color: rgba(109, 67, 0, 0.1);
  color: rgb(109, 67, 0);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(109, 67, 0, 0.2);
}

/* Button - static */
.details-btn {
  position: absolute;
  bottom: 30px;
  left: 35px;
  background-color: rgb(109, 67, 0);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.details-btn:hover {
  background-color: #2d1b00;
}

/* Homepage preview cards */
.project-preview-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.project-preview-card img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  background-color: #f5f5f5;
  padding: 8px;
}

.preview-card-content {
  background-color: #f8f9fa;
  padding: 20px;
}

.preview-card-content h4 {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  color: #333;
  font-weight: 600;
}

.preview-card-content p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-content {
    padding: 25px 20px 80px 25px;
  }

  .details-btn {
    position: absolute;
    bottom: 30px;
    left: 25px;
  }
}

@media (max-width: 480px) {
  .projects-container {
    padding: 0 15px;
  }

  .project-card img {
    max-height: 200px;
  }
}

/* ================================================== */
/* 8b. GITHUB REPOSITORIES SECTION                    */
/* ================================================== */

.github-repos-section {
  padding-top: 20px;
}

.github-section-header {
  margin-bottom: 10px;
}

.github-section-header .section-title i {
  margin-right: 10px;
  font-size: 1.8rem;
}

.github-subtitle {
  font-size: 1rem;
  color: #777;
  margin-top: 8px;
  margin-bottom: 0;
}

.github-repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

/* Individual repo card — clickable anchor */
.github-repo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 180px;
}

.github-repo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: rgb(109, 67, 0);
}

/* Top section: name + description */
.repo-card-top {
  flex-grow: 1;
}

.repo-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.repo-icon {
  color: rgb(109, 67, 0);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.repo-name-row h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgb(109, 67, 0);
  line-height: 1.3;
}

.repo-desc {
  font-size: 0.9rem;
  color: #586069;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bottom section: language, stats, updated */
.repo-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
  gap: 8px;
}

.repo-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #555;
}

.lang-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.repo-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: #666;
}

.repo-stat i {
  font-size: 0.85rem;
  color: #6f6f6f;
}

.repo-updated {
  font-size: 0.78rem;
  color: #6f6f6f;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .github-repo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .github-repo-card {
    padding: 20px;
    min-height: 160px;
  }
}

@media (max-width: 480px) {
  .github-repo-card {
    padding: 18px;
  }

  .repo-card-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}



/* ================================================== */
/* 9. IMPROVED MODAL STYLES */
/* ================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  z-index: 1050;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  background-color: #fafafa;
  border-radius: 12px 12px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background-color: #f0f0f0;
  color: #333;
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-body .modal-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
}

.modal-body h4 {
  font-size: 1.2rem;
  color: rgb(109, 67, 0);
  margin-top: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 5px;
}

.modal-body ol,
.modal-body ul {
  padding-left: 20px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .modal {
    width: 95%;
    max-height: 90vh;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-body {
    padding: 20px;
  }
}

/* ================================================== */
/* 10. EXPERIENCE SECTION */
/* ================================================== */

.experience-container {
  max-width: 900px;
  margin: 0 auto;
}

.experience-filters {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.exp-filter-btn {
  background: none;
  border: 1px solid #ddd;
  color: #555;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.exp-filter-btn:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}

.exp-filter-btn.active {
  background-color: rgb(109, 67, 0);
  color: white;
  border-color: rgb(109, 67, 0);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.experience-item {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  border-left: 5px solid rgb(109, 67, 0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.experience-header h4 {
  margin: 0;
  font-size: 1.3rem;
  color: #333;
}

.experience-dates {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6f6f6f;
  white-space: nowrap;
  margin-left: 20px;
}

.experience-org {
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
  font-weight: 500;
}

.experience-item ul {
  padding-left: 20px;
  margin: 0;
}

.experience-item li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: #666;
}

@media (max-width: 600px) {
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* ================================================== */
/* 11. SCHOLARSHIP & AWARDS SECTION */
/* ================================================== */

.awards-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.featured-award {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
  position: relative;
  border-top: 5px solid rgb(109, 67, 0);
}

.featured-award .featured-icon {
  font-size: 2.5rem;
  color: rgb(109, 67, 0);
  margin-bottom: 15px;
}

.featured-award .award-title {
  font-size: 1.8rem;
  margin: 0;
  color: #333;
}

.featured-award .award-level {
  font-size: 1.1rem;
  font-weight: 500;
  color: #555;
  margin: 5px 0 15px 0;
}

.featured-award .award-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.secondary-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.secondary-award {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.secondary-award:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.secondary-award .award-icon {
  font-size: 2rem;
  color: #a0a0a0;
  margin-bottom: 15px;
}

.secondary-award .award-title {
  font-size: 1.2rem;
  margin: 0;
  color: #444;
}

.secondary-award .award-level {
  font-size: 1rem;
  color: #777;
  margin-top: 5px;
}

/* ================================================== */
/* 12. VOLUNTEERING SECTION */
/* ================================================== */

.volunteering-container {
  max-width: 1100px;
  margin: 0 auto;
}

.volunteering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.volunteer-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.volunteer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.volunteer-icon {
  font-size: 2.5rem;
  color: rgb(109, 67, 0);
  margin-bottom: 20px;
}

.volunteer-header h3 {
  font-size: 1.5rem;
  margin: 0 0 5px 0;
  color: #333;
}

.volunteer-org {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  margin: 0;
}

.volunteer-dates {
  display: inline-block;
  background-color: #f5f5f5;
  color: #666666;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 15px;
}

.volunteer-body {
  margin-top: 25px;
  text-align: left;
}

.volunteer-body ul {
  padding-left: 20px;
  margin: 0;
  color: #666;
}

.volunteer-body li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ================================================== */
/* 13. CONTACT SECTION */
/* ================================================== */

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-subtitle {
  text-align: center;
  max-width: 600px;
  margin: -20px auto 50px auto;
  color: #666;
  line-height: 1.7;
}

.contact-content-wrapper {
  display: flex;
  gap: 40px;
}

.contact-form {
  flex: 1.5;
}

.form-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgb(109, 67, 0);
  box-shadow: 0 0 0 3px rgba(109, 67, 0, 0.1);
}

.contact-form textarea {
  resize: vertical;
}

.send-btn {
  background-color: rgb(109, 67, 0);
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.send-btn:hover {
  background-color: #3a2300;
  transform: translateY(-2px);
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.info-item i {
  font-size: 1.8rem;
  color: rgb(109, 67, 0);
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.info-item h4 {
  margin: 0 0 3px 0;
  font-size: 1.1rem;
  color: #333;
}

.info-item p {
  margin: 0;
  color: #666;
}

@media (max-width: 900px) {
  .contact-content-wrapper {
    flex-direction: column;
  }
}

#form-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  display: none;
}

#form-status.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#form-status.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ================================================== */
/* 14. FOOTER SECTION */
/* ================================================== */

footer {
  position: relative;
  width: 100%;
  background: #333333;
  padding: 50px 20px 20px 20px;
  color: #a0a0a0;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-socials {
  margin-bottom: 30px;
}

.footer-socials a {
  font-size: 1.5rem;
  color: #a0a0a0;
  margin: 0 15px;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-socials a:hover {
  color: #fff;
  transform: translateY(-3px);
}

.footer-nav {
  margin-bottom: 30px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-nav a {
  color: #a0a0a0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-icon-top {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.footer-icon-top a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px;
  background-color: rgb(109, 67, 0);
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-icon-top a:hover {
  background-color: #3a2300;
  box-shadow: 0 0 10px rgba(109, 67, 0, 0.5);
}

.footer-icon-top i {
  font-size: 1.2rem;
}

.footer-icon-top p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ================================================== */
/* 15. BRANDED SOCIAL ICON STYLING */
/* ================================================== */



.social-links a i {
  border: 0.2rem solid;
}

.social-links .linkedin-icon i {
  color: var(--linkedin-blue);
  border-color: var(--linkedin-blue);
}

.social-links .linkedin-icon:hover i {
  background-color: var(--linkedin-blue);
  color: white;
}

.social-links .github-icon i {
  color: var(--github-dark);
  border-color: var(--github-dark);
}

.social-links .github-icon:hover i {
  background-color: var(--github-dark);
  color: white;
}

.social-links .facebook-icon i {
  color: var(--facebook-blue);
  border-color: var(--facebook-blue);
}

.social-links .facebook-icon:hover i {
  background-color: var(--facebook-blue);
  color: white;
}

.social-links .x-icon i {
  color: var(--x-black);
  border-color: var(--x-black);
}

.social-links .x-icon:hover i {
  background-color: var(--x-black);
  color: white;
}

.social-links .orcid-icon i {
  color: var(--orcid-green);
  border-color: var(--orcid-green);
}

.social-links .orcid-icon:hover i {
  background-color: var(--orcid-green);
  color: white;
}

.footer-socials .linkedin-icon {
  color: var(--linkedin-blue);
}

.footer-socials .github-icon {
  color: var(--github-dark);
}

.footer-socials .facebook-icon {
  color: var(--facebook-blue);
}

.footer-socials .x-icon {
  color: var(--x-black);
}

.footer-socials .orcid-icon {
  color: var(--orcid-green);
}

/* ================================================== */
/* 16. BLOG SECTION STYLING */
/* ================================================== */

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.blog-subtitle {
  max-width: 600px;
  margin: -20px auto 40px auto;
  color: #666;
}

.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-filter-btn {
  background: none;
  border: 1px solid #ddd;
  color: #555;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-filter-btn:hover {
  background-color: #f0f0f0;
}

.blog-filter-btn.active {
  background-color: rgb(109, 67, 0);
  color: white;
  border-color: rgb(109, 67, 0);
}

.blog-search {
  position: relative;
}

.blog-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

#blog-search-input {
  padding: 10px 15px 10px 40px;
  border-radius: 20px;
  border: 1px solid #ddd;
  width: 250px;
  font-size: 0.9rem;
}

#blog-search-input:focus {
  outline: none;
  border-color: rgb(109, 67, 0);
  box-shadow: 0 0 0 3px rgba(109, 67, 0, 0.1);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.blog-grid p {
  text-align: center;
  width: 100%;
  font-style: italic;
  color: #666;
}

.blog-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 15px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-title {
  font-size: 1.3rem;
  margin: 0 0 10px 0;
}

.blog-title a {
  color: #333;
  text-decoration: none;
}

.blog-excerpt {
  flex-grow: 1;
}

.blog-card-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clap-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clap-btn.clapped {
  background-color: var(--orcid-green);
  border-color: var(--orcid-green);
  color: white;
  transform: scale(1.1);
}

.share-links a {
  color: #888;
  font-size: 1.2rem;
  margin-left: 15px;
}

.blog-card.featured-article {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.featured-article .blog-card-img {
  flex-basis: 55%;
}

.featured-article .blog-card-img img {
  height: 100%;
  border-radius: 8px 0 0 8px;
}

.featured-article .blog-card-content {
  flex-basis: 45%;
  padding: 40px;
}

@media (max-width: 768px) {
  .blog-card.featured-article {
    flex-direction: column;
  }
}

.blog-cta-container {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta-container p {
  margin: 0 0 20px 0;
  font-weight: 500;
  font-size: 1.1rem;
  color: #333;
}

.collab-cta-btn {
  background-color: rgb(109, 67, 0);
  color: #fff;
  border: 2px solid rgb(109, 67, 0);
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.collab-cta-btn:hover {
  background-color: transparent;
  color: rgb(109, 67, 0);
  transform: translateY(-2px);
}

#blog-collab-modal .form-group-vertical {
  margin-bottom: 20px;
  text-align: left;
}

#blog-collab-modal label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

#blog-collab-modal input,
#blog-collab-modal textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

#blog-collab-modal .send-btn {
  width: 100%;
}

/* ================================================== */
/* 17. SINGLE BLOG POST PAGE STYLES */
/* ================================================== */

.post-nav {
  padding: 15px 30px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-back-link {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease;
}

.nav-back-link:hover {
  color: rgb(109, 67, 0);
}

.post-page-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.post-content-container .loading-text,
.post-content-container .error-text {
  text-align: center;
  font-style: italic;
  color: #666;
  padding: 50px 0;
}

.post-content-container .error-text {
  color: #c00;
  font-weight: 600;
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #333;
  line-height: 1.2;
  margin-bottom: 15px;
}

.post-meta-single {
  color: #666;
  font-size: 0.95rem;
}

.post-hero-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 40px;
}

.post-body-content {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #373737;
}

.post-body-content p {
  margin-bottom: 1.5em;
}

.post-body-content h2,
.post-body-content h3,
.post-body-content h4 {
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  color: #333;
}

.post-body-content ul,
.post-body-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.post-body-content blockquote {
  margin: 2em 0;
  padding: 15px 25px;
  background: #f9f9f9;
  border-left: 5px solid rgb(109, 67, 0);
  font-style: italic;
  color: #555;
}

.clap-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.share-links a {
  color: #888;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.share-links a:hover {
  color: #333;
}

.btn-container {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid rgb(109, 67, 0);
  transition: all 0.3s ease;
}

.primary-btn {
  background-color: rgb(109, 67, 0);
  color: white;
}

.primary-btn:hover {
  background-color: transparent;
  color: rgb(109, 67, 0);
}

.secondary-btn {
  background-color: transparent;
  color: rgb(109, 67, 0);
}

.secondary-btn:hover {
  background-color: rgb(109, 67, 0);
  color: white;
}

/* ================================================== */
/* 18. PROFESSIONAL DEVELOPMENT (PORTAL & DETAIL PAGE) */
/* ================================================== */

.portal-container {
  max-width: 1200px;
  margin: 0 auto;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.portal-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: #333;
  border-bottom: 5px solid rgb(109, 67, 0);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

.portal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: rgb(109, 67, 0);
}

.portal-icon {
  font-size: 2.5rem;
  color: rgb(109, 67, 0);
  margin-bottom: 20px;
}

.portal-card h3 {
  font-size: 1.5rem;
  margin: 0 0 10px 0;
}

.portal-card p {
  line-height: 1.6;
  color: #666;
}

.development-container {
  max-width: 900px;
  margin: 0 auto;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: -20px auto 50px auto;
  color: #666;
  line-height: 1.7;
}

.category-title {
  font-size: 1.6rem;
  color: #333;
  text-align: left;
  margin-top: 60px;
  margin-bottom: 25px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-title:first-of-type {
  margin-top: 0;
}

.category-icon {
  color: rgb(109, 67, 0);
}

.e-learning-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.e-learning-item {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  border-left: 5px solid rgb(109, 67, 0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.e-learning-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 5px;
}

.e-learning-header h4 {
  margin: 0;
  font-size: 1.3rem;
  color: #333;
}

.e-learning-meta {
  font-style: italic;
  color: #555;
  margin: 0 0 15px 0;
  font-weight: 500;
}

.e-learning-skills {
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.e-learning-skills strong {
  color: #333;
  font-weight: 600;
}

.certificate-link {
  background-color: transparent;
  color: rgb(109, 67, 0);
  border: 1px solid rgb(109, 67, 0);
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.certificate-link:hover {
  background-color: rgb(109, 67, 0);
  color: #fff;
}

.certificate-link i {
  margin-left: 5px;
}

.presentation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.presentation-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  text-align: left;
}

.presentation-card h4 {
  font-size: 1.2rem;
  color: #333;
  margin: 0 0 8px 0;
}

.presentation-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
  font-style: italic;
}

.p-type {
  font-weight: 600;
}

.presentation-desc {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.presentation-card .details-btn {
  align-self: flex-start;
}

.webinar-list {
  list-style-type: none;
  padding: 0;
}

.webinar-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  color: #555;
  font-size: 1rem;
}

.webinar-item:last-child {
  border-bottom: none;
}

.webinar-item .webinar-title {
  font-weight: 500;
  color: #444;
}

.view-all-container {
  text-align: center;
  margin-top: 50px;
}

.blog-index-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-index-layout {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin-top: 40px;
  align-items: flex-start;
}

.filter-sidebar {
  flex-basis: 25%;
  position: sticky;
  top: 12vh;
}

.filter-sidebar h4 {
  font-size: 1.2rem;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
  margin: 0 0 15px 0;
}

.filter-list .filter-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  color: #555;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  margin-bottom: 5px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-list .filter-item:hover {
  background-color: #f5f5f5;
}

.filter-list .filter-item.active {
  background-color: rgb(109, 67, 0);
  color: #fff;
  font-weight: 600;
}

.article-feed {
  flex-basis: 75%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.article-feed .blog-card {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.article-feed .blog-card .blog-card-content {
  padding: 20px;
}

.article-feed .blog-card .blog-title {
  font-size: 1.15rem;
}

@media (max-width: 992px) {
  .blog-index-layout {
    flex-direction: column;
  }

  .filter-sidebar {
    position: relative;
    top: 0;
    width: 100%;
  }
}

.blog-archive-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-layout-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  margin-top: 30px;
}

.filter-sidebar {
  position: sticky;
  top: 12vh;
  height: fit-content;
}

.filter-sidebar h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 15px;
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  transition: all 0.2s ease;
}

.filter-list button:hover {
  background-color: #f5f5f5;
  color: rgb(109, 67, 0);
}

.filter-list button.active {
  background-color: rgb(109, 67, 0);
  color: #fff;
  font-weight: 600;
}

.article-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-content: start;
}

@media (max-width: 992px) {
  .blog-layout-grid {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 40px;
  }
}

.blog-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}



/* ================================================== */
/* 19. HOVER BORDER EFFECTS */
/* ================================================== */

/* Initial transparent borders to prevent layout shift - only for main cards */
.timeline-content,
.skill-bubble,
.project-card,
.project-preview-card,
.experience-item,
.featured-award,
.secondary-award,
.volunteer-card,
.portal-card,
.blog-card,
.modal {
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

/* Ensure all cards start with a transparent border to prevent layout shift on hover */
.project-card,
.project-preview-card,
.featured-award,
.secondary-award,
.volunteer-card {
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.experience-item {
  border-left: 5px solid rgb(109, 67, 0);
}

/* Footer gets its own handling */
footer {
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

/* Form inputs keep their own borders */
.contact-form input,
.contact-form textarea {
  transition: border-color 0.3s ease;
}

.card-tags span {
  border: 1px solid rgba(109, 67, 0, 0.2); /* Keep existing border */
  transition: border-color 0.3s ease;
}

/* Hover effects - only for main cards */
.timeline-content:hover,
.skill-bubble:hover,
.project-card:hover,
.project-preview-card:hover,
.featured-award:hover,
.secondary-award:hover,
.volunteer-card:hover,
.portal-card:hover,
.blog-card:hover,
.modal:hover {
  border-color: rgb(109, 67, 0);
}

.experience-item:hover {
  border-left: 5px solid rgb(109, 67, 0);
  border-right: 1px solid rgb(109, 67, 0);
  border-top: 1px solid rgb(109, 67, 0);
  border-bottom: 1px solid rgb(109, 67, 0);
}

footer:hover {
  border-color: rgb(254, 215, 173);
  border-style: solid !important;
  border-width: 1px !important;
}

.card-tags span:hover {
  border-color: rgb(109, 67, 0);
}

/* Remove hover borders from contact form elements */
.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #ddd; /* Reset to original gray border */
}

.info-item:hover {
  border-color: transparent; /* Remove border from info items */
}

/* ================================================== */
/* DARK THEME COMPREHENSIVE STYLES */
/* ================================================== */

/* Hero Section - Dark Mode */
[data-theme="dark"] .content h1,
[data-theme="dark"] .content h1 span {
  color: var(--accent-primary);
  text-shadow: 0 0 20px var(--accent-glow);
}

[data-theme="dark"] .content p {
  color: var(--text-secondary);
}

[data-theme="dark"] .typewriter,
[data-theme="dark"] #typed-output {
  color: var(--accent-primary);
}

[data-theme="dark"] .typed-cursor {
  color: var(--accent-primary);
}

/* Social Links - Dark Mode - Keep Brand Colors */
[data-theme="dark"] .social-links .github-icon i {
  border-color: #e0e0e0;
  color: #e0e0e0;
}
[data-theme="dark"] .social-links .github-icon:hover i {
  background-color: #e0e0e0;
  color: #121212;
}

[data-theme="dark"] .social-links .facebook-icon i {
  border-color: #1877F2;
  color: #1877F2;
}
[data-theme="dark"] .social-links .facebook-icon:hover i {
  background-color: #1877F2;
  color: white;
}

[data-theme="dark"] .social-links .linkedin-icon i {
  border-color: #0A66C2;
  color: #0A66C2;
}
[data-theme="dark"] .social-links .linkedin-icon:hover i {
  background-color: #0A66C2;
  color: white;
}

[data-theme="dark"] .social-links .orcid-icon i {
  border-color: #A6CE39;
  color: #A6CE39;
}
[data-theme="dark"] .social-links .orcid-icon:hover i {
  background-color: #A6CE39;
  color: #121212;
}

[data-theme="dark"] .social-links .x-icon i {
  border-color: #e0e0e0;
  color: #e0e0e0;
}
[data-theme="dark"] .social-links .x-icon:hover i {
  background-color: #e0e0e0;
  color: #121212;
}

/* Buttons - Dark Mode */
[data-theme="dark"] .hero-btn.primary-btn,
[data-theme="dark"] .content button {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #1a1a2e;
}

[data-theme="dark"] .hero-btn.primary-btn:hover,
[data-theme="dark"] .content button:hover {
  background-color: transparent;
  color: var(--accent-primary);
}

[data-theme="dark"] .hero-btn.secondary-btn {
  background-color: transparent;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

[data-theme="dark"] .send-btn {
  background-color: var(--accent-primary);
  color: #1a1a2e;
}

[data-theme="dark"] .send-btn:hover {
  background-color: var(--accent-secondary);
}

/* Section Titles - Dark Mode */
[data-theme="dark"] .section-title {
  color: var(--accent-primary);
}

[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .blog-subtitle,
[data-theme="dark"] .contact-subtitle {
  color: var(--text-secondary);
}

/* Timeline - Dark Mode */
[data-theme="dark"] .timeline::after {
  background-color: var(--timeline-line);
}

[data-theme="dark"] .timeline-icon {
  background-color: var(--bg-secondary);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

[data-theme="dark"] .timeline-content {
  background-color: var(--bg-card);
  box-shadow: 0 3px 15px var(--shadow-color);
}

[data-theme="dark"] .timeline-content h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .timeline-content p {
  color: var(--text-secondary);
}

[data-theme="dark"] .timeline-date {
  background-color: var(--bg-card-content);
  color: var(--accent-primary);
}

/* Filter Buttons - Dark Mode */
[data-theme="dark"] .filter-btn,
[data-theme="dark"] .skill-filter-btn,
[data-theme="dark"] .exp-filter-btn {
  background: var(--filter-btn-bg);
  border-color: var(--filter-btn-border);
  color: var(--filter-btn-text);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .skill-filter-btn:hover,
[data-theme="dark"] .exp-filter-btn:hover {
  background-color: var(--bg-nav-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

[data-theme="dark"] .filter-btn.active,
[data-theme="dark"] .skill-filter-btn.active,
[data-theme="dark"] .exp-filter-btn.active {
  background-color: var(--accent-primary);
  color: #1a1a2e;
  border-color: var(--accent-primary);
}

/* Skills Section - Dark Mode */
[data-theme="dark"] .skill-bubble {
  background-color: var(--bg-card);
  color: var(--accent-primary);
  box-shadow: 0 2px 10px var(--shadow-color);
}

[data-theme="dark"] .skill-bubble:hover {
  background-color: var(--bg-card-alt);
}

[data-theme="dark"] .skill-bubble.active {
  background-color: var(--accent-primary);
  color: #1a1a2e;
}

[data-theme="dark"] #skill-info-box {
  background-color: var(--bg-card);
  box-shadow: 0 5px 25px var(--shadow-color);
}

[data-theme="dark"] #skill-info-box i {
  color: var(--accent-primary);
}

[data-theme="dark"] #skill-info-box h3 {
  color: var(--text-primary);
}

[data-theme="dark"] #skill-info-box p {
  color: var(--text-secondary);
}

/* Project Cards - Dark Mode */
[data-theme="dark"] .project-card,
[data-theme="dark"] .project-preview-card {
  background: var(--bg-card);
  box-shadow: 0 4px 15px var(--shadow-color);
}

[data-theme="dark"] .card-content {
  background-color: var(--bg-card-content);
}

[data-theme="dark"] .card-content h4,
[data-theme="dark"] .preview-card-content h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .card-content p,
[data-theme="dark"] .preview-card-content p {
  color: var(--text-secondary);
}

[data-theme="dark"] .preview-card-content {
  background-color: var(--bg-card-alt);
}

[data-theme="dark"] .card-tags span {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--accent-primary);
  border-color: rgba(255, 193, 7, 0.2);
}

[data-theme="dark"] .details-btn {
  background-color: var(--accent-primary);
  color: #1a1a2e;
}

[data-theme="dark"] .details-btn:hover {
  background-color: var(--accent-secondary);
}

/* GitHub Repo Cards - Dark Mode */
[data-theme="dark"] .github-subtitle {
  color: var(--text-secondary);
}

[data-theme="dark"] .github-repo-card {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .github-repo-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .repo-icon,
[data-theme="dark"] .repo-name-row h4 {
  color: var(--accent-primary);
}

[data-theme="dark"] .repo-desc {
  color: var(--text-secondary);
}

[data-theme="dark"] .repo-card-bottom {
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .repo-lang {
  color: var(--text-secondary);
}

[data-theme="dark"] .repo-stat {
  color: var(--text-secondary);
}

[data-theme="dark"] .repo-stat i {
  color: var(--text-secondary);
}

[data-theme="dark"] .repo-updated {
  color: rgba(255, 255, 255, 0.4);
}

/* Experience Section - Dark Mode */
[data-theme="dark"] .experience-item {
  background-color: var(--bg-card);
  border-left-color: var(--accent-primary);
  box-shadow: 0 3px 10px var(--shadow-color);
}

[data-theme="dark"] .experience-item h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .experience-item p,
[data-theme="dark"] .experience-item li {
  color: var(--text-secondary);
}

[data-theme="dark"] .experience-dates {
  color: var(--accent-primary);
}

[data-theme="dark"] .experience-org {
  color: var(--text-muted);
}

[data-theme="dark"] .experience-item:hover {
  border-color: var(--accent-primary);
}

/* Awards Section - Dark Mode */
[data-theme="dark"] .featured-award {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-content) 100%);
  box-shadow: 0 10px 30px var(--shadow-color);
}

[data-theme="dark"] .featured-award .award-title,
[data-theme="dark"] .secondary-award .award-title {
  color: var(--text-primary);
}

[data-theme="dark"] .featured-award .award-level,
[data-theme="dark"] .secondary-award .award-level {
  color: var(--accent-primary);
}

[data-theme="dark"] .featured-award .award-description {
  color: var(--text-secondary);
}

[data-theme="dark"] .featured-award .award-icon,
[data-theme="dark"] .secondary-award .award-icon {
  color: var(--accent-primary);
}

[data-theme="dark"] .secondary-award {
  background-color: var(--bg-card);
  box-shadow: 0 3px 15px var(--shadow-color);
}

/* Volunteering Section - Dark Mode */
[data-theme="dark"] .volunteer-card {
  background-color: var(--bg-card);
  box-shadow: 0 5px 20px var(--shadow-color);
}

[data-theme="dark"] .volunteer-card h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .volunteer-org {
  color: var(--accent-primary);
}

[data-theme="dark"] .volunteer-dates {
  color: var(--text-muted);
}

[data-theme="dark"] .volunteer-body li {
  color: var(--text-secondary);
}

[data-theme="dark"] .volunteer-icon i {
  color: var(--accent-primary);
}

/* Professional Development Portal - Dark Mode */
[data-theme="dark"] .portal-card {
  background-color: var(--bg-card);
  box-shadow: 0 5px 20px var(--shadow-color);
}

[data-theme="dark"] .portal-card:hover {
  box-shadow: 0 10px 40px var(--shadow-hover);
}

[data-theme="dark"] .portal-card h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .portal-card p {
  color: var(--text-secondary);
}

[data-theme="dark"] .portal-icon {
  color: var(--accent-primary);
}

/* Blog Section - Dark Mode */
[data-theme="dark"] .blog-card {
  background-color: var(--bg-card);
  box-shadow: 0 5px 20px var(--shadow-color);
}

[data-theme="dark"] .blog-card-content {
  background-color: var(--bg-card-alt);
}

[data-theme="dark"] .blog-title a {
  color: var(--text-primary);
}

[data-theme="dark"] .blog-title a:hover {
  color: var(--accent-primary);
}

[data-theme="dark"] .blog-excerpt {
  color: var(--text-secondary);
}

[data-theme="dark"] .blog-meta span {
  color: var(--text-muted);
}

[data-theme="dark"] .clap-btn {
  background-color: var(--bg-card-content);
}

[data-theme="dark"] .share-links a {
  color: var(--text-muted);
}

[data-theme="dark"] .share-links a:hover {
  color: var(--accent-primary);
}

/* Blog CTA / Collaboration Section - Dark Mode */
[data-theme="dark"] .blog-cta-container {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .blog-cta-container p {
  color: var(--text-primary);
}

[data-theme="dark"] .collab-cta-btn {
  background-color: var(--accent-primary);
  color: #121212;
  border-color: var(--accent-primary);
  font-weight: 700;
}

[data-theme="dark"] .collab-cta-btn:hover {
  background-color: transparent;
  color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.4);
}

/* Contact Info Items - Static, no hover effects */
[data-theme="dark"] .contact-info {
  background: transparent;
}

[data-theme="dark"] .info-item {
  background-color: var(--bg-card);
  border: 1px solid transparent;
}

[data-theme="dark"] .info-item i {
  background-color: rgba(187, 134, 252, 0.15);
  border-radius: 50%;
  padding: 12px;
  font-size: 1.2rem;
  color: var(--accent-primary);
}

[data-theme="dark"] .info-item h4 {
  color: var(--text-primary);
  font-weight: 600;
}

[data-theme="dark"] .info-item p,
[data-theme="dark"] .info-item a {
  color: var(--text-secondary);
}

/* Form Elements in Dark Mode - Better Consistency */
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea,
[data-theme="dark"] #blog-collab-modal input,
[data-theme="dark"] #blog-collab-modal textarea {
  background-color: var(--bg-card-content);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder,
[data-theme="dark"] #blog-collab-modal input::placeholder,
[data-theme="dark"] #blog-collab-modal textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus,
[data-theme="dark"] #blog-collab-modal input:focus,
[data-theme="dark"] #blog-collab-modal textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(187, 134, 252, 0.3);
  outline: none;
}

/* Section Titles in Dark Mode - Consistent Purple */
[data-theme="dark"] .blog-section h2,
[data-theme="dark"] .contact-section h2,
[data-theme="dark"] .section-title {
  color: var(--accent-primary);
  text-shadow: 0 0 30px rgba(187, 134, 252, 0.4);
}

/* Contact Section - Dark Mode */
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
  color: var(--text-muted);
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

[data-theme="dark"] .contact-info .info-item {
  background-color: var(--bg-card);
}

[data-theme="dark"] .contact-info .info-item i {
  color: var(--accent-primary);
}

[data-theme="dark"] .contact-info .info-item h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .contact-info .info-item p {
  color: var(--text-secondary);
}

/* Modal - Dark Mode */
[data-theme="dark"] .modal {
  background-color: var(--bg-card);
  box-shadow: 0 20px 60px var(--shadow-color);
}

[data-theme="dark"] .modal-header h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .modal-body p {
  color: var(--text-secondary);
}

[data-theme="dark"] .modal-body label {
  color: var(--text-primary);
}

[data-theme="dark"] .modal-body input,
[data-theme="dark"] .modal-body textarea {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .modal-overlay {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Footer - Dark Mode */
[data-theme="dark"] footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-socials a i {
  color: var(--text-secondary);
  border-color: var(--text-secondary);
}

[data-theme="dark"] .footer-socials a i:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background-color: rgba(255, 193, 7, 0.1);
}

[data-theme="dark"] .footer-nav ul li a {
  color: var(--text-secondary);
}

[data-theme="dark"] .footer-nav ul li a:hover {
  color: var(--accent-primary);
}

[data-theme="dark"] .footer-bottom p {
  color: var(--text-muted);
}

[data-theme="dark"] .footer-icon-top a {
  color: var(--accent-primary);
}

[data-theme="dark"] footer:hover {
  border-color: var(--accent-primary);
}

/* Dropdown Mobile Menu - Dark Mode */
[data-theme="dark"] .dropdown {
  background-color: rgba(26, 26, 46, 0.95);
}

[data-theme="dark"] .dropdown .links a {
  color: var(--text-primary);
}

[data-theme="dark"] .dropdown .links a:hover {
  color: var(--accent-primary);
}

/* Scrollbar - Dark Mode */
[data-theme="dark"]::-webkit-scrollbar {
  width: 10px;
}

[data-theme="dark"]::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

[data-theme="dark"]::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 5px;
}

[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* ================================================== */
/* SMOOTH GLOWING BORDER HOVER EFFECT FOR ALL CARDS */
/* ================================================== */

/* Base transition for all cards - SMOOTH */
.project-card,
.project-preview-card,
.blog-card,
.portal-card,
.volunteer-card,
.secondary-award,
.featured-award,
.experience-item,
.timeline-content,
.skill-bubble,
.filter-btn,
.skill-filter-btn,
.exp-filter-btn,
.nav-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Mode Glow - Subtle brown/gold glow */
.project-card:hover,
.project-preview-card:hover,
.blog-card:hover,
.portal-card:hover,
.volunteer-card:hover,
.secondary-award:hover,
.experience-item:hover,
.timeline-content:hover {
  box-shadow: 0 8px 32px rgba(109, 67, 0, 0.15), 
              0 0 0 1px rgba(109, 67, 0, 0.1);
  transform: translateY(-4px);
}

/* Dark Mode Glow - Purple accent glow like the image */
[data-theme="dark"] .project-card,
[data-theme="dark"] .project-preview-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .portal-card,
[data-theme="dark"] .volunteer-card,
[data-theme="dark"] .secondary-award,
[data-theme="dark"] .experience-item,
[data-theme="dark"] .timeline-content {
  border: 1px solid transparent;
}

[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .project-preview-card:hover,
[data-theme="dark"] .blog-card:hover,
[data-theme="dark"] .portal-card:hover,
[data-theme="dark"] .volunteer-card:hover,
[data-theme="dark"] .secondary-award:hover,
[data-theme="dark"] .experience-item:hover,
[data-theme="dark"] .timeline-content:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.3),
              0 0 40px rgba(187, 134, 252, 0.15),
              0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px) scale(1.02);
}

/* Featured Award special glow - even more dramatic */
[data-theme="dark"] .featured-award {
  border: 1px solid transparent;
}

[data-theme="dark"] .featured-award:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px rgba(187, 134, 252, 0.5),
              0 0 60px rgba(187, 134, 252, 0.25),
              0 10px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-6px) scale(1.03);
}

/* Skill bubbles glow - smooth pulsing effect */
[data-theme="dark"] .skill-bubble:hover {
  box-shadow: 0 0 15px rgba(187, 134, 252, 0.5),
              0 4px 20px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

/* Filter buttons glow */
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .skill-filter-btn:hover,
[data-theme="dark"] .exp-filter-btn:hover {
  box-shadow: 0 0 12px rgba(187, 134, 252, 0.4);
  transform: translateY(-2px);
}

/* Contact info items - no hover effects, keep it simple */
[data-theme="dark"] .info-item {
  border: 1px solid transparent;
  border-radius: 12px;
}

/* Modal glow - always glowing */
[data-theme="dark"] .modal {
  border: 1px solid rgba(187, 134, 252, 0.2);
  box-shadow: 0 0 40px rgba(187, 134, 252, 0.15),
              0 20px 60px rgba(0, 0, 0, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nav item glow on hover - smooth */
[data-theme="dark"] .nav-item:hover {
  box-shadow: 0 0 12px rgba(187, 134, 252, 0.25);
}

/* Theme toggle button glow - pulsing effect */
.theme-toggle {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 0 25px rgba(187, 134, 252, 0.5);
  transform: scale(1.15) rotate(10deg);
}

/* Additional smooth animations for buttons */
.details-btn,
.send-btn,
.hero-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.details-btn:hover,
.send-btn:hover,
.hero-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Smooth icon animations */
i {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark-mode overrides for rules that hardcode light-theme colors.
   Without these, article text, modals and development-page cards render
   dark-gray-on-dark backgrounds (as low as ~1.3:1). */
[data-theme="dark"] .post-body-content {
  color: var(--text-primary);
}

[data-theme="dark"] .post-body-content h2,
[data-theme="dark"] .post-body-content h3,
[data-theme="dark"] .post-body-content h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .post-body-content blockquote {
  background: var(--bg-card);
}

[data-theme="dark"] .modal-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .filter-sidebar h4 {
  color: var(--text-primary);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .e-learning-item {
  background: var(--bg-card);
  box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .presentation-card {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 2px 15px var(--shadow-color);
}

[data-theme="dark"] .presentation-card h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .presentation-meta {
  color: var(--text-secondary);
}

[data-theme="dark"] .webinar-item {
  color: var(--text-secondary);
  border-bottom-color: var(--border-color);
}

/* Publications — proper academic list: left-aligned with hanging indents.
   (The section container centers everything by default, which made the
   citations render ragged.) */
.publication-list {
  text-align: left;
  list-style-position: outside;
}

.publication-list li {
  text-align: left;
  margin-bottom: 18px;
  padding-left: 6px;
  line-height: 1.6;
}

/* Section headings inside custom containers — these sections don't use the
   centered .page-section .container, so their titles sat left-aligned. */
.experience-container .section-title,
.volunteering-container .section-title,
.portal-container .section-title,
.contact-container .section-title {
  text-align: center;
}

