/* Enhanced Portfolio Styles - 2025 Edition */

:root {
  /* Primary Color Scheme - Modernized with vibrant gradients */
  --primary: #4361ee;
  --primary-light: #4895ef;
  --primary-dark: #3a0ca3;
  --secondary: #4cc9f0;
  --secondary-dark: #4361ee;
  --accent: #f72585;
  --success: #2ecc71;
  
  /* Dark Mode Neutral Colors */
  --bg-dark: #0a0a0a;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --text-light: #ffffff;
  --text-muted: #b0b0b0;
  --border-color: rgba(255, 255, 255, 0.05);
  
  /* Typography */
  --font-heading: 'Montserrat', 'Poppins', sans-serif;
  --font-body: 'Open Sans', 'Roboto', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-normal: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.2);
  --shadow-primary: 0 10px 20px rgba(67, 97, 238, 0.2);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* Base Styles */
body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  transition: background-color var(--transition-normal);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-top: 0;
  line-height: 1.3;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--secondary);
}

.container {
  padding-left: 30px;
  padding-right: 30px;
}


/*THE STYLE FOR THE CERTS AND THE PROJECTS*/
/* Modern Modal Styling - Works with existing HTML structure */
.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
  background-color: rgba(10, 10, 10, 0.9);
}

.modal-body {
  padding: 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-title {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 600;
}

.modal .close {
  color: var(--text-light);
  opacity: 0.8;
  transition: all var(--transition-fast);
  text-shadow: none;
}

.modal .close:hover {
  color: var(--primary-light);
  opacity: 1;
}

/* Image Gallery in Modals - Preserves existing structure */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(67, 97, 238, 0.2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.click-me-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: all var(--transition-normal);
}

.gallery-item:hover .click-me-overlay {
  opacity: 1;
}

/* Certificate Modal Styling - Keeps existing structure */
.img-fluid-smaller {
  max-width: 100%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 1px solid var(--border-color);
}

/* Modal Link Styling */
.modal-body a {
  color: var(--primary-light);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.modal-body a:hover {
  color: var(--secondary);
}

.modal-body a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width var(--transition-normal);
}

.modal-body a:hover::after {
  width: 100%;
}


/* Modern Loader Animation */
.modern-loader {
  position: relative;
  width: 100px;
  height: 100px;
}

.spinner {
  animation: rotate 2s linear infinite;
  z-index: 2;
  width: 100px;
  height: 100px;
}

.spinner-path {
  stroke: url(#gradient);
  stroke-linecap: round;
  stroke-width: 4;
  stroke-dasharray: 164;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite;
  fill: none;
}

/* Fix search button alignment */
.blog-search .input-group {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.blog-search .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  height: 48px;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding-left: 20px;
}

.blog-search .form-control:focus {
  background-color: #1a1a1a;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
  color: #fff;
}

.blog-search .btn-primary {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 10px 20px;
  margin: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Instant search indicator */
.blog-search .search-indicator {
  position: absolute;
  top: 50%;
  right: 70px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-search .form-control:focus + .search-indicator {
  opacity: 1;
}

.blog-search .search-results-count {
  margin-top: 10px;
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-muted);
}


.spinner-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0.6;
  animation: pulse 1s ease-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}

.navbar .container {
    align-items: center !important;
    display: flex !important;
    flex-wrap: nowrap !important;
}

/* Modern Navbar */
.navbar {
  background-color: rgba(10, 10, 10, 0.8) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all var(--transition-normal);
  z-index: 1000;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  margin-right: 2rem;
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  margin: auto 0 !important; /* Center vertically */
  height: 100% !important;
  line-height: 1 !important;
}

.navbar.scrolled {
  padding: 0.7rem 0;
  background-color: rgba(10, 10, 10, 0.95) !important;
}

.navbar-nav {
  margin-left: auto;
  align-items: center !important;
}

.navbar-nav .nav-link {
  white-space: nowrap;
  font-size: 0.85rem;
  margin: 0 0.5rem;
  position: relative;
  margin: 0 0.7rem;
  padding: 0.5rem 0;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width var(--transition-normal);
  opacity: 0.8;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after {
  width: 100%;
}

/* Modern Back to Top Button */
#back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  box-shadow: var(--shadow-primary);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all var(--transition-normal);
}

#back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 25px rgba(67, 97, 238, 0.3);
}


/* Enhanced Hero Subtitle Styling - Simplified */

.hero-subtitle {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--secondary);
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

/* Typing cursor effect */
.hero-subtitle::after {
  content: '|';
  position: absolute;
  right: -8px;
  top: 0;
  font-size: 1.5rem;
  color: var(--secondary);
  animation: blink 0.7s infinite;
  -webkit-text-fill-color: var(--secondary);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-subtitle::after {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-subtitle::after {
    font-size: 1.1rem;
  }
}

/* Fix for typing libraries that add their own elements */
.typed-cursor {
  display: none !important; /* Hide the cursor added by Typed.js if you're using it */
}

/* Button Styles */
.btn {
  border-radius: var(--radius-full);
  padding: 10px 25px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  transform: translateY(-3px);
}

.btn-hero {
  padding: 12px 30px;
  margin-right: 15px;
  margin-bottom: 15px;
  font-size: 1rem;
}

.btn-filter {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 20px;
  margin: 0 5px 10px;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-filter:hover, .btn-filter.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: translateY(-2px);
}

/* Hero Buttons Fix - Complete Solution */

/* Fix for the hero buttons container */
.hero-buttons {
    position: relative;
    z-index: 5; /* Ensure high z-index */
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
}

/* Base button styling */
.btn-hero {
    display: inline-block;
    padding: 12px 30px;
    margin-right: 15px;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px; /* Match var(--radius-full) */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer !important;
    position: relative;
    overflow: hidden;
    z-index: 10; /* Higher than surrounding elements */
    text-decoration: none;
    pointer-events: auto !important;
}

/* Primary hero button */
.btn-primary.btn-hero {
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
    color: white !important;
    border: none;
}

.btn-primary.btn-hero:hover, 
.btn-primary.btn-hero:focus {
    background: linear-gradient(135deg, #3a56d4, #4361ee);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

/* Outline hero button */
.btn-outline-light.btn-hero {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff !important;
}

.btn-outline-light.btn-hero:hover, 
.btn-outline-light.btn-hero:focus {
    background-color: #ffffff;
    color: #121212 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Create hover effect */
.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-hero:hover::before {
    left: 100%;
}

/* Fix hero content container */
.hero-content {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

/* Fix mobile layout */
@media (	: 576px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-hero {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }
}

/* Mobile Responsive Fixes for "My Journey" Section */

/* Improve section title readability on mobile */
@media (max-width: 576px) {
  /* Enhanced section title responsiveness */
  .section-title {
    font-size: 1.8rem;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
    text-align: center;
  }
  
  /* Fix for timeline headers that might contain "my journey" */
  .timeline-content h3 {
    font-size: 1.1rem;
    word-break: break-word;
    hyphens: auto;
  }
  
  /* Ensure proper padding in sections for mobile */
  section {
    padding: var(--space-md) 0;
  }
  
  /* Fix section headers padding */
  .section-header {
    margin-bottom: var(--space-md);
    padding: 0 10px;
  }
  
  /* Fix section subtitle */
  .section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-align: center;
  }
  
  /* Improve timeline item spacing */
  .timeline-item {
    padding-bottom: 30px;
  }
  
  /* Ensure content flows properly on small screens */
  .container {
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  /* Fix any max-width constraints that might cause overflow */
  p, h1, h2, h3, h4, h5, h6 {
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

/* Additional fixes for extremely small devices */
@media (max-width: 360px) {
  .section-title {
    font-size: 1.6rem;
  }
  
  .timeline-content {
    padding: 15px;
  }
  
  .timeline-date {
    font-size: 0.8rem;
    padding: 4px 12px;
  }
}

/* Fix for touch devices to ensure proper display */
@media (hover: none) {
  .timeline-content:hover,
  .feature-card:hover,
  .btn:hover {
    /* Prevent hover states that might cause issues on touch devices */
    transform: none;
  }
}

/* Hero Buttons Fix - Add this to the end of your style.css file */

/* Fix the hero buttons to be clickable */
.hero-buttons {
    position: relative;
    z-index: 5; /* Higher z-index ensures buttons appear above other elements */
    pointer-events: auto !important; /* Ensures the container allows click events */
}

/* Fix the button styling without changing appearance */
.btn-hero {
    pointer-events: auto !important; /* Force clickability */
    position: relative;
    z-index: 10 !important; /* Higher than surrounding elements */
    cursor: pointer !important;
}

/* Ensure overlay doesn't interfere with buttons */
.hero-section::before {
    pointer-events: none !important; /* Ensure overlay doesn't capture clicks */
}

.hero-image-container {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 5px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
  transition: all var(--transition-slow);
}

.hero-image-container:hover .hero-image {
  transform: translateY(-10px);
  box-shadow: 0 30px 50px rgba(67, 97, 238, 0.2);
  border-color: rgba(67, 97, 238, 0.2);
}

.hero-image-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 20px;
  top: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  opacity: 0.3;
  z-index: 1;
  transition: all var(--transition-slow);
}

.hero-image-container:hover .hero-image-shape {
  transform: translate(10px, 10px);
}


/* Section Styling */
section {
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.bg-gradient {
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.95), rgba(10, 10, 10, 0.95));
  position: relative;
}

.bg-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom left, rgba(67, 97, 238, 0.05), transparent 60%);
  z-index: 0;
}

.section-header {
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  font-weight: 700;
  color: var(--text-light);
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: var(--space-sm) auto;
  border-radius: var(--radius-full);
}

.section-description {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* About Section - Feature Cards */
.about-content {
  padding-right: var(--space-md);
}

.about-content .lead {
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 400;
}

.feature-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: all var(--transition-normal);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: rgba(67, 97, 238, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-primary);
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
  color: var(--text-light);
}

.feature-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Skills Section */
.skills-chart-container {
  height: 400px;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.skill-category {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  height: 100%;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  text-align: center;
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-card-hover);
  border-color: rgba(67, 97, 238, 0.1);
}

.skill-category-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-primary);
}

.skill-category-icon i {
  font-size: 2rem;
  color: white;
}

.skill-category h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 15px;
}

.skill-category h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 15px;
}

.skill-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.skill-list li span {
  font-weight: 500;
  color: var(--text-muted);
}

/* Modern Timeline */
.modern-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.modern-timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: var(--radius-full);
}

.timeline-item {
  padding: 0 50px 50px 0;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.timeline-item-right {
  left: 50%;
  padding: 0 0 50px 50px;
}

.timeline-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}

.timeline-content:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-card-hover);
  border-color: rgba(67, 97, 238, 0.1);
}

.timeline-content::after {
  content: '';
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  right: -10px;
  transform: rotate(45deg);
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}

.timeline-item-right .timeline-content::after {
  left: -10px;
  right: auto;
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-right: none;
  border-top: none;
}

.timeline-dot {
  position: absolute;
  width: 25px;
  height: 25px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  right: -12.5px;
  top: 30px;
  z-index: 1;
  border: 4px solid var(--bg-dark);
  box-shadow: var(--shadow-primary);
}

.timeline-item-right .timeline-dot {
  left: -12.5px;
  right: auto;
}

.timeline-date {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-primary);
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
  color: var(--text-light);
}

.timeline-content p {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Portfolio Section */
.modern-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: var(--space-lg);
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 300px;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.portfolio-item:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(67, 97, 238, 0.2);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  position: relative;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: all var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content {
  transform: translateY(20px);
  transition: all var(--transition-normal);
  transition-delay: 0.1s;
  width: 100%;
}

.portfolio-item:hover .portfolio-content {
  transform: translateY(0);
}

.portfolio-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: white;
}

.portfolio-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.view-project {
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
}

.view-project::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .view-project::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Badges Section */
.modern-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  margin-top: var(--space-md);
}

.badge-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 220px;
  cursor: pointer;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
}

.badge-card:hover {
  transform: translateY(-10px) rotate(3deg);
  box-shadow: var(--shadow-lg);
  border-color: rgba(67, 97, 238, 0.2);
}

.badge-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.badge-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all var(--transition-normal);
}

.badge-card:hover .badge-img img {
  transform: scale(1.1);
}

.badge-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  transform: translateY(100%);
  transition: all var(--transition-normal);
}

.badge-card:hover .badge-overlay {
  transform: translateY(0);
}

.badge-title {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 5px;
}

.badge-view {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Blog Section */
.modern-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: var(--space-md);
}

.blog-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid var(--border-color);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(67, 97, 238, 0.2);
}

.blog-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-img img {
  transform: scale(1.1);
}

.blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-md);
  min-width: 60px;
  box-shadow: var(--shadow-primary);
}

.blog-date .day {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.blog-date .month {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 2px;
}

.blog-content {
  padding: var(--space-md);
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-light);
  transition: all var(--transition-normal);
}

.blog-card:hover .blog-content h3 {
  color: var(--primary-light);
}

.blog-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 15px;
}

.blog-tag {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary-light);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all var(--transition-normal);
}

.blog-tag:hover {
  background-color: var(--primary);
  color: white;
}

.blog-readmore {
  margin-left: auto;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 2px;
}

.blog-readmore::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-readmore::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Contact Section */
.contact-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(67, 97, 238, 0.2);
}

.contact-info {
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
  text-align: center;
  border-right: 1px solid var(--border-color);
}

.contact-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto var(--space-sm);
  border: 4px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-md);
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--text-light);
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 5px;
}

.contact-socials {
  display: flex;
  justify-content: center;
  margin-top: var(--space-sm);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
}

.contact-details {
  padding: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(67, 97, 238, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--primary-light);
  transition: all var(--transition-normal);
}

.contact-item:hover .contact-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: scale(1.1);
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-light);
}

.contact-text a, .contact-text p {
  color: var(--text-muted);
  margin: 0;
  transition: all var(--transition-fast);
}

.contact-text a:hover {
  color: var(--secondary);
}

/* Footer */
.footer {
  background-color: var(--bg-card);
  position: relative;
  z-index: 1;
}

.footer-top {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-color);
}

.footer-widget {
  margin-bottom: var(--space-md);
}

.footer-title {
  position: relative;
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  padding-bottom: 10px;
  color: var(--text-light);
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

.footer-text {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  margin-top: var(--space-sm);
}

.social-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: all var(--transition-normal);
}

.social-circle:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.footer-links li {
  flex-basis: 50%;
  margin-bottom: 10px;
  padding-left: 15px;
  position: relative;
}

.footer-links li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
}

.footer-links a {
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-blogs {
  margin-top: var(--space-sm);
}

.footer-blog {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.footer-blog:last-child {
  border-bottom: none;
}

.footer-blog a {
  color: var(--text-muted);
  transition: all var(--transition-fast);
  display: block;
  line-height: 1.6;
}

.footer-blog a:hover {
  color: var(--secondary);
}

.footer-bottom {
  padding: var(--space-md) 0;
}

.copyright {
  color: var(--text-muted);
  margin: 0;
}

.footer-credit {
  color: var(--text-muted);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
  }
  
  .timeline-item-right {
    left: 0;
  }
  
  .timeline-content::after {
    left: -10px;
    right: auto;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-right: none;
    border-top: none;
  }
  
  .timeline-dot {
    left: 18px;
    right: auto;
  }
  
  .contact-info {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-image-container {
    width: 280px;
    height: 280px;
    margin-top: var(--space-md);
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .modern-portfolio-grid,
  .modern-blog-grid {
    grid-template-columns: 1fr;
  }
  
  .modern-badges-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .btn-hero {
    width: 100%;
    margin-right: 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Timeline Fixes - Add this to your style.css */

/* Hide the timeline line on mobile devices */
@media (max-width: 992px) {
  .modern-timeline::after {
    display: none;
  }
  
  /* Reset timeline items to stack vertically without line positioning */
  .timeline-item {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 30px;
    margin-bottom: 20px;
    left: 0 !important; /* Override any left positioning */
  }
  
  .timeline-item-right {
    left: 0 !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Adjust timeline dots for mobile - position them to the left */
  .timeline-dot {
    position: relative;
    left: 0;
    right: auto;
    margin-bottom: 15px;
    margin-left: 0;
    margin-right: auto;
    display: block;
    transform: translateX(0);
  }
  
  .timeline-item-right .timeline-dot {
    left: 0;
    right: auto;
    margin-left: 0;
    margin-right: auto;
  }
  
  /* Adjust timeline content for mobile */
  .timeline-content {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .timeline-content::after {
    display: none; /* Hide the arrow/pointer on mobile */
  }
  
  .timeline-item-right .timeline-content::after {
    display: none; /* Hide the arrow/pointer on mobile */
  }
}

/* Additional mobile improvements */
@media (max-width: 768px) {
  .timeline-content {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .timeline-date {
    font-size: 0.85rem;
    padding: 5px 15px;
    margin-bottom: 15px;
  }
  
  .timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .timeline-content {
    padding: 15px;
  }
  
  .timeline-content h3 {
    font-size: 1.1rem;
  }
  
  .timeline-content p {
    font-size: 0.9rem;
  }
  
  .timeline-date {
    font-size: 0.8rem;
    padding: 4px 12px;
  }
}


/* Enhanced Timeline Styling - Blue Theme */

/* Company/Institution Names */
.timeline-company,
.timeline-institution {
    color: var(--secondary); /* Keep the same light blue */
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    font-style: italic;
}

/* Education-specific dot styling - Use secondary blue instead of accent */
.education-dot {
    background: linear-gradient(135deg, var(--secondary), var(--primary-light));
}

/* Skill badges */
.timeline-skills {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(67, 97, 238, 0.2);
    transition: all var(--transition-normal);
}

.skill-badge:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.skill-badge.education {
    background: rgba(76, 201, 240, 0.1); /* Secondary blue instead of pink */
    color: var(--secondary);
    border-color: rgba(76, 201, 240, 0.2);
}

.skill-badge.education:hover {
    background: var(--secondary);
    color: white;
}

/* Section background differentiation */
#experience {
    background: var(--bg-dark);
}

#education {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95), rgba(10, 10, 10, 0.95));
    position: relative;
}

#education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(76, 201, 240, 0.05), transparent 60%);
    z-index: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .timeline-skills {
        margin-top: 10px;
    }
    
    .skill-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .timeline-company,
    .timeline-institution {
        font-size: 0.9rem;
    }
}

/* Enhanced Content Dropdown Navigation Styles */

/* Dropdown Menu Base Styling */
.navbar-nav .dropdown {
    position: relative;
}

.navbar-nav .dropdown-toggle {
    position: relative;
    padding-right: 25px !important;
    transition: all var(--transition-normal);
}

.navbar-nav .dropdown-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: all var(--transition-fast);
    opacity: 0.7;
}

.navbar-nav .dropdown-toggle:hover::after,
.navbar-nav .dropdown.show .dropdown-toggle::after {
    opacity: 1;
    transform: translateY(-50%) rotate(180deg);
}

/* Enhanced Dropdown Menu */
.dropdown-menu {
    background: rgba(22, 22, 22, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    padding: 15px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all var(--transition-normal);
    z-index: 1050;
}

/* Show dropdown with animation */
.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Enhanced Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition-normal);
    z-index: -1;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: transparent;
    color: white;
    transform: translateX(5px);
}

.dropdown-item:hover::before {
    width: 100%;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover i {
    transform: scale(1.1);
    color: white;
}

/* Content Labels */
.dropdown-item .content-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: auto;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-fast);
}

.dropdown-item:hover .content-label {
    opacity: 1;
    transform: translateX(0);
}

/* Divider between items */
.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border: none;
}

/* Active state for current page */
.dropdown-item.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
}

.dropdown-item.active::before {
    width: 100%;
}

/* Hover effect for the dropdown toggle */
.navbar-nav .dropdown:hover .dropdown-toggle {
    color: var(--primary-light);
}

/* Mobile Optimizations */
@media (max-width: 991px) {
    /* Mobile dropdown styling */
    .navbar-nav .dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        background: rgba(30, 30, 30, 0.95);
        border: none;
        border-radius: 0;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        backdrop-filter: none;
    }
    
    .dropdown-item {
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1rem;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-item::before {
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, var(--primary), var(--secondary));
        transform: scaleY(0);
        transform-origin: bottom;
        transition: transform var(--transition-normal);
    }
    
    .dropdown-item:hover::before {
        width: 4px;
        transform: scaleY(1);
    }
    
    .dropdown-item:hover {
        transform: translateX(10px);
        background: rgba(67, 97, 238, 0.1);
    }
    
    /* Hide dropdown toggle arrow on mobile */
    .navbar-nav .dropdown-toggle::after {
        display: none;
    }
    
    /* Mobile content labels */
    .dropdown-item .content-label {
        display: none;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .dropdown-item {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .dropdown-item i {
        margin-right: 10px;
        font-size: 0.9rem;
    }
}

/* Alternative: Mega Menu Style (if you want to expand later) */
.mega-dropdown {
    position: static !important;
}

.mega-dropdown .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 30px;
    margin-top: 0;
}

.mega-dropdown .dropdown-menu .row {
    margin: 0;
}

.mega-dropdown .dropdown-menu .col-md-4 {
    padding: 15px;
}

/* Content Type Icons Styling */
.content-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin-right: 15px;
    transition: all var(--transition-normal);
}

.dropdown-item:hover .content-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Notification badges (for new content) */
.content-badge {
    position: absolute;
    top: -5px;
    right: 10px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
    .dropdown-menu {
        background: rgba(10, 10, 10, 0.95);
        border-color: rgba(255, 255, 255, 0.08);
    }
    
    .dropdown-item {
        color: var(--text-light);
    }
    
    .dropdown-item:hover {
        color: white;
    }
}

/* Accessibility improvements */
.dropdown-item:focus {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.dropdown-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dropdown-menu,
    .dropdown-item,
    .dropdown-toggle::after {
        transition: none;
    }
    
    .content-badge {
        animation: none;
    }
}

/* Remove underline from Content dropdown */
.navbar-nav .dropdown-toggle::after {
    display: none; /* This removes the default Bootstrap arrow */
}

.navbar-nav .dropdown-toggle {
    position: relative;
}

/* Remove the custom underline animation for dropdown toggle */
.navbar-nav .dropdown .nav-link::after {
    display: none !important;
}

/* OR if you want to be more specific, target just the content dropdown */
#contentDropdown::after {
    display: none !important;
}

/* Make sure no hover effects create lines */
.navbar-nav .dropdown-toggle:hover::after,
.navbar-nav .dropdown.show .dropdown-toggle::after {
    display: none !important;
}



/* Mobile Navbar Fixes - CRITICAL for hamburger menu functionality */

/* Ensure navbar toggler is visible and clickable on mobile */
.navbar-toggler {
  border-color: rgba(255,255,255,.1) !important;
  padding: 4px 8px !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 1000 !important;
  cursor: pointer !important;
  background-color: transparent !important;
}

.navbar-toggler:focus,
.navbar-toggler:hover {
  text-decoration: none !important;
  border-color: rgba(255,255,255,.2) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Fix the hamburger icon */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1.5em !important;
  height: 1.5em !important;
  display: block !important;
}

/* Modern Mobile Navigation - Better Alternative to Vertical Stacking */

/* Enhanced Mobile Menu - Grid Layout */
@media (max-width: 991.98px) {
  /* Mobile navbar collapse with grid layout */
  .navbar-collapse {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 10px;
    padding: 20px 15px;
    background-color: rgba(10, 10, 10, 0.98);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
  }
  
  /* Grid layout for nav items */
  .navbar-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  /* Make dropdown span full width */
  .navbar-nav .dropdown {
    grid-column: 1 / -1 !important;
  }
  
  /* Compact nav items */
  .navbar-nav .nav-item {
    margin: 0 !important;
  }
  
  .navbar-nav .nav-link {
    padding: 12px 8px !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    border-radius: var(--radius-md) !important;
    background-color: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    color: rgba(255,255,255,0.9) !important;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: rgba(67, 97, 238, 0.2) !important;
    border-color: rgba(67, 97, 238, 0.3) !important;
    color: white !important;
    transform: translateY(-2px) !important;
  }
  
  /* Horizontal dropdown menu */
  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin-top: 10px !important;
    background-color: rgba(30, 30, 30, 0.95) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
  }
  
  .navbar-nav .dropdown-item {
    padding: 15px 8px !important;
    text-align: center !important;
    border: none !important;
    border-right: 1px solid rgba(255,255,255,0.1) !important;
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.8) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 60px !important;
    transition: all 0.3s ease !important;
  }
  
  .navbar-nav .dropdown-item:last-child {
    border-right: none !important;
  }
  
  .navbar-nav .dropdown-item i {
    font-size: 1.2rem !important;
    margin-bottom: 5px !important;
    margin-right: 0 !important;
    display: block !important;
  }
  
  .navbar-nav .dropdown-item:hover {
    background-color: rgba(67, 97, 238, 0.2) !important;
    color: white !important;
    transform: translateY(-2px) !important;
  }
  
  /* Hide long text, show short text */
  .dropdown-text {
    display: none !important;
  }
  
  .dropdown-text-mobile {
    display: block !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
  }
  
  /* Remove default dropdown arrow */
  .navbar-nav .dropdown-toggle::after {
    display: none !important;
  }
}

/* Extra small devices - Even more compact */
@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  /* Make grid even more compact */
  .navbar-nav {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 4px !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
  }
  
  /* Content dropdown stays full width but more compact */
  .navbar-nav .dropdown {
    grid-column: 1 / -1 !important;
    margin-top: 10px !important;
  }
  
  .navbar-nav .dropdown-menu {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
  
  .navbar-nav .dropdown-item {
    padding: 12px 4px !important;
    min-height: 50px !important;
  }
  
  .navbar-nav .dropdown-item i {
    font-size: 1rem !important;
    margin-bottom: 3px !important;
  }
  
  .dropdown-text-mobile {
    font-size: 0.7rem !important;
  }
}

/* Show full text on larger screens */
@media (min-width: 992px) {
  .dropdown-text {
    display: inline !important;
  }
  
  .dropdown-text-mobile {
    display: none !important;
  }
}

/* Mobile Navbar Fixes - CRITICAL for hamburger menu functionality */