@import url(https://fonts.googleapis.com/css?family=Roboto:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

* {
  font-family: "Roboto", sans-serif;
}

/* =========================
   Global Section Background
========================= */
.section-bg {
  background: linear-gradient(135deg, #e3f2fd, #ffffff, #e8f5e9);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
}

/* Dark Mode Background */
body.dark-mode .section-bg {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  background-size: 300% 300%;
  animation: gradientShift 15s ease infinite;
  color: #f1f1f1;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

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

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

/* =========================
     Global Cards
========================= */
.section-card {
  border: 1px solid rgba(0, 0, 0, 0.05); /* subtle border */
  border-radius: 0.75rem; /* soft rounded corners */
  overflow: hidden; /* prevents image overflow */
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease; /* smooth hover effects */
  background-color: #fff;
}

/* Card hover effects */
.section-card:hover {
  transform: translateY(-6px); /* lift effect */
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12); /* elevated shadow */
  border-color: rgba(13, 110, 253, 0.25); /* subtle blue border glow */
}

/* Card image behavior */
.card-img {
  object-fit: cover; /* ensures image fills container */
  transition: transform 0.4s ease; /* smooth zoom-in effect */
  width: 100%;
  height: 100%;
}

/* Image zoom on hover */
.section-card:hover .card-img {
  transform: scale(1.05);
}

/* =========================
     Dark Mode: Cards
========================= */
body.dark-mode .section-card {
  background-color: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.04);
  color: #f1f1f1;
}

/* Card hover shadow in dark mode */
body.dark-mode .section-card:hover {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  border-color: rgba(76, 175, 239, 0.35);
}

/* =========================
     Project Titles
========================= */
.section-card .card-title {
  font-weight: 700;
  color: #212529; /* dark gray for light mode */
}

/* White title in dark mode */
body.dark-mode .section-card .card-title {
  color: #f8f9fa;
}

/* =========================
     Buttons
========================= */
.section-card .btn,
#showMoreBtn {
  transition: transform 0.25s ease, box-shadow 0.25s ease; /* subtle motion on hover */
}

/* Button hover lift + glow */
.section-card .btn:hover,
#showMoreBtn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

/* =========================
       Animations
    ========================= */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.4s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.6s;
}
.fade-in:nth-child(4) {
  animation-delay: 0.8s;
}
.fade-in:nth-child(5) {
  animation-delay: 1s;
}
.fade-in:nth-child(6) {
  animation-delay: 1.2s;
}
.fade-in:nth-child(7) {
  animation-delay: 1.4s;
}
.fade-in:nth-child(8) {
  animation-delay: 1.6s;
}
.fade-in:nth-child(9) {
  animation-delay: 1.8s;
}
.fade-in:nth-child(10) {
  animation-delay: 2s;
}

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

/* =========================
   Skill / Category Tags
========================= */
/* Base capsule style */
.skill-tag {
  display: inline-block;
  padding: 2px 6px; /* small capsule size */
  border-radius: 6px; /* rounded edges */
  font-size: 0.75rem; /* compact text */
  font-weight: 500;
  margin: 2px 4px; /* spacing between tags */
  white-space: nowrap;
  color: #fff; /* white text */
}

/* =========================
       Buttons
    ========================= */
.btn {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.btn-outline-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

/* =========================
     Carousel Indicators
========================= */
/* Place indicators below carousel, centered */
.carousel-indicators.outside-indicators {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Active indicator color (light mode) */
.carousel-indicators.outside-indicators .active {
  background-color: #222222;
}

/* Inactive indicators (light mode) */
.carousel-indicators.outside-indicators button {
  background-color: #aaa; /* lighter gray, still visible on white */
  opacity: 0.7;
}

/* Dark mode: lighter inactive indicators */
body.dark-mode .carousel-indicators.outside-indicators button {
  background-color: #ffffff;
}

/* Dark mode: bright active indicator */
body.dark-mode .carousel-indicators.outside-indicators .active {
  background-color: #00a6a6;
}

/* =========================
     Responsive spacing
========================= */
@media (max-width: 575.98px) {
  .carousel-control-prev.outside-control,
  .carousel-control-next.outside-control {
    display: none;
  }
}
