/* Modern Somber Theme - Professional Tech Portfolio 2025 */
/* Author: Ing. Leon Doungala - AI Engineer | Data Scientist | Researcher */

:root {
  /* Hybrid Theme Color Palette - Enhanced Purple Accent */
  --primary: #673de6; /* Matching admin purple */
  --primary-light: #7c5ce7;
  --primary-gradient: linear-gradient(135deg, #673de6, #5630c2);
  --secondary: #00b894;
  --secondary-gradient: linear-gradient(135deg, #00b894, #00cec9);
  --accent: #00c2ff;
  
  /* Improved Dark Backgrounds - More Professional */
  --bg-dark: #1a1d2e;
  --bg-dark-alt: #141722;
  
  /* Glass Effect - More Elegant */
  --glass-bg: rgba(26, 29, 46, 0.85);
  
  /* Light Area Cards - Improved Contrast */
  --card-bg-light: rgba(255, 255, 255, 0.05);
  --card-bg-lighter: rgba(255, 255, 255, 0.03);
  --card-bg-somber: #242838;
  
  /* Improved Card Backgrounds - Professional Look */
  --card-bg: #242838;
  --card-bg-alt: rgba(36, 40, 56, 0.9);
  --card-bg-hover: rgba(42, 52, 70, 0.95);
  
  /* Text Colors - Enhanced for Better Contrast */
  --text-primary: #ffffff;
  --text-secondary: #b8c4e0;
  --text-muted: #8892b0;
  --text-light: #ffffff;
  --text-dark: #2d3748;
  
  /* Border and Effects */
  --border-color: rgba(103, 61, 230, 0.15);
  --border-light: rgba(255, 255, 255, 0.08);
  --success: #00b894;
  --border-radius: 12px;
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  --box-shadow-light: 0 8px 32px rgba(103, 61, 230, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-primary: 'Space Grotesk', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Clean Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Improved Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark-alt);
}

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

::-webkit-scrollbar-thumb:hover {
  opacity: 1;
  box-shadow: 0 0 10px rgba(0, 97, 255, 0.2);
}

/* Improved Body Background - Lighter Pattern */
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Enhanced Light Background Effect - More Visible Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25px 25px, rgba(66, 133, 244, 0.08) 2px, transparent 0),
    linear-gradient(rgba(66, 133, 244, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 133, 244, 0.04) 1px, transparent 1px);
  background-size: 
    50px 50px,
    25px 25px,
    25px 25px;
  pointer-events: none;
  z-index: -1;
}

/* Elegant Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Enhanced Typography for Better Readability */
p {
  margin-bottom: 1.2rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--secondary);
}

/* Modern Section Title */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  color: var(--text-light);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0, 97, 255, 0.15);
}

.content-divider {
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0, 97, 255, 0.15);
}

.content-divider.centered {
  margin-left: auto;
  margin-right: auto;
}

.lead {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-secondary);
}

/* Modern Button Styles */
.btn {
  border-radius: 30px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  transition: var(--transition) !important;
  text-transform: uppercase;
  font-size: 0.9rem !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none !important;
}

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

.btn-primary {
  background: var(--primary-gradient) !important;
  color: var(--text-light) !important;
  box-shadow: 0 4px 15px rgba(0, 97, 255, 0.2) !important;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 97, 255, 0.3) !important;
}

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

.btn-outline:hover {
  background: rgba(0, 97, 255, 0.05) !important;
  transform: translateY(-3px);
}

.btn i {
  transition: transform 0.3s ease;
  margin-right: 8px;
}

.btn:hover i {
  transform: translateX(3px);
}

.btn-primary:hover i {
  animation: pulse-button 1s infinite alternate;
}

@keyframes pulse-button {
  0% { opacity: 0.8; }
  100% { opacity: 1; transform: scale(1.1); }
}

/* Glass Morphism Navbar */
.navbar {
  background-color: var(--glass-bg) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  padding: 15px 0 !important;
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(66, 133, 244, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.navbar.fixed {
  padding: 10px 0 !important;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0 !important;
}

.brand-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary) !important;
  letter-spacing: 0.5px;
  position: relative;
  padding-right: 8px;
}

.brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-left: 2px;
  box-shadow: 0 0 10px rgba(0, 97, 255, 0.5);
  animation: pulse 2s infinite;
}

.ing-highlight {
  color: var(--accent);
  font-weight: 700;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 97, 255, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(0, 97, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 97, 255, 0); }
}

/* Modern Nav Links */
.nav-item {
  margin: 0 1px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-secondary) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 8px 10px !important;
  border-radius: 8px;
  transition: all 0.3s ease !important;
  overflow: hidden;
}

.nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 97, 255, 0.2);
}

.nav-link:hover:before, 
.nav-link.active:before {
  width: calc(100% - 30px);
}

.nav-link:hover, 
.nav-link.active {
  color: var(--text-primary) !important;
  background-color: rgba(0, 97, 255, 0.05);
}

.nav-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: rgba(0, 97, 255, 0.1);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 97, 255, 0.2);
}

.nav-icon {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  margin-right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(66, 133, 244, 0.05));
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  perspective: 500px;
}

.nav-icon i {
  color: var(--primary);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.nav-link:hover .nav-icon {
  transform: translateY(-2px) rotateY(10deg);
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.8), rgba(66, 133, 244, 0.6));
}

.nav-link:hover .nav-icon i,
.nav-link.active .nav-icon i {
  color: white;
  transform: translateZ(10px);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Schedule Meeting Button - Special Style */
.nav-link.schedule-meeting-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  padding: 8px 16px !important;
  margin-left: 10px;
  position: relative;
  overflow: hidden;
}

.nav-link.schedule-meeting-btn::before {
  display: none;
}

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

.nav-link.schedule-meeting-btn:hover::after {
  left: 100%;
}

.nav-link.schedule-meeting-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(103, 61, 230, 0.4);
}

.nav-link.schedule-meeting-btn .nav-icon {
  background: transparent;
}

.nav-link.schedule-meeting-btn .nav-icon i {
  color: white;
}

.nav-link.schedule-meeting-btn .nav-text {
  color: white;
  font-weight: 500;
}

/* Dropdown Menu */
.dropdown-menu {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  margin-top: 10px;
  box-shadow: var(--box-shadow);
}

.dropdown-item {
  color: var(--text-secondary);
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: rgba(0, 97, 255, 0.05);
  color: var(--text-primary);
  transform: translateX(5px);
}

/* Modern Header with Gradient Background */
.header {
  position: relative;
  background: linear-gradient(135deg, #1a1d2e 0%, #242838 50%, #1a1d2e 100%);
  padding: 180px 0 100px;
  overflow: hidden;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.08), rgba(0, 184, 148, 0.05));
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
}

/* Add subtle pattern to header */
.header-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(90deg, transparent 9px, rgba(103, 61, 230, 0.03) 10px),
    linear-gradient(transparent 9px, rgba(103, 61, 230, 0.03) 10px);
  background-size: 100px 100px;
  opacity: 0.6;
}

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

.header-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.header-intro {
  margin-bottom: 40px;
}

.greeting {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 15px;
  opacity: 0.9;
  animation: fadeIn 1s ease-out;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.name {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--text-primary) 0%, var(--primary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: fadeIn 1.2s ease-out;
  text-shadow: 0 2px 10px rgba(103, 61, 230, 0.1);
}

.profession-wrapper {
  margin-bottom: 25px;
  animation: fadeIn 1.4s ease-out;
}

.profession {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.profession-text {
  display: inline-block;
}

.profession-separator {
  display: inline-block;
  color: var(--primary);
  margin: 0 10px;
  animation: blink 1.5s infinite;
}

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

/* Modern carousel styling */
.carousel {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  position: relative;
}

.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  pointer-events: none;
}

.carousel-inner {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.carousel-inner img {
  height: 450px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.carousel:hover .carousel-inner img {
  transform: scale(1.02);
}

.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  width: 0;
  z-index: 100;
  box-shadow: 0 1px 5px rgba(0, 97, 255, 0.3);
}

/* Profile picture styling */
#myCarousel .carousel-item img {
  border: 2px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Carousel controls */
.carousel-control-prev, 
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(35, 45, 63, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  color: var(--primary) !important;
  transition: all 0.3s ease;
  margin: 0 15px;
}

.carousel-control-prev:hover, 
.carousel-control-next:hover {
  background: rgba(35, 45, 63, 0.9);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) saturate(100%) invert(100%);
}

/* Carousel indicators */
.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: rgba(0, 97, 255, 0.3) !important;
  margin: 0 5px !important;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: var(--primary) !important;
  transform: scale(1.2);
}

/* Programming section */
#programming {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #131b2b, #1c2331);
  border-top: 1px solid rgba(66, 133, 244, 0.1);
  border-bottom: 1px solid rgba(66, 133, 244, 0.1);
  padding-bottom: 50px; /* Reduced padding at bottom */
}

.skills-container {
  margin-bottom: 0; /* Remove bottom margin */
}

.tech-stack {
  margin-top: 30px;
  margin-bottom: 0; /* Remove bottom margin */
}

.tech-category {
  margin-bottom: 20px; /* Reduced bottom margin */
}

.tech-category:last-child {
  margin-bottom: 0; /* No margin for last category */
}

.programming-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px; /* Reduced gap */
  margin-bottom: 20px; /* Smaller bottom margin */
}

/* Make the section separator more compact */
.section-separator.separator-dots {
  padding: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #programming {
    padding-bottom: 40px;
  }
  
  .programming-icons {
    gap: 20px;
  }
  
  .tech-stack {
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  #programming {
    padding-bottom: 30px;
  }
}

.tech-stack {
  margin-top: 40px;
}

.tech-category {
  margin-bottom: 30px;
  text-align: center;
}

.tech-category h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tech-chip {
  background-color: var(--card-bg);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.tech-chip:hover {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 97, 255, 0.2);
}

.tech-chip {
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin: 5px;
  position: relative;
  overflow: hidden;
}

.tech-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(66, 133, 244, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-chip:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  color: var(--text-light);
}

.tech-chip:hover::before {
  opacity: 1;
}

/* Add icons to tech chips */
.tech-chip-icon {
  margin-right: 8px;
  font-size: 1rem;
  color: var(--primary);
}

.programming-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.programming-icons div, 
.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  padding: 20px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  width: 120px;
  height: 120px;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.programming-icons div:hover,
.skill-item:hover {
  transform: translateY(-10px);
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--primary);
}

.programming-icons i,
.skill-item i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 15px;
  transition: var(--transition);
}

.programming-icons div:hover i,
.skill-item:hover i {
  color: var(--secondary);
  transform: scale(1.1);
}

.programming-icons span,
.skill-item span {
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.programming-icons div:hover span,
.skill-item:hover span {
  color: var(--text-primary);
  font-weight: 500;
}

/* Enhanced Iconography Styles */

/* 1. Tech Icons with Hexagonal Background */
.skill-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  padding: 0;
  margin: 15px;
  background: transparent;
  border: none;
  box-shadow: none;
  --x-pos: 50%;
  --y-pos: 50%;
}

.skill-item::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  background-color: rgba(42, 52, 70, 0.8);
  transform: rotate(45deg);
  border: 1px solid rgba(66, 133, 244, 0.15);
  transition: all 0.3s ease;
  z-index: -1;
}

.skill-item::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  background: radial-gradient(circle at var(--x-pos) var(--y-pos), 
                              rgba(66, 133, 244, 0.4) 0%, 
                              rgba(66, 133, 244, 0) 60%);
  border-radius: 50%;
  opacity: 0;
  z-index: -2;
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}

.skill-item i {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 12px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.skill-item span {
  color: #d9e1f6;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.skill-item.hovering::after {
  width: 140px;
  height: 140px;
  opacity: 1;
}

.skill-item:hover::before {
  transform: rotate(45deg) scale(1.1);
  background-color: rgba(35, 45, 63, 0.9);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(66, 133, 244, 0.2);
}

.skill-item:hover i {
  transform: translateY(-5px);
  color: var(--primary);
  text-shadow: 0 0 10px rgba(66, 133, 244, 0.5);
  animation: floating 2s ease infinite;
}

.skill-item:hover span {
  color: var(--text-light);
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* Education section */
#education {
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

#education::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(0, 97, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 97, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.education-container {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.education-item {
  flex: 1;
  min-width: 30%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.education-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary-gradient);
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--primary);
}

.education-icon {
  margin-bottom: 15px;
}

.education-icon i {
  color: var(--primary);
  font-size: 1.8rem;
}

.education-item h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var (--text-primary);
}

.education-item .duration {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0, 97, 255, 0.1);
  border-radius: 20px;
}

.education-item .institution {
  color: var (--text-secondary);
  margin-bottom: 0;
}

.dual-institutions {
  margin-top: 10px;
}

.institution-separator {
  display: block;
  text-align: center;
  color: var(--text-secondary);
  margin: 8px 0;
  font-size: 1.1rem;
}

/* Enhanced Education Timeline Section */

.education-timeline {
  position: relative;
  margin: 50px 0;
  padding-left: 60px;
}

/* Timeline vertical line */
.education-timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 15px;
  bottom: 15px;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary) 0%, rgba(0, 97, 255, 0.3) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 60px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -60px;
  top: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(0, 97, 255, 0.4);
  z-index: 10;
}

.timeline-content {
  background-color: var(--card-bg-alt);
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  position: relative;
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.timeline-header {
  margin-bottom: 20px;
}

.education-date {
  display: inline-block;
  background: rgba(0, 97, 255, 0.1);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.degree-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.institution-wrapper,
.dual-institutions-wrapper {
  margin-bottom: 25px;
}

.dual-institutions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.institution-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: var(--transition);
}

.institution-info i {
  color: var(--primary);
  font-size: 1.1rem;
}

.institution-name {
  color: #d9e1f6;
  font-weight: 500;
}

.institution-link:hover .institution-info {
  background-color: rgba(66, 133, 244, 0.15);
}

.institution-link:hover .institution-name {
  color: var(--primary);
}

.institution-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 600;
}

.degree-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.detail-card {
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(66, 133, 244, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.detail-card:hover {
  background-color: rgba(66, 133, 244, 0.1);
  transform: translateY(-3px);
}

.detail-card h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

.detail-card h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 1px;
}

.detail-card ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
}

.detail-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.detail-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.detail-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.detail-card h4::before {
  content: "\f02d"; /* Default book icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary);
  margin-right: 8px;
  font-size: 0.9em;
}

.detail-card h4[data-icon]::before {
  content: attr(data-icon);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .education-timeline {
    padding-left: 40px;
  }
  
  .timeline-marker {
    left: -40px;
  }
  
  .education-timeline::before {
    left: 18px;
  }
  
  .timeline-content {
    padding: 20px;
  }
  
  .degree-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .education-timeline {
    padding-left: 30px;
  }
  
  .timeline-marker {
    left: -30px;
    width: 30px;
    height: 30px;
  }
  
  .timeline-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .education-timeline::before {
    left: 14px;
  }
  
  .education-date {
    font-size: 0.8rem;
  }
  
  .degree-title {
    font-size: 1.3rem;
  }
}

/* Enhanced Timeline with Light/Dark Contrast */
.timeline-content {
  background-color: var(--card-bg-alt);
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(66, 133, 244, 0.3) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(66, 133, 244, 0.3) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.timeline-content:hover::before,
.timeline-content:hover::after {
  opacity: 1;
}

.timeline-icon {
  position: relative;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #2a6ad2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  box-shadow: 0 0 0 6px rgba(19, 27, 43, 0.6);
  transition: all 0.3s ease;
  z-index: 10;
  overflow: hidden;
}

.timeline-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(19, 27, 43, 0.4), 0 0 20px rgba(66, 133, 244, 0.6);
}

.timeline-item:hover .timeline-icon::after {
  animation: sweep 1s ease-in-out;
}

@keyframes sweep {
  0% {
    opacity: 0;
    transform: translateX(-100%) rotate(45deg);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateX(100%) rotate(45deg);
  }
}

/* Light Inner Cards for Timeline */
.detail-card {
  background-color: var(--card-bg-light);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(66, 133, 244, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.detail-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detail-card:hover {
  background-color: rgba(66, 133, 244, 0.08);
  transform: translateY(-3px);
  border-color: rgba(66, 133, 244, 0.2);
}

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

/* Contact form styling */
.contact-form-container {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.contact-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  box-shadow: 0 1px 5px rgba(0, 97, 255, 0.3);
}

.contact-form-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--primary);
}

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

.contact-form .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(66, 133, 244, 0.2);
  color: var(--text-light);
  border-radius: 8px;
  padding: 12px 15px;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.15);
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.08);
}

.form-response {
  margin-top: 15px;
}

/* Footer */
footer {
  background-color: var(--bg-dark-alt);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(66, 133, 244, 0.1);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary-gradient);
  opacity: 0.3;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin: 15px 0;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.footer-social {
  margin: 10px 0;
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.social-icon {
  position: relative;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(66, 133, 244, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(66, 133, 244, 0.15);
  overflow: hidden;
  z-index: 1;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), #2a6ad2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.5s ease;
}

.social-icon i {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:hover::before {
  opacity: 1;
}

.social-icon:hover::after {
  animation: ripple 1s ease-out;
}

.social-icon:hover i {
  color: white;
  animation: pulse-icon 1s infinite alternate;
}

@keyframes pulse-icon {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
}

@keyframes ripple {
  0% { opacity: 1; width: 0; height: 0; }
  100% { opacity: 0; width: 100px; height: 100px; }
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(66, 133, 244, 0.1);
}

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

.back-to-top:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 97, 255, 0.2);
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.2), rgba(66, 133, 244, 0.1));
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.2rem;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  visibility: hidden;
  border: 1px solid rgba(66, 133, 244, 0.2);
  overflow: hidden;
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), #2a6ad2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

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

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover::before {
  opacity: 1;
}

.back-to-top:hover i {
  color: white;
  animation: float-up 1s ease infinite alternate;
}

@keyframes float-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

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

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

/* Media queries */
@media (max-width: 992px) {
  .name {
    font-size: 3.5rem;
  }
  
  .profession {
    font-size: 1.4rem;
  }
  
  .education-container {
    flex-direction: column;
  }
  
  .education-item {
    min-width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 150px 0 80px;
  }
  
  .name {
    font-size: 2.8rem;
  }
  
  .profession {
    font-size: 1.2rem;
  }
  
  .carousel-inner img {
    height: 350px;
  }
  
  .programming-icons div,
  .skill-item {
    width: 100px;
    height: 100px;
  }
  
  .journey-content,
  .about-content {
    text-align: left;
  }
}

@media (max-width: 576px) {
  .name {
    font-size: 2.4rem;
  }
  
  .greeting {
    font-size: 1.1rem;
  }
  
  .carousel-inner img {
    height: 250px;
  }
  
  .programming-icons div,
  .skill-item {
    width: 90px;
    height: 90px;
  }
  
  .programming-icons i,
  .skill-item i {
    font-size: 2.5rem;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
  }
}

/* Keep your existing carousel height matching CSS */

/* Common styles for content-matching carousels */
.content-match-container {
  display: flex;
  align-items: stretch;
}

/* Make carousel column match height of adjacent content */
.content-match-container > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Make carousel container fill the column height */
.content-match-container .carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Make carousel-inner fill the carousel height */
.content-match-container .carousel-inner {
  flex: 1;
  display: flex;
  align-items: stretch;
}

/* Make carousel items fill the carousel-inner height */
.content-match-container .carousel-item {
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.content-match-container .carousel-item.active {
  opacity: 1;
}

/* Make images fill the available space while maintaining aspect ratio */
.content-match-container .carousel-item img {
  object-fit: cover;
  height: 100%;
  min-height: 450px;
  width: 100%;
}

/* For About Me section (journey) */
#journey .journey-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* For Portfolio section (about) */
#about .about-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Add responsive adjustments */
@media (max-width: 992px) {
  .content-match-container .carousel-item img {
    min-height: 350px;
  }
  
  /* On mobile, don't force matching heights */
  .content-match-container {
    display: block;
  }
  
  .content-match-container > [class*="col-"] {
    display: block;
  }
}

/* Adjust project-info positioning */
.carousel-item .project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(19, 27, 43, 0.85);
  backdrop-filter: blur(5px);
  padding: 15px;
  z-index: 2;
}

.carousel-item .project-info h3 {
  color: var(--text-light);
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.carousel-item .project-info p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Improved text justification for content sections */

/* For About Me section */
.journey-content {
  text-align: justify;
  text-justify: inter-word;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* For Portfolio Catalogue section */
.about-content {
  text-align: justify;
  text-justify: inter-word;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Ensure section titles are properly aligned left */
.journey-content .section-title,
.about-content .section-title {
  text-align: left;
}

/* Ensure buttons are centered */
.portfolio-cta {
  text-align: center;
  margin-top: auto;
  padding-top: 20px;
}

/* Add proper paragraph spacing */
.journey-content p,
.about-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Ensure strong elements have proper emphasis */
.journey-content strong,
.about-content strong {
  color: var(--primary);
  font-weight: 600;
}

/* Better text rendering for justified text */
.journey-content,
.about-content {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .journey-content,
  .about-content {
    /* On smaller screens, switch to left alignment for better readability */
    text-align: left;
  }
}

/* Hybrid Cards - Light within Dark */
.hybrid-card {
  background: linear-gradient(135deg, var(--card-bg-alt) 0%, var(--card-bg) 100%);
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.hybrid-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  pointer-events: none;
}

.hybrid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(66, 133, 244, 0.3);
}

/* Light Content Card */
.light-content-card {
  background: var(--card-bg-lighter);
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--box-shadow-light);
  backdrop-filter: blur(8px);
  position: relative;
}

.light-content-card h3 {
  color: var(--text-light);
}

.light-content-card p {
  color: var(--text-secondary);
}

/* Custom Cursor Effect */
.cursor-inner, .cursor-outer {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-inner {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-outer {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(66, 133, 244, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
}

body:hover .cursor-inner,
body:hover .cursor-outer {
  opacity: 1;
}

.cursor-hover {
  transform: translate(-50%, -50%) scale(1.5) !important;
  background-color: rgba(66, 133, 244, 0.1);
  border-width: 2px !important;
}

/* Hide on mobile/tablet */
@media (max-width: 992px) {
  .cursor-inner, .cursor-outer {
    display: none;
  }
}

/* Section Separators */
.section-separator {
  position: relative;
  height: 1px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.section-separator.animate-separator {
  opacity: 1;
}

.separator-gradient {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(66, 133, 244, 0.4) 50%, 
    transparent 100%);
  height: 1px;
  width: 100%;
  position: relative;
}

/* Animated dot that travels across the separator line */
.separator-gradient::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -10px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(66, 133, 244, 0.8);
  opacity: 0.8;
  animation: travel 8s linear infinite;
}

/* Alternative style with triple lines for major sections */
.separator-triple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 15px 0;
  position: relative;
}

.separator-triple .line {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(66, 133, 244, 0.15) 15%,
    rgba(66, 133, 244, 0.3) 50%,
    rgba(66, 133, 244, 0.15) 85%,
    transparent 100%);
}

.separator-triple .line-1 {
  width: 100%;
}

.separator-triple .line-2 {
  width: 70%;
}

.separator-triple .line-3 {
  width: 40%;
}

.separator-triple .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--primary), #2a6ad2);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(66, 133, 244, 0.4);
}

/* Alternative decorative separator with mini-dots */
.separator-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.separator-dots .dot {
  width: 4px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 50%;
  margin: 0 12px;
  opacity: 0.6;
}

.separator-dots .dot:nth-child(2) {
  width: 8px;
  height: 8px;
  opacity: 0.8;
}

.separator-dots .dot:nth-child(3) {
  width: 12px;
  height: 12px;
  opacity: 1;
  box-shadow: 0 0 10px rgba(66, 133, 244, 0.3);
}

/* Animation for the moving dot */
@keyframes travel {
  0% {
    left: -10px;
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    left: calc(100% + 10px);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .separator-triple .line-2 {
    width: 85%;
  }
  .separator-triple .line-3 {
    width: 60%;
  }
}

/* Enhanced Portfolio Carousel Styling */
.portfolio-showcase {
  position: relative;
  margin: 40px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.portfolio-carousel .carousel-inner {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.portfolio-carousel .carousel-item {
  height: 500px;
  position: relative;
}

.portfolio-carousel .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.7s ease;
  filter: brightness(0.8);
}

/* Text overlay with gradient background */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, 
    rgba(24, 33, 47, 0.95) 0%, 
    rgba(24, 33, 47, 0.85) 40%, 
    rgba(24, 33, 47, 0.6) 65%,
    rgba(24, 33, 47, 0.3) 85%,
    rgba(24, 33, 47, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 30px;
  transition: all 0.4s ease;
  z-index: 2;
}

.portfolio-carousel .carousel-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.6);
}

.portfolio-carousel .carousel-item:hover .portfolio-overlay {
  background: linear-gradient(to top, 
    rgba(33, 42, 58, 0.98) 0%, 
    rgba(33, 42, 58, 0.85) 50%, 
    rgba(33, 42, 58, 0.6) 75%,
    rgba(33, 42, 58, 0.2) 100%);
}

.portfolio-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
  opacity: 0.95;
  transform: translateY(10px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-subtitle {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 500;
  opacity: 0.9;
  transform: translateY(10px);
  transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

.portfolio-description {
  color: #d9e1f6;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  opacity: 0.95;
  transform: translateY(10px);
  transition: transform 0.4s ease 0.2s, opacity 0.4s ease 0.2s;
}

.portfolio-tech {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.portfolio-tech-tag {
  background-color: rgba(66, 133, 244, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.portfolio-tech-tag:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.portfolio-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.portfolio-link:hover {
  opacity: 1;
  color: var(--text-light);
}

.portfolio-link:hover i {
  transform: translateX(3px);
}

.portfolio-carousel .carousel-item:hover .portfolio-title,
.portfolio-carousel .carousel-item:hover .portfolio-subtitle,
.portfolio-carousel .carousel-item:hover .portfolio-description {
  opacity: 1;
  transform: translateY(0);
}

/* Custom carousel controls */
.portfolio-carousel .carousel-control-prev,
.portfolio-carousel .carousel-control-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(35, 45, 63, 0.7);
  border: 1px solid rgba(66, 133, 244, 0.3);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-showcase:hover .carousel-control-prev,
.portfolio-showcase:hover .carousel-control-next {
  opacity: 0.8;
}

.portfolio-carousel .carousel-control-prev:hover,
.portfolio-carousel .carousel-control-next:hover {
  background: rgba(66, 133, 244, 0.8);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* Custom carousel indicators */
.portfolio-carousel .carousel-indicators {
  bottom: 20px;
  z-index: 10;
  margin-bottom: 0;
}

.portfolio-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(66, 133, 244, 0.4);
  transition: all 0.3s ease;
  margin: 0 4px;
  opacity: 0.7;
}

.portfolio-carousel .carousel-indicators button.active {
  background-color: var(--primary);
  width: 14px;
  height: 14px;
  opacity: 1;
}

/* Progress bar for carousel */
.portfolio-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10;
  overflow: hidden;
}

.portfolio-progress {
  height: 100%;
  background: var(--primary-gradient);
  width: 0;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(66, 133, 244, 0.5);
}

/* Caption animation for carousel */
@keyframes captionFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-item.active .portfolio-title {
  animation: captionFadeIn 0.8s forwards;
}

.carousel-item.active .portfolio-subtitle {
  animation: captionFadeIn 0.8s 0.2s forwards;
}

.carousel-item.active .portfolio-description {
  animation: captionFadeIn 0.8s 0.4s forwards;
}

.carousel-item.active .portfolio-tech {
  animation: captionFadeIn 0.8s 0.6s forwards;
}

.carousel-item.active .portfolio-link {
  animation: captionFadeIn 0.8s 0.8s forwards;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .portfolio-carousel .carousel-item {
    height: 450px;
  }
  
  .portfolio-title {
    font-size: 1.6rem;
  }
  
  .portfolio-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .portfolio-carousel .carousel-item {
    height: 400px;
  }
  
  .portfolio-title {
    font-size: 1.4rem;
  }
  
  .portfolio-overlay {
    padding: 30px 20px;
  }
  
  .portfolio-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 576px) {
  .portfolio-carousel .carousel-item {
    height: 350px;
  }
  
  .portfolio-title {
    font-size: 1.3rem;
  }
  
  .portfolio-subtitle {
    font-size: 1rem;
  }
  
  .portfolio-description {
    -webkit-line-clamp: 2;
  }
}

/* Improved Strong Tag Styling */
strong {
  color: #ffffff;
  font-weight: 600;
}

/* Custom Section Background Alternating Pattern */
section:nth-child(odd) {
  background-color: var(--bg-dark);
}

section:nth-child(even) {
  background-color: var(--bg-dark-alt);
}

/* Enhanced Reading Section */
.reading-section {
  background-color: rgba(255, 255, 255, 0.02);
  padding: 30px;
  border-radius: var(--border-radius);
  position: relative;
}

.reading-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.05), transparent);
  pointer-events: none;
}

.reading-section p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #e0e6f5;
}

/* Enhanced Profile Photo Styling for Better Visibility */
.profile-photo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
  background-color: var(--card-bg-light);
  border-radius: 50%;
  padding: 2px; /* Inner padding to separate photo from border */
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: contain; /* Changed from cover to contain */
  border: 5px solid rgba(66, 133, 244, 0.5); /* Brighter, thicker border */
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1); /* Light background to make transparent areas visible */
}

.profile-photo:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(66, 133, 244, 0.3);
}

/* Enhanced glow effect */
.profile-photo-container::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: radial-gradient(circle at center, rgba(66, 133, 244, 0.3) 0%, rgba(66, 133, 244, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.8; /* More visible by default */
  transition: opacity 0.3s ease;
}

.profile-photo-container:hover::after {
  opacity: 1;
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-photo {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 576px) {
  .profile-photo {
    width: 120px;
    height: 120px;
  }
}

/* Hero Navigation Buttons */
.hero-buttons {
  margin-top: 25px;
  animation: fadeIn 1.6s ease-out;
}

.hero-buttons .btn {
  min-width: 145px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.3s ease, 
              background-color 0.3s ease !important;
}

.hero-buttons .btn:hover {
  transform: translateY(-5px);
}

.hero-buttons .btn-outline {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-light) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.hero-buttons .btn-outline:hover {
  background: rgba(66, 133, 244, 0.1) !important;
  border-color: var(--primary) !important;
}

@media (max-width: 576px) {
  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    min-width: 200px;
    margin-right: 0 !important;
  }
}

/* Portfolio Carousel Height Standardization */
.portfolio-carousel {
  height: 550px; /* Fixed height for the carousel container */
  overflow: hidden;
}

.portfolio-carousel .carousel-inner {
  height: 100%;
}

.portfolio-carousel .carousel-item {
  height: 100%;
}

.portfolio-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This ensures images maintain aspect ratio while filling the container */
  object-position: center;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(5, 5, 16, 0.95) 0%, rgba(5, 5, 16, 0.85) 60%, rgba(5, 5, 16, 0.4) 100%);
  padding: 30px;
  color: var(--text-light);
  border-radius: 0 0 8px 8px;
  max-height: 85%; /* Limit overlay height */
  overflow-y: auto; /* Add scroll if content exceeds height */
}

/* Style scrollbar for overlay */
.portfolio-overlay::-webkit-scrollbar {
  width: 6px;
}

.portfolio-overlay::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.portfolio-overlay::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.portfolio-overlay::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Make sure controls appear above content */
.carousel-control-prev,
.carousel-control-next {
  z-index: 15;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .portfolio-carousel {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .portfolio-carousel {
    height: 450px;
  }
  
  .portfolio-overlay {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .portfolio-carousel {
    height: 400px;
  }
  
  .portfolio-overlay {
    padding: 15px;
    max-height: 90%;
  }
}

/* Portfolio CTA Button Positioning Fix */
.portfolio-cta {
  text-align: center;
  margin-top: 35px;
  margin-bottom: 10px;
  position: relative;
  display: flex;
  justify-content: center;
}

.portfolio-cta .btn {
  min-width: 220px;
  padding: 12px 24px !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(66, 133, 244, 0.15);
}

.portfolio-cta .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.25);
}

.portfolio-cta .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  z-index: -1;
}

.portfolio-cta .btn:hover::after {
  transform: translateX(100%);
}

/* Add responsive alignment for the portfolio-cta */
@media (max-width: 768px) {
  .portfolio-cta {
    margin-top: 25px;
  }
}

/* Fix for consistent button width across screen sizes */
@media (max-width: 576px) {
  .portfolio-cta .btn {
    min-width: 200px;
    font-size: 0.85rem !important;
  }
}

/* Update portfolio content to ensure proper spacing */
.about-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  padding-bottom: 20px;
}

/* Ensure the bottom of the content has space for the button */
.about-content p:last-of-type {
  margin-bottom: 30px;
}

/* Enhanced CV Section Styling */
.cv-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(66, 133, 244, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.cv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.05), transparent);
  z-index: 0;
}

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

.cv-card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-right: 30px;
  background: rgba(66, 133, 244, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cv-card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.cv-card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-light);
}

.cv-card-content p {
  color: #e0e6f5;
  margin-bottom: 25px;
  line-height: 1.6;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* CV Modal Styling */
.cv-iframe-container {
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.cv-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-content {
  background-color: var(--bg-dark);
  border: 1px solid rgba(66, 133, 244, 0.2);
}

.modal-header {
  border-bottom: 1px solid rgba(66, 133, 244, 0.1);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  color: var(--text-light);
  font-weight: 600;
  margin: 0;
}

.modal-actions {
  display: flex;
  align-items: center;
}

.btn-close {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 50%;
}

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

/* Responsive adjustments */
@media (max-width: 767px) {
  .cv-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  
  .cv-card-icon {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .cv-actions {
    justify-content: center;
  }
}

/* Enhanced Contact Section Styling */
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(66, 133, 244, 0.15);
}

.contact-methods {
  padding: 35px 30px;
  background: linear-gradient(135deg, rgba(35, 45, 63, 0.9), rgba(19, 27, 43, 0.95));
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  border-bottom: 1px solid rgba(66, 133, 244, 0.15);
  margin-bottom: 0;
  position: relative;
}

.contact-methods::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    rgba(66, 133, 244, 0.7) 0%, 
    rgba(66, 133, 244, 0.9) 50%, 
    rgba(66, 133, 244, 0.7) 100%);
}

.contact-method {
  text-align: center;
  padding: 28px 20px;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(66, 133, 244, 0.08);
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(66, 133, 244, 0.2);
}

.contact-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(66, 133, 244, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid rgba(66, 133, 244, 0.2);
}

.contact-icon::after {
  content: '';
  position: absolute;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  border: 1px dashed rgba(66, 133, 244, 0.4);
  animation: spin 30s linear infinite;
}

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

.contact-icon i {
  font-size: 1.6rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.contact-method h3 {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.contact-method p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

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

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

.contact-method a:hover {
  color: var(--primary);
}

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

/* Booking Highlight in Contact Section */
.booking-highlight {
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.15), rgba(0, 184, 148, 0.05));
  border: 1px solid rgba(0, 184, 148, 0.3);
  border-radius: var(--border-radius);
}

.booking-highlight:hover {
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.25), rgba(0, 184, 148, 0.1));
  border-color: rgba(0, 184, 148, 0.5);
}

.booking-icon {
  background: linear-gradient(135deg, #00b894, #00cec9) !important;
}

/* Meeting Options Card */
.meeting-options-card {
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.1), rgba(103, 61, 230, 0.05));
  border: 1px solid rgba(103, 61, 230, 0.2);
  border-radius: var(--border-radius);
  padding: 25px 30px;
  margin-bottom: 30px;
}

.meeting-options-card h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.meeting-options-card h4 i {
  color: var(--primary);
}

.meeting-options-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.meeting-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meeting-badges .badge {
  font-weight: 500;
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* Scholarly form container styling */
.contact-form-container {
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  border-top: 1px solid rgba(66, 133, 244, 0.1);
  position: relative;
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, 
    rgba(66, 133, 244, 0.05) 0%, 
    transparent 70%);
  pointer-events: none;
}

.contact-form-container h3 {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 12px;
  text-align: center;
}

.contact-form-container h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(66, 133, 244, 0.4) 0%, 
    rgba(66, 133, 244, 0.8) 50%, 
    rgba(66, 133, 244, 0.4) 100%);
}

.contact-form label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-form .form-control {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(66, 133, 244, 0.15);
  color: var(--text-light);
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(66, 133, 244, 0.4);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.contact-form .btn {
  padding: 12px 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Alert styling for form responses */
.alert {
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 500;
}

.alert-success {
  background-color: rgba(10, 207, 151, 0.1);
  color: #0acf97;
  border: 1px solid rgba(10, 207, 151, 0.2);
}

.alert-danger {
  background-color: rgba(250, 92, 124, 0.1);
  color: #fa5c7c;
  border: 1px solid rgba(250, 92, 124, 0.2);
}

.alert-info {
  background-color: rgba(66, 133, 244, 0.1);
  color: var(--primary);
  border: 1px solid rgba(66, 133, 244, 0.2);
}

/* Enhanced Footer Style */
footer {
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

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

.footer-brand {
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
}

.footer-brand .brand-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-light) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.footer-tagline {
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-size: 1rem;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

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

.footer-links a:hover::after {
  width: 80%;
  opacity: 1;
}

copyright {
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-methods .row {
    flex-direction: column;
  }
  
  .contact-method {
    margin-bottom: 20px;
  }
  
  .contact-methods {
    padding: 20px;
  }
  
  .contact-form-container {
    padding: 25px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-links a {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    width: 80%;
    margin: 0 auto;
  }
  
  .footer-links a::after {
    display: none;
  }
  
  .footer-links a:hover {
    background: rgba(66, 133, 244, 0.1);
  }
}

/* Enhanced carousel transitions */
.carousel-item {
  transition: transform 0.8s ease;
}

/* Remove opacity transitions and visibility changes that cause blackout */
.carousel-item:not(.active) {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

.carousel-item.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* Optimize carousel performance */
.carousel-inner {
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Modify the opacity behavior for non-active slides */
.carousel-item:not(.active) {
  opacity: 0;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.carousel-item.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  z-index: 1;
}

/* Optimize images in carousel for better performance */
.carousel-item img {
  will-change: transform;
  transition: transform 0.5s ease-out;
  backface-visibility: hidden;
  transform-style: preserve-3d; /* Better 3D rendering */
}

/* Improved carousel transitions */
.carousel-item {
  transition: transform 0.8s ease;
  /* Remove opacity transition that causes blackout */
}

/* Remove the opacity 0 starting point */
.carousel-item:not(.active) {
  display: block;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-item.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Optimize images in carousel for better performance */
.carousel-item img {
  will-change: transform;
  transition: transform 0.5s ease-out;
  backface-visibility: hidden;
  transform-style: preserve-3d; /* Better 3D rendering */
}

/* Improve progress bar appearance */
.carousel-progress {
  height: 3px;
  background-color: rgba(66, 133, 244, 0.7);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  z-index: 10;
  transition: width 12s linear;
}

/* Jupyter-style loading animation */
.jupyter-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 16, 0.85);
  z-index: 100;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.jupyter-loading.loaded {
  opacity: 0;
  visibility: hidden;
}

.jupyter-spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

.jupyter-spinner::before,
.jupyter-spinner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--primary);
}

.jupyter-spinner::before {
  animation: spin 1.5s linear infinite;
}

.jupyter-spinner::after {
  border-top-color: rgba(66, 133, 244, 0.4);
  animation: spin 1s linear infinite reverse;
}

.jupyter-loading-text {
  color: var(--text-light);
  margin-top: 20px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

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

/* Ultrawide screen optimizations */
@media (min-width: 2560px) {
  .container {
    max-width: 1920px;
  }
  
  body {
    font-size: 18px;
  }
  
  .section-padding {
    padding: 120px 0;
  }
  
  /* Prevent excessive width on content areas */
  .row {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Large screen optimizations */
@media (min-width: 1920px) and (max-width: 2559px) {
  .container {
    max-width: 1680px;
  }
  
  body {
    font-size: 17px;
  }
}

/* Navigation optimization for large screens */
@media (min-width: 1920px) {
  .navbar > .container {
    max-width: 1680px;
  }
  
  .navbar-nav {
    gap: 10px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.8rem 1.2rem;
    font-size: 1.05rem;
  }
}

/* ======= ENHANCED UX ANIMATIONS v2.0 ======= */
/* Global smooth transitions and animations for better user experience */

/* Page load fade-in animation */
@keyframes pageLoad {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: pageLoad 0.5s ease-out;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Section reveal animation */
@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-padding,
section {
  animation: sectionReveal 0.6s ease-out;
}

/* Stagger animation for list items */
@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply stagger to common list containers */
.row > [class*="col-"]:nth-child(1) { animation-delay: 0.1s; }
.row > [class*="col-"]:nth-child(2) { animation-delay: 0.15s; }
.row > [class*="col-"]:nth-child(3) { animation-delay: 0.2s; }
.row > [class*="col-"]:nth-child(4) { animation-delay: 0.25s; }
.row > [class*="col-"]:nth-child(5) { animation-delay: 0.3s; }
.row > [class*="col-"]:nth-child(6) { animation-delay: 0.35s; }

/* Button hover effects */
.btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: scale(0.98);
}

/* Enhanced focus states for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(103, 61, 230, 0.2);
}

/* Link underline animation */
a:not(.btn):not(.nav-link) {
  position: relative;
  text-decoration: none;
}

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

a:not(.btn):not(.nav-link):hover::after {
  width: 100%;
}

/* Card hover lift effect */
.card,
.service-card,
.timeline-content {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover,
.service-card:hover,
.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Input focus animation */
.form-control {
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.15);
  transform: translateY(-1px);
}

/* Image zoom on hover */
.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--border-radius);
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.08);
}

/* Pulse animation for icons */
@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.icon-pulse {
  animation: iconPulse 2s ease-in-out infinite;
}

/* Badge bounce animation */
@keyframes badgeBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.badge {
  transition: all 0.3s ease;
}

.badge:hover {
  animation: badgeBounce 0.5s ease;
}

/* Loading skeleton animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  border-radius: var(--border-radius);
}

/* Typewriter effect for text */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary); }
}

.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--primary);
  white-space: nowrap;
  animation: 
    typing 3.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

/* Gradient text animation */
@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text {
  background: linear-gradient(
    270deg,
    var(--primary),
    var(--secondary),
    var(--accent),
    var(--primary)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 5s ease infinite;
}

/* Navbar scroll effect */
.navbar.scrolled {
  background: rgba(26, 29, 46, 0.98) !important;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Toast notification animation */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-enter {
  animation: slideInRight 0.3s ease forwards;
}

.toast-exit {
  animation: slideOutRight 0.3s ease forwards;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Glass morphism effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
}

/* Neon glow effect */
.neon-glow {
  box-shadow: 
    0 0 5px var(--primary),
    0 0 10px var(--primary),
    0 0 20px var(--primary),
    0 0 40px var(--primary);
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(2deg);
  }
  75% {
    transform: translateY(5px) rotate(-2deg);
  }
}

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

/* ======= NEWSLETTER SECTION STYLES ======= */
.newsletter-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-card {
  background: linear-gradient(145deg, rgba(103, 61, 230, 0.15), rgba(103, 61, 230, 0.05));
  border: 1px solid rgba(103, 61, 230, 0.3);
  border-radius: 24px;
  padding: 50px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.newsletter-content {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.newsletter-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
  animation: float 4s ease-in-out infinite;
}

.newsletter-text {
  flex: 1;
}

.newsletter-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.newsletter-text p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1rem;
}

.newsletter-form {
  flex: 1;
  min-width: 300px;
}

.newsletter-form .input-group {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form .form-control {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 15px 25px;
  font-size: 1rem;
}

.newsletter-form .form-control::placeholder {
  color: var(--text-muted);
}

.newsletter-form .form-control:focus {
  box-shadow: none;
  background: transparent;
}

.newsletter-form .btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.newsletter-response {
  margin-top: 15px;
}

.newsletter-response .alert {
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.newsletter-decoration {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.3), transparent);
}

.decoration-circle.circle-1 {
  width: 200px;
  height: 200px;
  top: -50px;
  right: -50px;
  animation: float 8s ease-in-out infinite;
}

.decoration-circle.circle-2 {
  width: 150px;
  height: 150px;
  bottom: -30px;
  right: 100px;
  animation: float 6s ease-in-out infinite reverse;
}

.decoration-circle.circle-3 {
  width: 80px;
  height: 80px;
  top: 50%;
  right: 200px;
  animation: float 10s ease-in-out infinite;
}

@media (max-width: 992px) {
  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .newsletter-card {
    padding: 30px 20px;
  }
  
  .newsletter-form .input-group {
    flex-direction: column;
    border-radius: 15px;
  }
  
  .newsletter-form .btn {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
  }
}

/* ======= MODERN FOOTER STYLES ======= */
.modern-footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0d14 100%);
  padding-top: 0;
  position: relative;
  color: var(--text-secondary);
}

.footer-wave {
  color: var(--bg-dark-alt);
  margin-bottom: -1px;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 60px 0 40px;
}

.footer-brand-col .footer-brand {
  margin-bottom: 20px;
}

.footer-brand-col .footer-brand .brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-brand-col .footer-brand .ing-highlight {
  color: var(--primary);
}

.footer-brand-col .footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.footer-links-col h4,
.footer-contact-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.footer-links-col h4::after,
.footer-contact-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav a i {
  font-size: 0.7rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.footer-nav a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-nav a:hover i {
  transform: translateX(3px);
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.contact-info li i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 3px;
}

.contact-info li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info li a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

.footer-bottom .copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.modern-footer .social-icons {
  display: flex;
  gap: 12px;
}

.modern-footer .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.modern-footer .social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-brand-col {
    grid-column: span 2;
    text-align: center;
  }
  
  .footer-brand-col .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand-col {
    grid-column: span 1;
  }
  
  .footer-links-col h4::after,
  .footer-contact-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-nav a {
    justify-content: center;
  }
  
  .contact-info li {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* ======= ENHANCED PROJECT CARDS - GLOBAL ======= */
.card-modern {
  background: linear-gradient(145deg, rgba(35, 45, 63, 0.9), rgba(25, 35, 50, 0.95));
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

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

.card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(103, 61, 230, 0.2);
  border-color: rgba(103, 61, 230, 0.3);
}

.card-modern .card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-modern .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-modern .card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.card-modern .card-body {
  padding: 25px;
}

.card-modern .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card-modern .card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-modern .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.card-modern .tag {
  background: rgba(103, 61, 230, 0.15);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(103, 61, 230, 0.3);
}

/* ======= COMPREHENSIVE RESPONSIVE STYLES ======= */

/* Extra Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .header {
    padding: 200px 0 120px;
  }
  
  .header h1.name {
    font-size: 4rem;
  }
}

/* Large Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .container {
    max-width: 1140px;
  }
}

/* Tablet Landscape & Small Desktop (992px - 1199px) */
@media (max-width: 1199px) {
  .section-title {
    font-size: 2.25rem;
  }
  
  .header {
    padding: 160px 0 80px;
  }
  
  .header h1.name {
    font-size: 2.75rem;
  }
  
  .profession h2 {
    font-size: 1.1rem;
  }
  
  .hero-buttons .btn {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
  }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
  /* Navbar Mobile */
  .navbar-collapse {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
  }
  
  .navbar-toggler {
    border: none !important;
    padding: 10px !important;
    background: rgba(103, 61, 230, 0.1) !important;
    border-radius: 10px !important;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.3) !important;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(103, 61, 230, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }
  
  .nav-item {
    margin: 5px 0;
  }
  
  .nav-link {
    padding: 12px 15px !important;
    font-size: 14px !important;
    border-radius: 10px;
  }
  
  .nav-link.schedule-meeting-btn {
    margin-left: 0;
    margin-top: 10px;
    text-align: center;
    justify-content: center;
  }
  
  /* Header Section */
  .header {
    padding: 140px 0 70px;
    text-align: center;
  }
  
  .header h1.name {
    font-size: 2.5rem;
  }
  
  .header-content .col-md-4 {
    margin-top: 30px;
  }
  
  .profile-photo-container {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-buttons .btn {
    margin: 5px !important;
  }
  
  /* About Section */
  .journey-content {
    padding: 0 15px;
  }
  
  .carousel {
    margin-bottom: 30px;
  }
  
  /* Section Padding */
  .section-padding {
    padding: 60px 0;
  }
  
  /* Cards Grid */
  .row > [class*="col-lg-4"] {
    margin-bottom: 20px;
  }
  
  /* Skills Section */
  .skill-category {
    margin-bottom: 25px;
  }
  
  /* Experience Timeline */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .timeline-marker {
    left: 10px;
  }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
  /* Typography */
  .section-title {
    font-size: 1.85rem;
    margin-bottom: 1.5rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  /* Header */
  .header {
    padding: 120px 0 60px;
  }
  
  .header h1.name {
    font-size: 2rem;
  }
  
  .profession-wrapper {
    flex-direction: column;
  }
  
  .profession-separator {
    display: none;
  }
  
  .profession-text {
    display: block;
    margin: 5px 0;
  }
  
  .greeting {
    font-size: 1rem;
  }
  
  .profile-photo-container {
    max-width: 220px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
    margin: 5px auto !important;
    display: block;
  }
  
  /* Social Icons */
  .social-icons {
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
  }
  
  /* Cards */
  .card-modern {
    margin-bottom: 20px;
  }
  
  .card-modern .card-image {
    height: 180px;
  }
  
  .card-modern .card-body {
    padding: 20px;
  }
  
  .card-modern .card-title {
    font-size: 1.1rem;
  }
  
  /* Buttons */
  .btn {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
  }
  
  /* About Section */
  .journey-content p {
    font-size: 0.95rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 25px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }
  
  .footer-brand-col {
    margin-bottom: 10px;
  }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
  /* Body */
  body {
    font-size: 14px;
  }
  
  /* Container */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Typography */
  .section-title {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Header */
  .header {
    padding: 110px 0 50px;
  }
  
  .header h1.name {
    font-size: 1.75rem;
  }
  
  .profession h2 {
    font-size: 0.9rem;
  }
  
  .greeting {
    font-size: 0.9rem;
  }
  
  .profile-photo-container {
    max-width: 180px;
  }
  
  /* Navbar */
  .navbar {
    padding: 10px 0 !important;
  }
  
  .brand-text {
    font-size: 18px;
  }
  
  /* Section Padding */
  .section-padding {
    padding: 40px 0;
  }
  
  /* Cards */
  .card-modern .card-image {
    height: 150px;
  }
  
  .card-modern .card-body {
    padding: 15px;
  }
  
  .card-modern .card-title {
    font-size: 1rem;
  }
  
  .card-modern .card-text {
    font-size: 0.85rem;
  }
  
  .card-modern .tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  
  /* Buttons */
  .btn {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    border-radius: 25px !important;
  }
  
  .hero-buttons .btn {
    max-width: 100%;
  }
  
  /* Skills */
  .skill-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  
  /* Carousel */
  .carousel-indicators {
    bottom: 5px;
  }
  
  .carousel-indicators button {
    width: 8px;
    height: 8px;
  }
  
  /* Contact */
  .contact-form {
    padding: 20px 15px;
  }
  
  .form-control {
    font-size: 14px;
    padding: 10px 15px;
  }
  
  /* Newsletter */
  .newsletter-card {
    padding: 20px 15px;
  }
  
  .newsletter-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .newsletter-text h3 {
    font-size: 1.3rem;
  }
  
  /* Footer */
  .footer-grid {
    padding: 40px 0 20px;
  }
  
  .footer-nav a {
    font-size: 0.9rem;
  }
  
  .modern-footer .social-icon {
    width: 36px;
    height: 36px;
  }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
  .header h1.name {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .profile-photo-container {
    max-width: 150px;
  }
  
  .btn {
    padding: 8px 14px !important;
    font-size: 0.75rem !important;
  }
  
  .card-modern .card-image {
    height: 130px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .social-icons,
  .hero-buttons,
  .newsletter-section,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .header {
    background: none !important;
    padding: 20px 0 !important;
  }
  
  .section-padding {
    padding: 20px 0 !important;
  }
}

/* Landscape Mode Fixes for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .header {
    padding: 100px 0 40px;
    min-height: auto;
  }
  
  .profile-photo-container {
    max-width: 150px;
  }
  
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .hero-buttons .btn {
    width: auto;
    flex: 1 1 auto;
    max-width: none;
  }
}

/* High DPI / Retina Display Enhancements */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card-modern {
    border-width: 0.5px;
  }
  
  .btn {
    font-weight: 500;
  }
}

/* Touch Device Hover States */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }
  
  .card-modern:hover {
    transform: none;
  }
  
  .nav-link:hover {
    background: none;
  }
  
  /* Add active states for touch */
  .btn:active {
    transform: scale(0.98);
  }
  
  .card-modern:active {
    transform: scale(0.99);
  }
}

/* ======= TESTIMONIALS SECTION STYLES ======= */
#testimonials {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
}

.testimonial-card {
  background: linear-gradient(145deg, rgba(103, 61, 230, 0.1), rgba(103, 61, 230, 0.03));
  border: 1px solid rgba(103, 61, 230, 0.2);
  border-radius: 20px;
  padding: 40px;
  margin: 20px auto;
  max-width: 800px;
  position: relative;
  text-align: center;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.testimonial-author-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.testimonial-author-photo.placeholder {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.testimonial-author-info {
  text-align: left;
}

.testimonial-author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.testimonial-author-position {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonial-project {
  display: inline-block;
  background: rgba(103, 61, 230, 0.15);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-top: 10px;
}

.testimonial-rating {
  margin-bottom: 15px;
}

.testimonial-rating i {
  color: #ffc107;
  font-size: 1.2rem;
  margin: 0 2px;
}

/* Testimonials Carousel Controls */
#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

#testimonialsCarousel .carousel-control-prev:hover,
#testimonialsCarousel .carousel-control-next:hover {
  opacity: 1;
  background: var(--primary-light);
}

#testimonialsCarousel .carousel-control-prev {
  left: -60px;
}

#testimonialsCarousel .carousel-control-next {
  right: -60px;
}

/* Rating Input in Modal */
.rating-input {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
}

.rating-input .rating-star {
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.rating-input .rating-star:hover,
.rating-input .rating-star.active {
  color: #ffc107;
  transform: scale(1.1);
}

.rating-input .rating-star.hovered {
  color: #ffc107;
}

/* Empty testimonials state */
.testimonials-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.testimonials-empty i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary);
  opacity: 0.5;
}

/* Responsive Testimonials */
@media (max-width: 991px) {
  #testimonialsCarousel .carousel-control-prev,
  #testimonialsCarousel .carousel-control-next {
    display: none;
  }
  
  .testimonial-card {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .testimonial-card::before {
    font-size: 3rem;
    top: 10px;
    left: 15px;
  }
  
  .testimonial-content {
    font-size: 1rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-author-info {
    text-align: center;
  }
}