.animated-container {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.animated-container .bg {
  animation: slide 3s ease-in-out infinite alternate;
  background-image: linear-gradient(-60deg, #6f1d1b 50%, #111d4a 50%);
  bottom: 0;
  left: -50%;
  opacity: 0.5;
  position: absolute;
  right: -50%;
  top: 0;
  z-index: 0;
  pointer-events: none;
}

.animated-container .bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 4s;
}

.animated-container .bg3 {
  animation-duration: 5s;
}

@keyframes slide {
  0% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(25%);
  }
}

header.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.animated-container .navbar {
  position: relative;
  z-index: 1;
}
.animated-container {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

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

@font-face {
  font-family: "Alfphabet";
  src: url("../fonts/alfphabet/osp.foundry.alfphabet-master/Alfphabet-IV.ttf")
    format("truetype");
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: "Blogger";
  src: url("../fonts/blogger-sans-bold-otf/Blogger Sans-Bold.otf")
    format("truetype");
  font-weight: normal;
  font-display: swap;
}

.Blogger-font {
  font-family: "Blogger", sans-serif;
  letter-spacing: 1px;
}
.Alfphabet-font {
  font-family: "Alfphabet", sans-serif;
  -webkit-text-stroke: 0.6px currentColor;
  letter-spacing: 1px;
}

.navbar .nav-link:not(.resume-btn) {
  position: relative;
  transition: color 0.3s ease;
}

.navbar .nav-link:not(.resume-btn)::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 5px;
  background-color: #dc3545;
  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.navbar .nav-link:not(.active):not(.resume-btn):not(.get-btn):hover::after {
  width: 80%;
  left: 10%;
}
@media (max-width: 991.98px) {
  .navbar .nav-link:not(.active):not(.resume-btn):not(.get-btn):hover::after {
    width: 80%;
    left: 0%;
  }
}

.btn {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px #38726c;
}

.get-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px red;
}
.navbar-toggler:focus,
.navbar-toggler:active {
  box-shadow: 0 0 15px red;
}

.social-sidebar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.social-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  font-size: 20px;
  text-decoration: none;
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}

.social-sidebar a:hover {
  width: 60px;
}

.email {
  background-color: #e4405f;
}
.linkedin {
  background-color: #0a66c2;
}
.github {
  background-color: #24292e;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.modern-skill-card {
  background: linear-gradient(145deg, #1b1766 0%, #171556 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 2rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  overflow: hidden;
}

.modern-skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.modern-skill-card h5 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.modern-skill-card p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}

.skill-pill img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  object-fit: contain;
}

.card-action-btn {
  margin-top: auto;
  background-color: #ffffff;
  color: #0c0a3e;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  width: 100%;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.card-action-btn:hover {
  background-color: #e2e6ea;
  color: #0c0a3e;
  transform: scale(1.02);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(100px, auto);
  gap: 1.5rem;
}

.jci-info {
  display: inline-flex;
  gap: 0.5rem;
  text-align: center;
  align-items: center;
}
.experience-grid {
  background: linear-gradient(135deg, #cfc5ba, #c5baaf);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 12px 30px rgba(12, 10, 62, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.experience-grid:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(12, 10, 62, 0.15);
}
.experience-grid h5 {
  color: #0c0a3e;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.experience-grid h5::before {
  content: "";
  width: 35px;
  height: 3px;
  background: #8b2635;
  border-radius: 10px;
}
.experience-grid ul {
  list-style: none;
  padding-left: 0;
}

.experience-grid li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 18px;
  line-height: 1.75;
  color: #292653;
  font-size: 1.05rem;
}

.experience-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  background: #8b2635;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(139, 38, 53, 0.12);
}

.experience-grid li:last-child {
  margin-bottom: 0;
}
.experience-section {
  background: linear-gradient(125deg, #938b80 0%, #a69b8e 50%, #938b80 100%);
}

.timeline-col {
  padding: 3rem 0rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
}
.timeline-row {
  display: grid;
  width: 100%;
  max-width: 100%;
  position: relative;
  gap: 0.5rem;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 3rem;
  border-top: 10px solid rgba(252, 46, 0, 0.2);
}

.content-box {
  display: grid;
  min-width: 0;
  position: relative;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  border: 3px solid rgba(249, 8, 8, 0.2);
  border-top: 25px solid rgba(223, 14, 14, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
.education-logo {
  display: flex;
  max-width: 300px;
  height: 200px;
  align-items: center;
  justify-content: center;
}
.education-logo img {
  padding: 0.5rem;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background-color: rgb(255, 255, 255);
  border-radius: 12px;
}
.content-box {
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 0.75rem;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.content-box:hover {
  transform: translateY(-6px);
  border-color: #a27035;
  box-shadow:
    5px 14px 36px rgba(0, 0, 0, 0.35),
    5px 20px rgba(112, 16, 7, 0.12);
}
.content-box::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #a26f35;
  border: 2px solid #0c0a3e;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px #a27035;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.content-box::after {
  content: attr(data-date);
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
  background: #0b0a3a;
  border: 2px solid #0b0a3a;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.content-box:hover::before {
  transform: translateX(-50%) scale(1.25);
  box-shadow: 0 0 18px rgb(255, 0, 0);
}

.content-box > p {
  font-family: "Blogger", sans-serif;
  opacity: 0.7;
  color: #ffffff;
}
.content-box > h4 {
  font-family: "Alfphabet", sans-serif;
  color: #a27035;
  padding: 0.25rem 0.5rem;
  opacity: 0.9;
  border-radius: 12px;
  background: #0c0a3e;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.742);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.glass-header-box {
  display: inline-block;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.719);
  backdrop-filter: blur(10px);
  border-left: 8px solid red;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#myCarousel .carousel-item {
  transition: transform 1s ease-in-out;
}

.slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-height: 350px;
  padding: 1rem 3rem;
}

@media (min-width: 768px) {
  .slide-content {
    flex-direction: row;
  }
}

.carousel-caption {
  position: static;
  flex-direction: column;
  color: inherit;
  padding: 0;
}

#myCarousel .carousel-item img {
  min-height: 250px;
  min-width: 250px;
  max-height: 400px;
  max-width: 400px;
  width: 100%;
  object-fit: contain;
}

#myCarousel {
  padding: 0 50px;
}

#myCarousel .carousel-control-prev,
#myCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: #7776bc;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}
.carousel-text {
  font-family: "Blogger", sans-serif;
  font-size: 1.1rem;
  padding-left: 5px;
}
#myCarousel .carousel-control-prev {
  left: 0;
}

#myCarousel .carousel-control-next {
  right: 0;
}
.carousel-heading {
  font-family: "Alfphabet", sans-serif;
  font-size: 1.5rem;
  padding: 0.25rem 0.5rem;
  opacity: 0.9;
}

.milestone-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.75rem;
  width: 100%;
  box-sizing: border-box;
  border-radius: 20px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 10px 30px rgba(12, 10, 62, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.milestone-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 130, 44, 0.65);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  box-shadow:
    0 16px 36px rgba(12, 10, 62, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.milestone-icon {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(12, 10, 62, 0.15);
  transition: transform 0.3s ease;
}

.milestone-card:hover .milestone-icon {
  transform: scale(1.04);
}

.milestone-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  font-family: "Blogger", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.milestone-card > .milestone-item:last-child {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.milestone-heading,
.milestone-text {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.milestone-heading {
  font-family: "Alfphabet", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  padding: 0;
}

.milestone-text {
  font-family: "Blogger", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #f3b574;
}
.footer-elegant {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 0.25rem 1.75rem;
  background: #faf9f6;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.footer-elegant .bg {
  animation: elegantDrift 14s ease-in-out infinite alternate;
  background-image: linear-gradient(
    120deg,
    rgba(235, 232, 224, 0.55) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(226, 222, 213, 0.55) 100%
  );
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50%;
  right: -50%;
  z-index: 1;
  pointer-events: none;
}

.footer-elegant .bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 18s;
  opacity: 0.7;
}

.footer-elegant .bg3 {
  animation-duration: 22s;
  opacity: 0.5;
}

.footer-elegant footer {
  position: relative;
  z-index: 2;
}

.footer-elegant .Blogger-font {
  font-size: 0.92rem;
  font-style: italic;
  color: #5c5a55 !important;
  letter-spacing: 0.3px;
}

.footer-elegant .Alfphabet-font {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c2b29 !important;
  letter-spacing: 2px;
}

.elegant-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(92, 90, 85, 0.3) 20%,
    rgba(92, 90, 85, 0.3) 80%,
    transparent 100%
  );
}

@keyframes elegantDrift {
  0% {
    transform: translateX(-12%);
  }
  100% {
    transform: translateX(12%);
  }
}
@media (max-width: 576px) {
  .timeline-col {
    display: block;
    width: 100%;
    padding: 2rem 0.75rem;
    overflow: hidden;
    box-sizing: border-box;
  }

  .timeline-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 2rem;
    padding: 0 4.5rem 0 0;
    border-top: none;
    border-right: 3px solid rgba(209, 54, 19, 0.2);
    box-sizing: border-box;
  }

  .content-box {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.75rem;
    position: relative;
  }

  .education-logo {
    width: 100%;
    max-width: 100%;
    height: 120px;
  }

  .education-logo img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
  }

  .content-box h4 {
    font-size: 1rem;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .content-box p {
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .content-box::before {
    width: 20px;
    height: 10px;
    top: 50%;
    left: auto;
    right: -6rem;
    transform: translateY(-50%);
  }

  .content-box::after {
    content: attr(data-date);
    width: 3.5rem;
    height: auto;
    top: 51%;
    left: auto;
    right: -4.25rem;
    transform: translateY(-50%);
    font-size: 1rem;
    white-space: nowrap;
    letter-spacing: 1px;
    text-align: center;
  }

  .content-box:hover::after {
    opacity: 1;
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
