/* 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;
  --danger: #fa5c7c;
  --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);
}

/* ── Section Titles ────────────────────────────────────────────────────────── */

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.text-center .section-title::after,
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.content-divider {
  width: 40px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

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

.lead {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 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 — Refined Glass Navigation
   ═══════════════════════════════════════════════════════════════════════════ */

.navbar {
  background: rgba(20, 23, 34, 0.8) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  padding: 12px 0 !important;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-bottom: 1px solid rgba(103, 61, 230, 0.08);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.navbar.fixed {
  padding: 8px 0 !important;
  background: rgba(20, 23, 34, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(103, 61, 230, 0.1);
}

/* ── Scroll Progress Bar ──────────────────────────────────────────────────── */
.navbar-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: transparent;
  z-index: 1001;
}

.navbar-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #8b5cf6, var(--accent));
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(103, 61, 230, 0.4);
}

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

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  letter-spacing: 0.02em;
}

.brand-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  margin-left: 2px;
  box-shadow: 0 0 8px rgba(103, 61, 230, 0.6);
  animation: pulse 2.5s ease infinite;
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(103, 61, 230, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(103, 61, 230, 0); }
}

/* ── Nav Links ────────────────────────────────────────────────────────────── */

.nav-item {
  margin: 0 2px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  padding: 7px 12px !important;
  border-radius: 8px;
  transition: all 0.25s ease !important;
  overflow: hidden;
  letter-spacing: 0.01em;
}

/* Underline indicator */
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
  background: rgba(103, 61, 230, 0.06);
}

/* ── Nav Icons ────────────────────────────────────────────────────────────── */

.nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(103, 61, 230, 0.1);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

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

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(103, 61, 230, 0.3);
}

.nav-link:hover .nav-icon i,
.nav-link.active .nav-icon i {
  color: white;
}

/* ── Schedule Meeting Button ──────────────────────────────────────────────── */

.nav-link.schedule-meeting-btn {
  background: var(--primary-gradient);
  border-radius: 8px;
  padding: 8px 16px !important;
  margin-left: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(103, 61, 230, 0.25);
}

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

.nav-link.schedule-meeting-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.nav-link.schedule-meeting-btn:hover::after {
  transform: translateX(100%);
}

.nav-link.schedule-meeting-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(103, 61, 230, 0.4);
  background: rgba(103, 61, 230, 0.06);
}

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

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

.nav-link.schedule-meeting-btn .nav-text {
  font-weight: 600;
}

/* ── Dropdown ─────────────────────────────────────────────────────────────── */

.dropdown-menu {
  background: rgba(36, 40, 56, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(103, 61, 230, 0.12);
  border-radius: var(--border-radius);
  padding: 8px;
  margin-top: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(103, 61, 230, 0.05);
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  color: var(--text-secondary);
  padding: 9px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.dropdown-item:hover {
  background: rgba(103, 61, 230, 0.08);
  color: var(--text-primary);
  padding-left: 18px;
}

/* Modern Header with Gradient Background */
/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION — Premium Landing
   ═══════════════════════════════════════════════════════════════════════════ */

.header {
  position: relative;
  background: linear-gradient(160deg, #0f1118 0%, #1a1d2e 35%, #1e1535 65%, #141722 100%);
  padding: 160px 0 80px;
  overflow: hidden;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 40%, rgba(103, 61, 230, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 80% 60%, rgba(0, 194, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 60% 20%, rgba(103, 61, 230, 0.05) 0%, transparent 70%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

/* Subtle dot grid — very faint */
.header-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(103, 61, 230, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
}

@keyframes heroGlow {
  0% { opacity: 1; }
  100% { opacity: 0.7; }
}

.header-content {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
}

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

/* ── Greeting ──────────────────────────────────────────────────────────────── */

.greeting {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-light);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
  animation: fadeIn 0.8s ease-out;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.greeting::before,
.greeting::after {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary));
}

.greeting::after {
  background: linear-gradient(90deg, var(--primary), transparent);
}

/* ── Name ──────────────────────────────────────────────────────────────────── */

.name {
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 40%, var(--primary) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 1s ease-out;
  letter-spacing: -0.02em;
}

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

/* ── Profession ────────────────────────────────────────────────────────────── */

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

.profession {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

@media (min-width: 768px) {
  .profession {
    justify-content: flex-start;
  }
}

.profession-text {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(103, 61, 230, 0.08);
  border: 1px solid rgba(103, 61, 230, 0.15);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.profession-text:hover {
  background: rgba(103, 61, 230, 0.15);
  border-color: rgba(103, 61, 230, 0.3);
  color: var(--text-primary);
}

.profession-separator {
  display: none;
}

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

/* Modern carousel styling */
/* ═══════════════════════════════════════════════════════════════════════════
   CAROUSEL — Refined Controls & Transitions
   ═══════════════════════════════════════════════════════════════════════════ */

.carousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(103, 61, 230, 0.08);
  margin-bottom: 30px;
  position: relative;
  background: var(--card-bg);
}

.carousel-inner {
  border-radius: 16px;
  overflow: hidden;
}

.carousel-inner img {
  height: 450px;
  object-fit: cover;
  object-position: center top;
}

/* Bottom vignette for indicators readability — skip portfolio (has its own overlay) */
.carousel:not(.portfolio-carousel)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
  z-index: 5;
  border-radius: 0 0 16px 16px;
}

/* Progress bar */
.carousel-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary-gradient);
  width: 0;
  z-index: 100;
  border-radius: 0 2px 2px 0;
}

/* Profile carousel — subtle inner border */
#myCarousel .carousel-item img {
  border: none;
}

/* Controls — glass pill */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(20, 23, 34, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  margin: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(103, 61, 230, 0.4);
  transform: translateY(-50%) scale(1.08);
  border-color: rgba(103, 61, 230, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

/* Indicators — minimal, over vignette */
.carousel-indicators {
  bottom: 14px;
  gap: 4px;
  z-index: 10;
}

.carousel-indicators button {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.35) !important;
  border: none !important;
  margin: 0 3px !important;
  transition: all 0.35s ease;
  padding: 0 !important;
}

.carousel-indicators button.active {
  background-color: #fff !important;
  width: 24px !important;
  border-radius: 4px !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TECHNICAL SKILLS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

#programming {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #141722 0%, #1a1d2e 40%, #1e1535 100%);
  padding-bottom: 60px;
}

/* Particles.js canvas — force behind content, no layout impact */
#programming > canvas,
#programming > .particles-js-canvas-el {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#programming > .container {
  position: relative;
  z-index: 1;
}

/* ── Language Icons Row ───────────────────────────────────────────────────── */

.skills-container {
  margin-bottom: 0;
}

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

.skill-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 16px;
  background: rgba(103, 61, 230, 0.06);
  border: 1px solid rgba(103, 61, 230, 0.1);
  transition: all 0.35s ease;
  cursor: default;
}

.skill-item:hover {
  background: rgba(103, 61, 230, 0.12);
  border-color: rgba(103, 61, 230, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(103, 61, 230, 0.15);
}

.skill-item i {
  font-size: 2.2rem;
  color: var(--primary-light);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.skill-item:hover i {
  color: #fff;
  transform: scale(1.08);
}

.skill-item span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

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

/* ── Tech Stack Categories ────────────────────────────────────────────────── */

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

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

.tech-category:last-child {
  margin-bottom: 0;
}

.tech-category h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

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

.tech-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(103, 61, 230, 0.05);
  border: 1px solid rgba(103, 61, 230, 0.1);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.tech-chip:hover {
  background: rgba(103, 61, 230, 0.12);
  border-color: rgba(103, 61, 230, 0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.tech-chip-icon {
  margin-right: 7px;
  font-size: 0.82rem;
  color: var(--primary);
  opacity: 0.6;
}

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

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

/* Skills responsive */
@media (max-width: 768px) {
  .programming-icons { gap: 16px; }
  .skill-item { width: 85px; height: 85px; }
  .skill-item i { font-size: 1.8rem; }
  .tech-stack { margin-top: 28px; }
}

@media (max-width: 576px) {
  .skill-item { width: 75px; height: 75px; border-radius: 12px; }
  .skill-item i { font-size: 1.6rem; margin-bottom: 4px; }
  .skill-item span { font-size: 0.7rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EDUCATION SECTION — Bold Timeline Design
   ═══════════════════════════════════════════════════════════════════════════ */

#education {
  background: linear-gradient(170deg, #141722 0%, #1a1d2e 40%, #1e1535 100%);
  position: relative;
  overflow: hidden;
}

#education::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 30%, rgba(103, 61, 230, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 85% 70%, rgba(0, 194, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle grid pattern */
#education::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(103, 61, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 61, 230, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

/* ── Timeline Container ───────────────────────────────────────────────────── */

.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 50px auto 20px;
  max-width: 900px;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HARDCODED EDUCATION TIMELINE (timeline-item markup)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Central vertical line */
.education-timeline::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(103, 61, 230, 0.15), transparent);
}

/* ── Timeline Item ────────────────────────────────────────────────────────── */

.timeline-item {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 48px;
}

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

/* ── Timeline Marker (icon dot) ───────────────────────────────────────────── */

.timeline-marker {
  flex-shrink: 0;
  width: 54px;
  display: flex;
  justify-content: center;
  padding-top: 4px;
  z-index: 2;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.18), rgba(0, 194, 255, 0.08));
  border: 1px solid rgba(103, 61, 230, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.timeline-icon i {
  font-size: 1.1rem;
  color: var(--primary-light);
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-icon {
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.3), rgba(0, 194, 255, 0.12));
  border-color: rgba(103, 61, 230, 0.45);
  box-shadow: 0 4px 20px rgba(103, 61, 230, 0.25);
}

.timeline-item:hover .timeline-icon i {
  transform: scale(1.12) rotate(-5deg);
}

/* ── Timeline Content Card ────────────────────────────────────────────────── */

.education-timeline .timeline-content {
  flex: 1;
  min-width: 0;
  background: rgba(36, 40, 56, 0.55);
  border: 1px solid rgba(103, 61, 230, 0.1);
  border-radius: 16px;
  padding: 28px 32px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.education-timeline .timeline-content:hover {
  background: rgba(36, 40, 56, 0.8);
  border-color: rgba(103, 61, 230, 0.25);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* ── Date + Title ─────────────────────────────────────────────────────────── */

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

.education-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.degree-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
}

/* ── Institution ──────────────────────────────────────────────────────────── */

.institution-wrapper {
  margin-bottom: 20px;
}

.institution-link {
  text-decoration: none;
  transition: color 0.2s ease;
}

.institution-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.institution-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.institution-separator {
  color: rgba(103, 61, 230, 0.3);
  margin: 0 4px;
}

.institutions-container {
  gap: 4px;
  align-items: center;
}

/* ── Detail Cards (Coursework, Thesis) ────────────────────────────────────── */

.degree-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-card {
  padding: 18px 22px;
  background: rgba(103, 61, 230, 0.04);
  border: 1px solid rgba(103, 61, 230, 0.08);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.detail-card:hover {
  background: rgba(103, 61, 230, 0.08);
  border-color: rgba(103, 61, 230, 0.18);
}

.detail-card h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icon from data-icon attribute */
.detail-card h4::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: attr(data-icon);
  font-size: 0.75rem;
  color: var(--primary);
  opacity: 0.6;
}

.detail-card h5 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 8px;
}

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

.detail-card ul li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}

.detail-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
}

.detail-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ── Education Responsive (hardcoded timeline) ────────────────────────────── */

@media (max-width: 768px) {
  .education-timeline::before {
    left: 20px;
  }

  .timeline-marker {
    width: 42px;
  }

  .timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .timeline-icon i {
    font-size: 0.95rem;
  }

  .timeline-item {
    gap: 16px;
    padding-bottom: 32px;
  }

  .education-timeline .timeline-content {
    padding: 22px 20px;
  }

  .degree-title {
    font-size: 1.1rem;
  }

  .detail-card {
    padding: 14px 16px;
  }

  .institutions-container {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .institution-separator {
    display: none;
  }

  .institution-link {
    margin: 0 !important;
  }
}

@media (max-width: 576px) {
  .education-timeline::before {
    display: none;
  }

  .timeline-marker {
    display: none;
  }

  .timeline-item {
    gap: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DYNAMIC EDUCATION (edu-card markup from content-loader.js)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Education Card ───────────────────────────────────────────────────────── */

.edu-card {
  display: flex;
  gap: 0;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: eduFadeIn 0.5s ease forwards;
  animation-delay: calc(var(--card-index, 0) * 0.12s);
}

@keyframes eduFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Left Sidebar (year + vertical line + dot) ────────────────────────────── */

.edu-card__sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  flex-shrink: 0;
  position: relative;
  padding-top: 28px;
}

.edu-card__year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary-light);
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 12px;
}

.edu-card__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 0 2px var(--primary), 0 0 12px rgba(103, 61, 230, 0.4);
  z-index: 2;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.edu-card:hover .edu-card__dot {
  box-shadow: 0 0 0 3px var(--primary-light), 0 0 20px rgba(103, 61, 230, 0.6);
  transform: scale(1.2);
}

.edu-card__line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(103, 61, 230, 0.4), rgba(103, 61, 230, 0.1));
  margin-bottom: -1px;
}

/* Hide line on last card */
.edu-card:last-child .edu-card__line {
  background: linear-gradient(to bottom, rgba(103, 61, 230, 0.4), transparent);
}

/* ── Main Content Area ────────────────────────────────────────────────────── */

.edu-card__main {
  flex: 1;
  display: flex;
  gap: 20px;
  padding: 16px 0 40px;
  min-width: 0;
}

.edu-card:last-child .edu-card__main {
  padding-bottom: 0;
}

/* ── Floating Badge Icon ──────────────────────────────────────────────────── */

.edu-card__badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.15), rgba(0, 194, 255, 0.08));
  border: 1px solid rgba(103, 61, 230, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.edu-card__badge i {
  font-size: 1.15rem;
  color: var(--primary-light);
  transition: transform 0.3s ease;
}

.edu-card:hover .edu-card__badge {
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.25), rgba(0, 194, 255, 0.12));
  border-color: rgba(103, 61, 230, 0.4);
  box-shadow: 0 4px 20px rgba(103, 61, 230, 0.2);
}

.edu-card:hover .edu-card__badge i {
  transform: scale(1.1) rotate(-5deg);
}

/* ── Card Content ─────────────────────────────────────────────────────────── */

.edu-card__content {
  flex: 1;
  min-width: 0;
  background: rgba(36, 40, 56, 0.6);
  border: 1px solid rgba(103, 61, 230, 0.1);
  border-radius: var(--border-radius);
  padding: 24px 28px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.edu-card:hover .edu-card__content {
  background: rgba(36, 40, 56, 0.85);
  border-color: rgba(103, 61, 230, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ── Date Pill ────────────────────────────────────────────────────────────── */

.edu-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.edu-card__date i {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* ── Title ────────────────────────────────────────────────────────────────── */

.edu-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
}

/* ── Institution ──────────────────────────────────────────────────────────── */

.edu-card__institution {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.edu-card__institution a,
.edu-card__institution > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.edu-card__institution a:hover {
  color: var(--primary-light);
}

.edu-card__institution i {
  color: var(--primary);
  opacity: 0.5;
  font-size: 0.8rem;
}

.edu-card__loc {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  opacity: 0.8;
}

.edu-card__loc i {
  font-size: 0.7rem !important;
}

/* ── Course Tags ──────────────────────────────────────────────────────────── */

.edu-card__courses {
  margin-bottom: 18px;
}

.edu-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.edu-tag {
  display: inline-block;
  padding: 4px 11px;
  background: rgba(103, 61, 230, 0.06);
  border: 1px solid rgba(103, 61, 230, 0.12);
  border-radius: 20px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: default;
}

.edu-tag:hover {
  background: rgba(103, 61, 230, 0.14);
  border-color: rgba(103, 61, 230, 0.35);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ── Thesis / Achievements ────────────────────────────────────────────────── */

.edu-card__thesis,
.edu-card__achievements {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(103, 61, 230, 0.08);
}

.edu-card__thesis-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.edu-card__thesis-label i {
  font-size: 0.68rem;
  color: var(--primary);
  opacity: 0.6;
}

.edu-card__thesis-title {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 4px;
  font-style: italic;
}

.edu-card__thesis-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.edu-card__achievements p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Education Responsive ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .edu-card__sidebar {
    width: 52px;
  }

  .edu-card__year {
    font-size: 0.65rem;
  }

  .edu-card__badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .edu-card__badge i {
    font-size: 1rem;
  }

  .edu-card__content {
    padding: 20px;
  }

  .edu-card__title {
    font-size: 1.1rem;
  }

  .edu-card__main {
    gap: 14px;
  }
}

@media (max-width: 576px) {
  .edu-card__sidebar {
    width: 40px;
  }

  .edu-card__badge {
    display: none;
  }

  .edu-card__content {
    padding: 16px;
  }

  .edu-card__title {
    font-size: 1rem;
  }

  .edu-card__main {
    padding-bottom: 28px;
  }

  .edu-tag {
    font-size: 0.7rem;
    padding: 3px 9px;
  }
}

/* .contact-form-container — consolidated in enhanced contact section below */

.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 — base */
footer {
  background-color: var(--bg-dark-alt);
  text-align: center;
  border-top: 1px solid rgba(103, 61, 230, 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 — consolidated in enhanced footer section below */

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

/* ── Social Icons (hero + footer) ──────────────────────────────────────────── */

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

.social-icon {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(103, 61, 230, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.15rem;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(103, 61, 230, 0.12);
  overflow: hidden;
  z-index: 1;
}

/* Fill layer on hover */
.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: inherit;
}

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

.social-icon:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(103, 61, 230, 0.3);
}

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

.social-icon:hover i {
  color: #fff;
  transform: scale(1.1);
}

/* Platform-specific hover tints */
.social-icon.linkedin:hover {
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.35);
}
.social-icon.linkedin:hover::before {
  background: linear-gradient(135deg, #0a66c2, #0077b5);
}

.social-icon.github:hover {
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12);
}
.social-icon.github:hover::before {
  background: linear-gradient(135deg, #333, #555);
}

@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 {
  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;
  }
  
  /* Legacy education-container rules removed — now uses .edu-card grid */
}

@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;
  }
}

/* ── Content-Match Carousel Layout ─────────────────────────────────────────── */

.content-match-container {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.content-match-container > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.content-match-container .carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.content-match-container .carousel-inner {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.content-match-container .carousel-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.content-match-container .carousel-item img {
  object-fit: cover;
  height: 100%;
  min-height: 450px;
  width: 100%;
  border-radius: 16px;
}

#journey .journey-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#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 */

/* ── About Me / Journey Content ────────────────────────────────────────────── */

.journey-content,
.about-content {
  text-align: justify;
  text-justify: inter-word;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 0 10px 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.journey-content .section-title,
.about-content .section-title {
  text-align: left;
}

.portfolio-cta {
  text-align: center;
  margin-top: auto;
  padding-top: 20px;
}

.journey-content p,
.about-content p {
  margin-bottom: 14px;
  line-height: 1.85;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* First paragraph — slightly larger */
.journey-content p:first-of-type {
  font-size: 1rem;
  color: var(--text-primary);
}

.journey-content strong,
.about-content strong {
  color: var(--primary-light);
  font-weight: 600;
}

/* Decorative left accent on the text column */
#journey .journey-content {
  position: relative;
  border-left: 2px solid rgba(103, 61, 230, 0.12);
  padding-left: 24px;
}

#journey .journey-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, var(--primary), transparent);
  border-radius: 2px;
}

@media (max-width: 992px) {
  .journey-content,
  .about-content {
    padding-left: 0;
  }
  #journey .journey-content {
    border-left: none;
    padding-left: 0;
    margin-top: 24px;
  }
  #journey .journey-content::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .journey-content,
  .about-content {
    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%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PORTFOLIO CAROUSEL
   ═══════════════════════════════════════════════════════════════════════════ */

.portfolio-showcase {
  position: relative;
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.portfolio-carousel {
  height: 550px;
  overflow: hidden;
  border-radius: 16px;
}

.portfolio-carousel .carousel-inner {
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

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

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

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

.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%);
}

/* Overlay */
.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 16px 16px;
  max-height: 85%;
  overflow-y: auto;
  z-index: 6;
}

.portfolio-overlay::-webkit-scrollbar { width: 5px; }
.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-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: var(--text-secondary);
  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;
}

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

  .portfolio-title {
    font-size: 1.6rem;
  }

  .portfolio-description {
    font-size: 0.95rem;
  }
}

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

  .portfolio-title {
    font-size: 1.4rem;
  }

  .portfolio-overlay {
    padding: 24px 20px;
  }

  .portfolio-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 576px) {
  .portfolio-carousel {
    height: 400px;
  }

  .portfolio-title {
    font-size: 1.3rem;
  }

  .portfolio-subtitle {
    font-size: 1rem;
  }

  .portfolio-overlay {
    padding: 15px;
    max-height: 90%;
  }

  .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: var(--text-secondary);
}

/* ── Profile Photo ─────────────────────────────────────────────────────────── */

.profile-photo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
  border-radius: 50%;
  padding: 3px;
  /* Gradient ring — purple to accent */
  background: linear-gradient(135deg, var(--primary) 0%, #c4b5fd 40%, var(--accent) 100%);
  box-shadow:
    0 0 30px rgba(103, 61, 230, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease;
}

.profile-photo-container:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 50px rgba(103, 61, 230, 0.3),
    0 12px 40px rgba(0, 0, 0, 0.3);
}

.profile-photo {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: contain;
  border: 3px solid var(--bg-dark);          /* Dark inner border separates photo from gradient ring */
  transition: all 0.4s ease;
  background-color: rgba(15, 17, 24, 0.6);  /* Dark bg for transparent PNG areas */
}

/* Outer glow ring */
.profile-photo-container::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(103, 61, 230, 0.15),
    rgba(0, 194, 255, 0.08),
    rgba(103, 61, 230, 0.15),
    rgba(196, 181, 253, 0.1),
    rgba(103, 61, 230, 0.15)
  );
  z-index: -1;
  opacity: 0.6;
  filter: blur(8px);
  transition: opacity 0.4s ease;
  animation: photoRingSpin 20s linear infinite;
}

.profile-photo-container:hover::after {
  opacity: 1;
}

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

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

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

/* ── Hero Buttons ──────────────────────────────────────────────────────────── */

.hero-buttons {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeIn 1.6s ease-out;
}

@media (min-width: 768px) {
  .hero-buttons { justify-content: flex-start; }
}

/* Base hero button reset */
.hero-buttons .btn {
  min-width: 140px;
  padding: 10px 22px !important;
  font-size: 0.88rem !important;
  font-weight: 600;
  border-radius: 10px !important;
  letter-spacing: 0.01em;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.3s ease,
              background 0.3s ease,
              border-color 0.3s ease !important;
}

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

/* PRIMARY CTA — "About Me" — solid purple gradient */
.hero-buttons .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(103, 61, 230, 0.35) !important;
}

.hero-buttons .btn-primary:hover {
  box-shadow: 0 6px 28px rgba(103, 61, 230, 0.5) !important;
}

/* SUCCESS CTA — "Book a Meeting" — solid emerald accent */
.hero-buttons .btn-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3) !important;
}

.hero-buttons .btn-success:hover {
  box-shadow: 0 6px 26px rgba(16, 185, 129, 0.45) !important;
}

/* GHOST — "Portfolio", "Download CV" — transparent outline */
.hero-buttons .btn-outline {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-secondary) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

.hero-buttons .btn-outline:hover {
  background: rgba(103, 61, 230, 0.08) !important;
  border-color: rgba(103, 61, 230, 0.3) !important;
  color: var(--text-light) !important;
  box-shadow: 0 4px 16px rgba(103, 61, 230, 0.1) !important;
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    min-width: 200px;
    margin-right: 0 !important;
  }
}


/* 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: 16px;
  padding: 44px 48px;
  display: flex;
  align-items: flex-start;
  border: 1px solid rgba(103, 61, 230, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px 0 0 4px;
}

.cv-card:hover {
  border-color: rgba(103, 61, 230, 0.25);
  box-shadow: 0 8px 32px rgba(103, 61, 230, 0.08);
}

.cv-card-icon {
  font-size: 1.6rem;
  color: var(--primary);
  margin-right: 28px;
  background: rgba(103, 61, 230, 0.08);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(103, 61, 230, 0.12);
}

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

.cv-card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
}

.cv-card-content p {
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.65;
  font-size: 0.95rem;
}

.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(103, 61, 230, 0.15);
}

.modal-header {
  border-bottom: 1px solid rgba(103, 61, 230, 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.08);
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .cv-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 22px;
  }

  .cv-card::before {
    width: 100%;
    height: 3px;
    border-radius: 4px 4px 0 0;
  }

  .cv-card-icon {
    margin-right: 0;
    margin-bottom: 18px;
    margin-left: auto;
    margin-right: auto;
  }

  .cv-actions {
    justify-content: center;
  }
}

/* Enhanced Contact Section Styling */
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(103, 61, 230, 0.1);
}

.contact-methods {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid rgba(103, 61, 230, 0.08);
}

.contact-method {
  text-align: center;
  padding: 24px 16px;
  transition: background 0.25s ease, border-color 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(103, 61, 230, 0.03);
  border: 1px solid rgba(103, 61, 230, 0.06);
}

.contact-method:hover {
  background: rgba(103, 61, 230, 0.07);
  border-color: rgba(103, 61, 230, 0.15);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(103, 61, 230, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background 0.25s ease;
  border: 1px solid rgba(103, 61, 230, 0.1);
}

.contact-method:hover .contact-icon {
  background: rgba(103, 61, 230, 0.14);
}

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

.contact-method h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

.contact-method a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

/* Booking Highlight in Contact Section */
.booking-highlight {
  background: rgba(0, 184, 148, 0.06);
  border: 1px solid rgba(0, 184, 148, 0.15);
  border-radius: 12px;
}

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

.booking-icon {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  border-color: transparent !important;
}

.booking-icon i {
  color: #fff !important;
}

/* Meeting Options Card */
.meeting-options-card {
  background: rgba(103, 61, 230, 0.04);
  border: 1px solid rgba(103, 61, 230, 0.1);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 24px 28px;
}

.meeting-options-card h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

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

.meeting-options-card p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.92rem;
}

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

.meeting-badges .badge {
  font-weight: 500;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* Contact form container styling */
.contact-form-container {
  padding: 36px;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 0 0 16px 16px;
  border-top: 1px solid rgba(103, 61, 230, 0.08);
}

.contact-form-container h3 {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}

.contact-form label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.contact-form .form-control {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(103, 61, 230, 0.1);
  color: var(--text-light);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  font-size: 0.95rem;
}

.contact-form .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.contact-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(103, 61, 230, 0.35);
  box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.08);
}

.contact-form .btn {
  padding: 11px 28px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

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

.alert-success {
  background-color: rgba(0, 184, 148, 0.08);
  color: var(--success);
  border: 1px solid rgba(0, 184, 148, 0.15);
}

.alert-danger {
  background-color: rgba(250, 92, 124, 0.08);
  color: var(--danger);
  border: 1px solid rgba(250, 92, 124, 0.15);
}

.alert-info {
  background-color: rgba(103, 61, 230, 0.08);
  color: var(--primary-light);
  border: 1px solid rgba(103, 61, 230, 0.15);
}

/* 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;
}

.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 — consolidated in earlier block (line ~1554) */

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-methods .row {
    flex-direction: column;
  }

  .contact-method {
    margin-bottom: 12px;
  }

  .contact-methods {
    padding: 16px;
  }

  .meeting-options-card {
    margin: 16px;
    padding: 20px;
  }

  .contact-form-container {
    padding: 22px;
  }
  
  .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);
  }
}

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

.carousel-item:not(.active) {
  display: block;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

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

/* .carousel-inner, .carousel-progress — consolidated in main carousel block above */

/* 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 — consolidated above (line ~2881) */

/* 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 {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover,
.service-card: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;
  }
  
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 768px) {
  /* 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: 576px) {
  /* 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: var(--bg-dark);
}

.testimonial-card {
  background: rgba(103, 61, 230, 0.04);
  border: 1px solid rgba(103, 61, 230, 0.1);
  border-radius: 16px;
  padding: 40px 44px;
  margin: 16px auto;
  max-width: 760px;
  position: relative;
  text-align: center;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 18px;
  left: 28px;
  font-size: 3.5rem;
  color: var(--primary);
  opacity: 0.18;
  font-family: Georgia, serif;
  line-height: 1;
}

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

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

.testimonial-author-photo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(103, 61, 230, 0.2);
}

.testimonial-author-photo.placeholder {
  background: rgba(103, 61, 230, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.2rem;
  font-weight: 700;
}

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

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

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

.testimonial-project {
  display: inline-block;
  background: rgba(103, 61, 230, 0.08);
  color: var(--primary-light);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 8px;
  border: 1px solid rgba(103, 61, 230, 0.1);
}

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

.testimonial-rating i {
  color: #f59e0b;
  font-size: 1rem;
  margin: 0 1px;
}

/* Testimonials Carousel Controls */
#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
  width: 42px;
  height: 42px;
  background: rgba(103, 61, 230, 0.12);
  border: 1px solid rgba(103, 61, 230, 0.15);
  border-radius: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  transition: background 0.25s ease, border-color 0.25s ease;
}

#testimonialsCarousel .carousel-control-prev:hover,
#testimonialsCarousel .carousel-control-next:hover {
  background: rgba(103, 61, 230, 0.2);
  border-color: rgba(103, 61, 230, 0.3);
}

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

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

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

.rating-input .rating-star {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

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

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

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

.testimonials-empty i {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--primary);
  opacity: 0.35;
}

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

  .testimonial-card {
    padding: 28px 22px;
  }
}

@media (max-width: 576px) {
  .testimonial-card::before {
    font-size: 2.5rem;
    top: 10px;
    left: 14px;
  }

  .testimonial-content {
    font-size: 0.95rem;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

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