/* Consolidated CSS file for the portfolio website */

/* Color Variables */
:root {
  /* Dark theme colors - now the only theme */
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --dark-card: #1e1e1e;
  --dark-accent: #2d2d2d;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --accent-color: #bb86fc;
  --accent-color-hover: #9966cc;
  --border-color: #333333;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hide navbar when sidebar is open */
body.sidebar-open .navbar {
  opacity: 0;
  visibility: hidden;
}

html {
  scroll-padding-top: 70px; /* Height of navbar */
}

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  font-family: "Wittgenstein", serif;
  overflow-x: hidden;
  padding-top: 0;
}

/* Navbar Styles */
.navbar {
  background-color: transparent;
  transition: background-color 0.3s ease, padding 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem 0;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.734);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary) !important;
}

.navbar-brand span.text-accent {
  color: var(--accent-color) !important;
}

.navbar-nav .nav-link {
  color: var(--text-secondary);
  margin: 0 0.5rem;
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
  color: var(--accent-color);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent-color);
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
  left: 10%;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}


.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

/* Home Section */
.home {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.vanta-canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.home .container {
  position: relative;
  z-index: 2;
}

.vanta-canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.home .container {
  position: relative;
  z-index: 1;
}

.home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.home::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
}

.Head-Text {
  margin: 0;
  font-family: "Playfair Display", serif;
  text-align: center;
  z-index: 2;
  color: var(--text-primary);
}

.Head-Text h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font: bold;
  text-shadow: 0 3px 10px rgba(187, 134, 252, 0.3);
}

.Head-Text h2 {
  color: var(--text-secondary);
  font-size: 1.8rem;
  letter-spacing: 2px;
}

/* Common Section Styles */
section {
  margin: 0;
  position: relative;
  z-index: 10;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Profile Image Styles */
.profile-img {
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  overflow: hidden;
  /* background: 
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, var(--accent-color), #03dac5) border-box;
     */
     border: 1px solid white;
  box-shadow: 0 0 25px rgba(187, 134, 252, 0.3);
  transition: all 0.4s ease-in-out;
}

/* Section Title Styles */
.section-title {
    position: relative; /* necessary for ::after positioning */
    display: inline-block; /* shrink-wrap to text width */
    padding-bottom: 8px; /* space for the underline */
    font-weight: 700;
    color: var(--text-primary);
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; /* aligns bottom edge of line with bottom edge of the title */
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #03dac5);
  border-radius: 3px;
}

/* Intro Section */
.intro {
  background-color: black;
  padding: 2rem 0;
}

/* Highlight styles */
.highlight {
  color: white;
  font-weight: 500;
}

.highlight-tech {
  color: var(--accent-color);
  font-weight: 600;
}

/* Tech Stack Section */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

/* Tech badges */
.tech-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-accent);
  color: var(--accent-color);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tech-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(187, 134, 252, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.tech-badge:hover {
  transform: translateY(-5px) rotate(2deg);
  background-color: var(--accent-color);
  color: var(--dark-bg);
  box-shadow: 0 5px 15px rgba(187, 134, 252, 0.3);
  border-color: transparent;
}

.tech-badge:hover::before {
  left: 100%;
}

@media (max-width: 768px) {
  .tech-stack {
    gap: 8px;
  }
  
  .tech-badge {
    padding: 6px 16px;
    font-size: 0.9rem;
  }
}
/* Project badges */
.badge {
  font-size: 0.85rem;
  padding: 0.5em 1em;
  margin: 0.25rem;
  border-radius: 20px;
  background-color: var(--dark-accent);
  color: var(--accent-color);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(187, 134, 252, 0.2);
  background-color: var(--accent-color);
  color: var(--dark-bg);
}


/* Footer */
.footer {
  background: #000;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #03dac5);
  opacity: 0.3;
}

.footer-logo {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-logo span {
  transition: color 0.3s ease;
}

.footer-logo:hover span {
  color: var(--accent-color) !important;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.footer-nav {
  margin: 0;
  padding: 0;
}

.footer-nav .nav-link {
  color: var(--text-secondary);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  font-size: 1rem;
  position: relative;
  display: inline-block;
}

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

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

.footer-nav .nav-link:hover::after {
  width: 100%;
}

.social-link {
  transition: all 0.3s ease;
  padding: 12px;
  text-decoration: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--dark-card);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--accent-color), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(187, 134, 252, 0.3);
}

.social-link::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--accent-color), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.social-link:hover::before {
  opacity: 0.2;
}

.social-link.linkedin:hover {
  background: #0a66c2;
  transform: translateY(-3px) rotate(-8deg);
}

.social-link.github:hover {
  background: #333;
  transform: translateY(-3px) rotate(8deg);
}

.social-link.email:hover {
  background: #ea4335;
  transform: translateY(-3px) rotate(-8deg);
}

.contact-info a {
  transition: all 0.3s ease;
}

.contact-info a:hover {
  color: var(--accent-color) !important;
  text-decoration: none;
}

.contact-info i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.contact-info div:hover i {
  transform: scale(1.1);
}

.footer .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer .fa-heart {
  color: #ff4d4d;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#back-to-top:hover {
  transform: translateY(-5px);
  background-color: var(--accent-color-hover);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Dark mode text colors */
.card-title, 
.skill-title,
.certification-title,
.nav-title,
.connect-title {
  color: var(--text-primary) !important;
}

.subtitle,
.text-secondary,
.certification-date,
p.lead,
.skill-list li,
.contact-info span,
.footer-tagline {
  color: var(--text-secondary) !important;
}

.certification-provider {
  color: var(--accent-color) !important;
}

/* Dark card backgrounds */
.card,
.skill-card,
.certification-card {
  background-color: var(--dark-card);
  border: 1px solid var(--border-color);
}

/* Dark mode hover states */
.card:hover,
.skill-card:hover,
.certification-card:hover {
  box-shadow: 0 15px 15px rgba(187, 134, 252, 0.2);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .project-title {
    font-size: 2rem;
  }
  
  .project-image-container {
    min-height: 300px;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-control-next {
    right: 10px;
  }
  
  .Head-Text h1 {
    font-size: 3.5rem;
  }
  
  .Head-Text h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .project-title {
    font-size: 1.2rem;
  }
  
  .project-image-container {
    min-height: 250px;
  }
  
  .skill-title {
    font-size: 1.2rem;
  }
  
  .certification-title {
    font-size: 1.1rem;
  }
  
  .Head-Text h1 {
    font-size: 2.8rem;
  }
  
  .Head-Text h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .project-title {
    font-size: 1rem;
  }
  
  .project-image-container {
    min-height: 200px;
  }
  
  .carousel-item {
    min-height: auto;
  }
  
  .Head-Text h1 {
    font-size: 2.5rem;
  }
}

/* Enhanced Hover Animations */
.section-title::after {
  transition: width 0.3s ease, transform 0.3s ease;
}

.section-title:hover::after {
  width: 100px;
  transform: translateX(-10px);
}

.tech-badge {
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-badge:hover {
  transform: translateY(-5px) rotate(3deg);
  background-color: var(--accent-color);
  color: white;
  box-shadow: 0 5px 15px rgba(187, 134, 252, 0.3);
}

.certification-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.certification-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 35px rgba(187, 134, 252, 0.2);
}

.certification-image img {
  transition: transform 0.5s ease;
}

.see-more-btn {
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.see-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s ease;
}

.see-more-btn:hover::before {
  left: 100%;
}

/* Skill Card Enhancements */
.skill-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(187, 134, 252, 0.2);
}

.skill-card .bullet {
  transition: transform 0.3s ease, color 0.3s ease;
}

.skill-card:hover .bullet {
  transform: scale(1.2);
  color: var(--accent-color);
}

/* Enhanced Focus States */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Enhanced custom carousel styles */
.projects-section {
  background: #000;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(153, 102, 204, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.projects-section .container {
  position: relative;
  z-index: 1;
}

.projects-section .section-header {
  margin-bottom: 3rem;
}

.projects-section .subtitle {
  max-width: 700px;
  margin: 0 auto;
}

.carousel {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 1.5rem 0;
  position: relative;
  margin: 0;
  list-style: none;
  gap: 2rem;
  transition: transform 0.5s ease;
  transform: translateX(0);
}

ul.carousel::-webkit-scrollbar {
  display: none;
}

.carousel .project-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 0 1rem;
}

.slide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: rgba(18, 18, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  min-height: 480px;
}

.slide-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(153, 102, 204, 0.15);
}

.featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, #9966cc, #03dac5);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.slide-text h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.slide-text p {
  color: #b6b9c9;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-card-image {
  position: relative;
  height: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.6s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-image:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
  z-index: 1;
  border-radius: 0.5rem;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.slide-image:hover .image-overlay {
  opacity: 0.2;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

.project-links .btn {
  padding: 0.6rem 1.25rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.project-links .btn-primary {
  background: linear-gradient(135deg, #9966cc, #6941C6);
  border: none;
}

.project-links .btn-primary:hover {
  background: linear-gradient(135deg, #8758bb, #5535b0);
  transform: translateY(-2px);
}

.project-links .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
}

.project-links .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Carousel Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(153, 102, 204, 0.8);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-nav.prev {
  left: 5px;
}

.carousel-nav.next {
  right: 5px;
}

.carousel-nav:hover {
  background: rgba(153, 102, 204, 1);
  transform: translateY(-50%) scale(1.1);
}

/* Project Indicators */
.project-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(153, 102, 204, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator.active {
  background-color: rgba(153, 102, 204, 0.8);
  transform: scale(1.2);
}

/* Projects Section Styles */
.projects-section {
  background-color: var(--dark-bg);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(187, 134, 252, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.project-card {
  background: rgba(30, 30, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(187, 134, 252, 0.2);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 45px;
  height: 45px;
  background: rgba(187, 134, 252, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-link:hover {
  background: rgba(187, 134, 252, 1);
  transform: translateY(-5px);
  color: white;
}

.project-info {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: 'Playfair Display', serif;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tech-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(187, 134, 252, 0.1);
  color: var(--accent-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(187, 134, 252, 0.2);
}

.tech-badge:hover {
  background: rgba(187, 134, 252, 0.2);
  transform: translateY(-2px);
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(187, 134, 252, 0.3);
  color: var(--text-primary);
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  background: rgba(187, 134, 252, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.view-more-btn i {
  transition: transform 0.3s ease;
}

.view-more-btn:hover i {
  transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0.5rem;
  }
  
  .project-card {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .project-title {
    font-size: 1.3rem;
  }
  
  .project-description {
    font-size: 0.9rem;
  }
}

@media (hover: none) {
  .project-overlay {
    opacity: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
  }
  
  .project-link {
    transform: translateY(0);
  }
}
.skill-icons {
  margin-top: 4rem;
  text-align: center;
}

.skill-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  gap: 8px;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.skill-icon-wrapper i {
  font-size: 3rem;
  color: white;
}
.skill-icon-wrapper i:hover {
  font-size: 3rem;
  color: #9966cc;
}

.skill-icon-wrapper span {
  font-size: 1rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.skill-icon-wrapper:hover {
  transform: scale(1.1);
  color: #b0b0b0;
}

.skill-icons .container,
.skill-icons .row,
.skill-icons .col-12 {
  padding: 0;
  margin: 0;
}

.skill-icons .d-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}
.scroll-down {
  text-align: center;
  margin-top: 2rem;
  bottom: 0;
  animation: bounce 2s infinite;
}

.scroll-down a {
  color: #ffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.scroll-down a:hover {
  color: #bb86fc;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0); 
  }
  40% {
    transform: translateY(8px); 
  }
  60% {
    transform: translateY(4px); 
  }
}
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 2rem;
  padding: 2rem ;
  list-style: none;
  margin: 0;
  
}
@media (max-width: 768px) {
  .carousel li {
    height: 550px;
  }
}
.carousel li {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: 14px;
  border:1px solid white;
  /* background: 
    linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #bb86fc, #03dac5) border-box; */

  box-shadow: 0 4px 24px rgba(0,0,0,0.30);
  min-width: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-content {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 2rem;
  padding: 2rem;
}
.slide-text {
  flex: 1 1 55%;
}
.slide-text h2 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 2.5em;
  color: #fff;
  letter-spacing: 0.5px;
}
.slide-text p {
  margin: 0;
  color: #b6b9c9;
  font-size: 1.1em;
}

.slide-text .mobile-description {
  display: none;
}

@media (max-width: 768px) {
  .slide-text .full-description {
    display: none;
  }
  .slide-text h2 {
    font-size: 2em;
  }
  
  .slide-text .mobile-description {
    display: block;
    font-size: 1em;
    line-height: 1.4;
    margin-bottom: 1rem;
  }
}

.slide-image {
  flex: 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-image img {
  border: 1px solid white;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.slide-image:hover img {
  transform: scale(1.03);
}
.slide-image img {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  background: #222;
}
@media (max-width: 800px) {
  .slide-content {
    flex-direction: column;    
    gap: 1.2rem;
    padding: 1.2rem;
  }
  .slide-image img {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .slide-content {
    flex-direction: column;
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .slide-text, .slide-image {
    min-width: 100%;
  }

  .slide-image {
    order: -1; /* Show image first on mobile */
    margin-bottom: 1.5rem;
  }

  .project-title {
    font-size: 1.5rem;    
  }

  .project-links {    
    gap: 1rem;
  }

  .tech-badge {
  padding: 4px 14px; 
  }
  
}

/* Small screen adjustments */
@media (max-width: 576px) {
  .Head-Text h1 {
    font-size: 2.5rem;
  }

  .Head-Text h2 {
    font-size: 1.3rem;
  }

  .tech-badge {
  padding: 4px 14px; 
  }

  .home-btn-container {
    flex-direction: column;
    gap: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .slide-content {
    padding: 1rem;
    margin: 0.25rem;
  }

  .tech-badge {
    padding: 6px 15px;
    font-size: 0.9rem;
  }
}

/* Navigation adjustments for mobile */
@media (max-width: 992px) {
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
  }
  .tech-badge {
  padding: 4px 14px; 
  }

  .navbar-nav .nav-link {    
    padding: 0.75rem;
  }
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background-color: #000;
  z-index: 2001;
  padding: 2rem 1rem;
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
  box-shadow: var(--box-shadow);
}

.mobile-sidebar.active {
  transform: translateX(-280px);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.565);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.close-sidebar {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.close-sidebar:hover {
  color: var(--accent-color);
}

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

.sidebar-item {
  margin-bottom: 1rem;
}

.sidebar-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--accent-color);
  background-color: var(--dark-accent);
}

.sidebar-link i {
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
}

/* Hide mobile sidebar on larger screens */
@media (min-width: 992px) {
  .mobile-sidebar,
  .sidebar-overlay {
    display: none;
  }
}

/* Show mobile sidebar toggle only on mobile */
@media (min-width: 992px) {
  #sidebarToggle {
    display: none;
  }
}.home-btn-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  
  gap: 1rem;
}

.home-btn-container .btn {
  position: relative;
  background-color: #000;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.home-btn-container .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.home-btn-container .btn:hover {  
  color: #fff;
  background-color: #000;
  background-color: rgba(187, 134, 252, 0.15);
  border-color: var(--accent-color);
}

.home-btn-container .btn:hover::before {
  left: 100%;
}