.skill-logo {
  max-height: 60px;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
  .skill-logo {
    max-height: 30px; /* shrink from 60px */
  }
  .skill-label {
    font-size: 0.75rem; /* slightly smaller text under icon */
  }
}

.skill-logo:hover {
  transform: scale(1.2);
}

.skill-label {
  font-size: 0.85rem;
  color: #8a9199;
}

.swiper-button-next,
.swiper-button-prev {
  color: #ffd700;
  /* yellow to match glow */
  transform: scale(0.6);
  /* make buttons smaller */
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(0.8);
  opacity: 1;
}

.swiper-slide h6 {
  color: yellow;
}

.swiper-pagination-bullet {
  background: yellow !important;
}

/* enable smooth anchor scrolling */
html {
  scroll-behavior: smooth;
}

/* --- Sticky navbar polish --- */
.navbar {
  transition: background-color 0.25s ease, box-shadow 0.25s ease,
    backdrop-filter 0.25s ease;
}

.navbar.navbar-scrolled {
  background-color: rgba(0, 0, 0, 0.55) !important;
  /* subtle, keeps your dark style */
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* --- Hero --- */
.home-hero {
  min-height: 100vh;
  /* full viewport */
  display: flex;
  justify-content: center;
  /* centers content horizontally */
  position: relative;
  padding: clamp(2rem, 4vw, 4rem) 1rem;
  overflow: hidden;
  /* makes sure arrow doesn’t spill */
}

.home-hero .hero-wrap {
  align-items: center;
  gap: 2rem;
}

.home-hero .hero-img {
  width: 240px;
  max-width: 60vw;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid yellow;
  box-shadow: 0 12px 40px rgba(255, 255, 0, 0.12);
}

.home-hero .headline {
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.home-hero .subhead {
  color: #8a9199;
  max-width: 50ch;
}

.home-hero .cta .btn {
  border-radius: 999px;
  padding: 0.6rem 1rem;
  border-width: 2px;
}

/* --- Scroll Down Arrow --- */
.scroll-down {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  color: yellow;
  font-size: 1.8rem;
  cursor: pointer;
  animation: sd-bounce 2s infinite;
  /* use the corrected animation */
  z-index: 20;
}

@keyframes sd-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* --- Sections --- */
.home-section {
  padding: clamp(2rem, 4vw, 4rem) 0;
  /* so anchor scroll doesn't hide behind sticky nav */
  scroll-margin-top: 80px;
}

.home-section .title-row {
  margin-bottom: 1rem;
}

.home-section h2 {
  font-size: clamp(1.25rem, 1.1rem + 1vw, 1.75rem);
  letter-spacing: 0.3px;
}

.accent {
  color: yellow;
}

/* --- Skills carousel --- */
.skills-carousel .carousel-item {
  padding: 1rem 0.25rem 2rem;
}

.skill-pill {
  display: inline-block;
  border: 1px solid yellow;
  color: yellow;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  margin: 0.25rem 0.35rem 0.35rem 0;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
}

/* --- Companies/Clients --- */
.company-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}

@media (min-width: 576px) {
  .company-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .company-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.company-logo {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  min-height: 74px;
}

.company-logo img {
  max-height: 56px;
  max-width: 100%;
  transition: filter 0.2s ease;
}

.company-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255, 255, 0, 0.08);
  border-color: yellow;
}

@media (max-width: 768px) {
  .company-logo img {
    max-height: 30px; /* shrink from 56px */
  }
}

/* --- Project cards --- */
.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: yellow;
  box-shadow: 0 10px 28px rgba(255, 255, 0, 0.08);
}

.project-card h6 {
  color: white;
}

.project-card .badge {
  background: #8a9199;
  color: black;
  margin-right: 0.25rem;
}

/* --- Achievements --- */
.ach-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  height: 100%;
}

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* --- Back to top (optional) --- */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid yellow;
  color: yellow;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  #profile-pic-area,
  .social-banner {
    display: none;
  }
}

/* Default button styles */
.btn-notes {
  background-color: black;
  color: white;
  border: none;
  box-shadow: 0 10px 28px rgba(255, 255, 0, 0.08);
}

.btn-notes:hover {
  background-color: white;
  color: black;
  border-color: black;
}

.btn-blogs {
  background-color: yellow;
  color: black;
  border: none;
  box-shadow: 0 10px 28px rgba(255, 255, 0, 0.08);
}

.btn-blogs:hover {
  background-color: black;
  color: yellow;
  border-color: black;
}

/* Mobile overrides */
@media (max-width: 768px) {
  .home-hero {
    text-align: center;
  }

  /* Make buttons icons-only */
  .buttons-wrapper .btn-text {
    display: none;
    /* hide text on small screens */
  }

  .buttons-wrapper {
    flex-direction: row !important;
    /* force row layout */
    justify-content: center;
  }

  .buttons-wrapper a {
    flex: 1;
    /* both buttons take equal width */
    text-align: center;
    /* center icons */
  }

  /* Scroll arrow right below buttons */
  /* Keep the chevron visible on small screens */
  @media (max-width: 768px) {
    .scroll-down {
      position: fixed;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      margin-top: 0;
      z-index: 1000;
    }
  }
}

.alert-success {
  color: green;
  background-color: #d4edda;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  transition: opacity 0.5s ease;
}

.alert-error {
  color: red;
  background-color: #f8d7da;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  transition: opacity 0.5s ease;
}

#tickSuccess {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  /* Adjust based on modal size */
}

.tick-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid lightgreen;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: tick-animation 0.5s ease-in-out forwards;
}

.tick-mark:after {
  content: "✔";
  font-size: 24px;
  color: lightgreen;
}

@keyframes blinking {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Subtle glowing book/journals */
.book-glow {
  animation: blink 2s infinite;
}

/* Existing bell blink */
.bell-blink {
  animation: blink 2s infinite;
}

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

  25%,
  75% {
    opacity: 0;
  }
}

.btn-outline-light:hover {
  background-color: yellow;
  color: black;
  /* optional: makes text readable */
  border-color: yellow;
  /* optional: matches border */
}
