/* ===== FLASH PREVENTION ===== */
html {
  visibility: hidden;
}

html.theme-loaded {
  visibility: visible;
}

/* ===== CSS VARIABLES ===== */
:root {
  /* Light Theme Colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #06b6d4;
  --bg-color: #ffffff;
  --bg-secondary: #f8fafc;
  --text-color: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Dark Theme Colors */
[data-bs-theme="dark"] {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #94a3b8;
  --accent-color: #22d3ee;
  --bg-color: #0f172a;
  --bg-secondary: #1e293b;
  --text-color: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ===== UTILITY CLASSES ===== */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVIGATION ===== */
.navbar {
  background-color: var(--bg-color) !important;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color) !important;
  font-family: var(--font-mono);
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background-color: var(--bg-secondary);
}

/* Dropdown Menu Styles */
.dropdown-menu {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-medium);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-item {
  color: var(--text-color);
  padding: 0.5rem 1rem;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
}

.dropdown-item i {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.dropdown-item:hover i {
  color: var(--primary-color);
}

.nav-icon {
  color: var(--text-secondary) !important;
  border: none !important;
  padding: 0.5rem !important;
  margin: 0 0.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-icon:hover {
  color: var(--primary-color) !important;
  background-color: var(--bg-secondary) !important;
}

/* Mobile Header */
.mobile-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 1.5rem;
  height: 2px;
  background-color: var(--text-color);
  margin: 2px 0;
  transition: all var(--transition-normal);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background-color: var(--bg-color);
  padding: 2rem;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-large);
  display: flex;
  flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile-nav-list li {
  margin: 0.5rem 0;
}

.mobile-nav-link {
  display: block;
  padding: 1rem;
  color: var(--text-color);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--primary-color);
  background-color: var(--bg-secondary);
}

/* Mobile Navigation Dropdown */
.mobile-nav-dropdown {
  position: relative;
}

.mobile-nav-dropdown > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: var(--bg-secondary);
  border-left: 3px solid var(--primary-color);
  margin-left: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.mobile-nav-dropdown.active .mobile-nav-submenu {
  max-height: 400px;
  overflow-y: auto;
}

.mobile-nav-submenu .mobile-nav-link {
  padding: 0.75rem 1rem 0.75rem 2rem;
  font-size: 0.9rem;
  border-left: none;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  position: relative;
  width: 90%;
  max-width: 600px;
}

.search-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.search-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.search-form {
  display: flex;
  background-color: var(--bg-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-large);
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--text-color);
  font-size: 1.125rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-btn {
  padding: 1rem 1.5rem;
  background-color: var(--primary-color);
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.search-btn:hover {
  background-color: var(--primary-dark);
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 2rem 0;
  background: 
    linear-gradient(135deg, 
      rgba(37, 99, 235, 0.03) 0%, 
      rgba(6, 182, 212, 0.02) 25%, 
      rgba(37, 99, 235, 0.01) 50%, 
      rgba(6, 182, 212, 0.03) 75%, 
      rgba(37, 99, 235, 0.02) 100%
    ),
    linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: visible;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero section particles overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Hero Particles */


.hero-row {
  min-height: 80vh;
  padding: 2rem 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex: 1;
}

.hero-content {
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .hero-content {
    padding: 0.5rem 0;
  }
  
  .hero-image {
    padding: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .image-placeholder {
    width: 180px;
    height: 180px;
    font-size: 3.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.image-placeholder {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  color: white;
  box-shadow: var(--shadow-large);
}

/* Scroll Down Button */
.scroll-down-container {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 10;
  text-align: center;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-down-btn {
  width: 60px;
  height: 60px;
  border: 2px solid var(--primary-color);
  background: transparent;
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
  pointer-events: auto;
  position: relative;
  z-index: 20;
}

.scroll-down-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.scroll-down-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}



/* Dark theme support for scroll down button */
[data-bs-theme="dark"] .scroll-down-btn {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

[data-bs-theme="dark"] .scroll-down-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Dark theme support for hero section */
[data-bs-theme="dark"] .hero-section {
  background: 
    linear-gradient(135deg, 
      rgba(59, 130, 246, 0.05) 0%, 
      rgba(34, 211, 238, 0.03) 25%, 
      rgba(59, 130, 246, 0.02) 50%, 
      rgba(34, 211, 238, 0.04) 75%, 
      rgba(59, 130, 246, 0.03) 100%
    ),
    linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
}





/* Responsive styles for scroll down button */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
    padding: 0.5rem 0;
    position: relative;
  }
  
  .hero-row {
    min-height: 80vh;
    padding: 1rem 0 5rem 0;
  }
  
  .hero-content {
    padding: 0.5rem 0;
  }
  
  .hero-image {
    padding: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .scroll-down-container {
    bottom: 1rem;
    position: absolute;
    width: 100%;
  }
  
  .scroll-down-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-medium);
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 85vh;
    padding: 0.25rem 0;
    position: relative;
  }
  
  .hero-row {
    min-height: 75vh;
    padding: 0.5rem 0 4rem 0;
  }
  
  .hero-content {
    padding: 0.25rem 0;
  }
  
  .hero-image {
    padding: 0.25rem;
    margin-bottom: 0.5rem;
  }
  
  .scroll-down-container {
    bottom: 0.5rem;
    position: absolute;
    width: 100%;
  }
  
  .scroll-down-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-medium);
  }
}

/* ===== SECTIONS ===== */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-section {
  background-color: var(--bg-secondary);
}

.about-content h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.skills-showcase h3 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  background-color: var(--bg-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.skill-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.skill-item span {
  font-weight: 500;
  color: var(--text-color);
  text-align: center;
}

/* Portfolio Section */
.portfolio-filter {
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.portfolio-item {
  opacity: 1;
  transform: scale(1);
  transition: all var(--transition-normal);
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  display: none !important;
}

.portfolio-card {
  background-color: var(--bg-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-large);
}

.portfolio-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-image .image-placeholder {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-size: 4rem;
  color: white;
  box-shadow: none;
}

.portfolio-content {
  padding: 1.5rem;
  padding-bottom: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-content h4 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  flex: 1;
}

.portfolio-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 0.5rem;
}

/* Blog Cards */
.blog-card {
  background-color: var(--bg-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.blog-image {
  height: 200px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure featured images fill the card area without overflow */
.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-fast);
}

.blog-image-link:hover {
  opacity: 0.9;
}

.blog-image .image-placeholder {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-size: 3rem;
  color: white;
  box-shadow: none;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.blog-category {
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.blog-category:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-light);
}

.blog-date {
  color: var(--text-secondary);
}

.blog-title {
  color: var(--text-color);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  transition: color var(--transition-fast);
}

.blog-title:hover {
  color: var(--primary-color);
}

.blog-title-link {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

.blog-title-link:hover {
  color: var(--primary-color);
}

.blog-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.blog-read-more {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-read-more:hover {
  color: var(--primary-dark);
}

/* Contact Form */
.contact-form {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
}

.contact-form .form-control {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-form .form-control:focus {
  background-color: var(--bg-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.contact-form .form-control::placeholder {
  color: var(--text-secondary);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 50%;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* About section social links */
.about-content .social-links {
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.about-content .social-link {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
}

/* Contact form input groups */
.contact-form .input-group-text {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.contact-form .form-control:focus + .input-group-text,
.contact-form .input-group:focus-within .input-group-text {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Clickable portfolio and blog links */
.portfolio-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.portfolio-image-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
}

.portfolio-image-link:hover .portfolio-image {
  box-shadow: var(--shadow-medium);
}

.portfolio-title-link {
  text-decoration: none;
  color: var(--text-color);
  transition: all var(--transition-fast);
}

.portfolio-title-link:hover {
  text-decoration: none;
  color: var(--primary-color);
}

.portfolio-title-link h4 {
  margin: 0;
  transition: all var(--transition-fast);
}

.blog-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.blog-image-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
}

.blog-image-link:hover .blog-image {
  box-shadow: var(--shadow-medium);
}

.blog-title-link {
  text-decoration: none;
  color: var(--text-color);
  transition: all var(--transition-fast);
}

.blog-title-link:hover {
  text-decoration: none;
  color: var(--primary-color);
}

.blog-title-link h4 {
  margin: 0;
  transition: all var(--transition-fast);
}

/* Popular posts in sidebar */
.popular-post {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.popular-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.popular-post:hover {
  text-decoration: none;
  color: inherit;
  transform: translateX(5px);
}

.popular-post:hover .popular-post-content h5 {
  color: var(--primary-color);
}

 /* Single Blog Post Page CSS */ 
.blog-post-header {
            background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
            padding: 4rem 0 2rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .blog-post-title {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text-color);
            line-height: 1.2;
        }
        
        .blog-post-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }
        
        .blog-post-category {
            background-color: var(--primary-color);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: var(--radius-md);
            font-weight: 500;
            font-size: 0.875rem;
            text-decoration: none;
            transition: all var(--transition-fast);
            display: inline-block;
        }
        
        .blog-post-category:hover {
            background-color: var(--accent-color);
            color: white;
            transform: translateY(-1px);
            box-shadow: var(--shadow-light);
        }
        
        .blog-post-date {
            color: var(--text-secondary);
            font-size: 0.875rem;
        }
        
        .blog-post-author {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            font-size: 0.875rem;
        }
        
        .blog-post-content {
            padding: 3rem 0;
            line-height: 1.8;
        }
        
        .blog-post-content h2 {
            font-size: 2rem;
            font-weight: 600;
            margin: 2.5rem 0 1rem;
            color: var(--text-color);
            border-bottom: 2px solid var(--primary-color);
            padding-bottom: 0.5rem;
        }
        
        .blog-post-content h3 {
            font-size: 1.5rem;
            font-weight: 600;
            margin: 2rem 0 1rem;
            color: var(--text-color);
        }
        
        .blog-post-content p {
            margin-bottom: 1.5rem;
            color: var(--text-secondary);
            font-size: 1.1rem;
        }
        
        .blog-post-content ul, .blog-post-content ol {
            margin-bottom: 1.5rem;
            padding-left: 2rem;
        }
        
        .blog-post-content li {
            margin-bottom: 0.5rem;
            color: var(--text-secondary);
        }
        
        .blog-post-content code {
            background-color: var(--bg-secondary);
            color: var(--primary-color);
            padding: 0.2rem 0.4rem;
            border-radius: var(--radius-sm);
            font-family: var(--font-mono);
            font-size: 0.9rem;
        }
        
        .blog-post-content pre {
            background-color: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            margin: 1.5rem 0;
            overflow-x: auto;
        }
        
        .blog-post-content pre code {
            background: none;
            padding: 0;
            color: var(--text-color);
        }
        

        
        .blog-post-content blockquote {
            border-left: 4px solid var(--primary-color);
            padding-left: 1.5rem;
            margin: 2rem 0;
            font-style: italic;
            color: var(--text-secondary);
            background-color: var(--bg-secondary);
            padding: 1.5rem;
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
        }
        
        .blog-post-content img {
            max-width: 100%;
            height: auto;
            border-radius: var(--radius-md);
            margin: 2rem 0;
            box-shadow: var(--shadow-medium);
        }
        
        .blog-post-tags {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin: 2rem 0;
        }
        
        .blog-post-tag {
            background-color: var(--bg-secondary);
            color: var(--text-secondary);
            padding: 0.25rem 0.75rem;
            border-radius: var(--radius-sm);
            font-size: 0.875rem;
            text-decoration: none;
            transition: all var(--transition-fast);
        }
        
        .blog-post-tag:hover {
            background-color: var(--primary-color);
            color: white;
        }
        
        .blog-post-navigation {
            border-top: 1px solid var(--border-color);
            padding-top: 2rem;
        }
        
        .blog-post-navigation .row {
            align-items: center;
        }
        
        .nav-link-prev, .nav-link-next {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            text-decoration: none;
            transition: color var(--transition-fast);
        }
        
        .nav-link-prev:hover, .nav-link-next:hover {
            color: var(--primary-color);
        }
        
        .nav-link-next {
            justify-content: flex-end;
        }
        
        .related-posts {
            background-color: var(--bg-secondary);
            padding: 3rem 0;
            margin-top: 3rem;
        }
        

/* ===== BLOG SIDEBAR STYLES ===== */
.blog-sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-widget {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-widget h4 {
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Search Widget */
.search-widget .input-group {
  margin-bottom: 0;
}

.search-widget .form-control {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  transition: all var(--transition-fast);
}

.search-widget .form-control:focus {
  background-color: var(--bg-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.search-widget .form-control::placeholder {
  color: var(--text-secondary);
}

.search-widget .btn {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.75rem 1rem;
}

/* Popular Post Image and Content */
.popular-post-image {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.popular-post-image i {
  color: white;
  font-size: 1.5rem;
}

.popular-post-content {
  flex: 1;
  min-width: 0;
}

.popular-post-content h5 {
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.popular-post-content .post-date {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* Category List */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-list li:last-child {
  margin-bottom: 0;
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-color);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.category-link:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  transform: translateX(5px);
  border-color: var(--primary-color);
}

.category-link span:first-child {
  font-weight: 500;
}

.category-count {
  background-color: var(--bg-color);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.category-link:hover .category-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.tag-cloud a:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
  text-decoration: none;
}

/* Responsive Sidebar */
@media (max-width: 991.98px) {
  .blog-sidebar {
    position: static;
    margin-top: 2rem;
  }
  
  .sidebar-widget {
    padding: 1.25rem;
  }
  
  .popular-post-image {
    width: 50px;
    height: 50px;
  }
  
  .popular-post-image i {
    font-size: 1.25rem;
  }
  
  .popular-post-content h5 {
    font-size: 0.9rem;
  }
  
  .tag-cloud a {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
}

@media (max-width: 767.98px) {
  .sidebar-widget {
    padding: 1rem;
  }
  
  .sidebar-widget h4 {
    font-size: 1.1rem;
  }
  
  .category-link {
    padding: 0.6rem 0.8rem;
  }
  
  .category-link span:first-child {
    font-size: 0.9rem;
  }
  
  .category-count {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .image-placeholder {
    width: 250px;
    height: 250px;
    font-size: 6rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .image-placeholder {
    width: 200px;
    height: 200px;
    font-size: 4rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .skill-item {
    padding: 0.75rem 0.25rem;
  }
  
  .skill-item i {
    font-size: 1.75rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .filter-btn {
    margin: 0.25rem;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .mobile-menu {
    width: 100%;
  }
  
  .mobile-nav-list {
    margin: 1.5rem 0 0 0;
  }
  
  .mobile-nav-link {
    padding: 0.75rem;
  }
  
  .blog-meta {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap;
  }
  
  .blog-category {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
  
  .blog-date {
    font-size: 0.75rem;
  }
  
  .about-content {
    margin-bottom: 2rem;
  }
  
  .about-content .btn {
    margin-bottom: 1rem;
  }
  
  .about-content .social-links {
    margin-bottom: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .skill-item {
    padding: 0.5rem 0.25rem;
  }
  
  .skill-item i {
    font-size: 1.5rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
.form-control:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
    --shadow-large: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
  }
  
  .portfolio-card,
  .blog-card,
  .contact-form {
    border: 1px solid var(--border-color);
  }
}

/* ===== SOCIAL SHARE BUTTONS ===== */
.social-share-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.social-share-section h5 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.social-share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-share-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.social-share-btn.facebook {
  background-color: #1877f2;
  color: white;
}

.social-share-btn.facebook:hover {
  background-color: #166fe5;
}

.social-share-btn.twitter {
  background-color: #1da1f2;
  color: white;
}

.social-share-btn.twitter:hover {
  background-color: #1a91da;
}

.social-share-btn.linkedin {
  background-color: #0077b5;
  color: white;
}

.social-share-btn.linkedin:hover {
  background-color: #006097;
}

.social-share-btn.whatsapp {
  background-color: #25d366;
  color: white;
}

.social-share-btn.whatsapp:hover {
  background-color: #22c35e;
}

.social-share-btn.telegram {
  background-color: #0088cc;
  color: white;
}

.social-share-btn.telegram:hover {
  background-color: #0077b3;
}

.social-share-btn.copy-link {
  background-color: var(--bg-color);
  color: var(--text-color);
  border-color: var(--border-color);
}

.social-share-btn.copy-link:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.social-share-btn i {
  font-size: 1.1rem;
}

@media (max-width: 767.98px) {
  .social-share-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .social-share-btn {
    justify-content: center;
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 120px;
  }
  
  .social-share-btn.copy-link {
    flex: 1 1 100%;
    margin-top: 0.5rem;
  }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section, .blog-home-section, .services-section {
  background-color: var(--bg-secondary);
}

.testimonial-card {
  background-color: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.testimonial-content {
  flex: 1;
  margin-bottom: 1.5rem;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-rating i {
  color: #fbbf24;
  font-size: 1.1rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-avatar i {
  color: white;
  font-size: 1.5rem;
}

.author-info {
  flex: 1;
}

.author-name {
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.author-title {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ===== LAZY LOADING ===== */
.lazy-image {
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.lazy-image.loaded {
  opacity: 1;
}

.lazy-placeholder {
  background: linear-gradient(135deg, var(--bg-secondary), var(--border-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 2rem;
}

/* ===== AUTHOR BIO WIDGET ===== */
.author-bio-widget {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
  text-align: center;
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.author-bio-avatar i {
  color: white;
  font-size: 2.5rem;
}

.author-bio-name {
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.author-bio-profession {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.author-bio-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.author-bio-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.author-bio-social .social-link {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
}

/* ===== BLOG POST THUMBNAIL ===== */
.blog-post-thumbnail {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
}

.blog-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.blog-post-thumbnail:hover img {
  transform: scale(1.05);
}

.blog-post-thumbnail .thumbnail-placeholder {
  color: white;
  font-size: 4rem;
}

/* ===== RELATED POSTS FULL WIDTH ===== */
.related-posts {
  background-color: var(--bg-secondary);
  padding: 3rem 0;
  margin-top: 3rem;
}

.related-posts .section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.related-posts .row {
  justify-content: center;
}

.related-posts .col-lg-3 {
  margin-bottom: 2rem;
}

/* ===== RESPONSIVE DESIGN FOR NEW SECTIONS ===== */
@media (max-width: 767.98px) {
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .author-bio-widget {
    padding: 1rem;
  }
  
  .author-bio-avatar {
    width: 60px;
    height: 60px;
  }
  
  .author-bio-avatar i {
    font-size: 2rem;
  }
  
  .blog-post-thumbnail {
    height: 200px;
  }
  
  .blog-post-thumbnail .thumbnail-placeholder {
    font-size: 3rem;
  }
  
  .related-posts .col-lg-3 {
    margin-bottom: 1.5rem;
  }
  
  /* Mobile menu improvements */
  .mobile-menu {
    padding: 1.5rem;
  }
  
  .mobile-nav-list {
    margin: 1rem 0 0 0;
  }
}

@media (max-width: 575.98px) {
  .testimonial-text {
    font-size: 0.9rem;
  }
  
  .author-name {
    font-size: 0.9rem;
  }
  
  .author-title {
    font-size: 0.8rem;
  }
  
  .blog-post-thumbnail {
    height: 150px;
  }
  
  .blog-post-thumbnail .thumbnail-placeholder {
    font-size: 2rem;
  }
}

/* ===== CERTIFICATIONS SECTION ===== */


.certification-card {
  background-color: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.certification-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: white;
  box-shadow: var(--shadow-medium);
}

.certification-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.certification-content h4 {
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.certification-issuer {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.certification-date {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  text-align: center;
  font-style: italic;
}

.certification-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
  text-align: center;
}

.certification-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: auto;
}

.certification-actions .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

/* Responsive design for certifications */
@media (max-width: 768px) {
  .certification-card {
    padding: 1.5rem;
  }
  
  .certification-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .certification-content h4 {
    font-size: 1.1rem;
  }
  
  .certification-description {
    font-size: 0.85rem;
  }
  
  .certification-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .certification-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .certification-card {
    padding: 1.25rem;
  }
  
  .certification-icon {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }
  
  .certification-content h4 {
    font-size: 1rem;
  }
  
  .certification-description {
    font-size: 0.8rem;
  }
}

/* ===== SERVICES SECTION ===== */


.service-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: var(--shadow-medium);
}

.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-content h4 {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.service-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex: 1;
}

.service-features li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1rem;
}

.service-content .btn {
  margin-top: auto;
  align-self: center;
  min-width: 140px;
}

/* Responsive design for services */
@media (max-width: 768px) {
  .service-card {
    padding: 1.5rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .service-content h4 {
    font-size: 1.25rem;
  }
  
  .service-description {
    font-size: 0.9rem;
  }
  
  .service-features li {
    font-size: 0.85rem;
    padding: 0.4rem 0;
    padding-left: 1.25rem;
  }
}

@media (max-width: 480px) {
  .service-card {
    padding: 1.25rem;
  }
  
  .service-icon {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }
  
  .service-content h4 {
    font-size: 1.1rem;
  }
  
  .service-description {
    font-size: 0.85rem;
  }
  
  .service-features li {
    font-size: 0.8rem;
    padding: 0.35rem 0;
    padding-left: 1.1rem;
  }
}


/* ===== COMMENTS ===== */
.comments-section {
  margin-top: 3rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Single comment wrapper (WordPress adds many classes like depth-1, bypostauthor, etc.) */
.comment {
  display: flex;
  gap: 1rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-light);
}

.comment-avatar {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-avatar i {
  color: #fff;
  font-size: 1.5rem;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.comment-author,
.comment-author a {
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
}

.comment-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.comment-body {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0.5rem 0 0.75rem;
}

.comment-actions {
  display: flex;
  gap: 0.5rem;
}

/* Style the default WP reply link to match button aesthetics */
.comment-actions .comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.comment-actions .comment-reply-link:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-light);
}

/* Nested replies container (our walker) */
.comment-replies {
  margin-left: 3.25rem;
  margin-top: 0.75rem;
  border-left: 2px dashed var(--border-color);
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Fallback for default WP nested class if used elsewhere */
.children {
  margin-left: 3.25rem;
  border-left: 2px dashed var(--border-color);
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Comment form (WP wraps with .comment-respond and our .comment-form) */
.comment-metadata * {
    font-size: 14px;
    color: var(--text-secondary);
}

.comment-form .form-label {
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.comment-form .form-control {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.comment-form .form-control:focus {
  background-color: var(--bg-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Responsive tweaks for comments */
@media (max-width: 575.98px) {
  .comment {
    padding: 1rem;
  }
  .comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
  }
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .comment-replies,
  .children {
    margin-left: 1.5rem;
  }
}