/* 
------------------
Cube Styles
------------------
*/
body {
  /* Set the size of the sides of the cube here */
  --W: 400px;
  --H: 600px;
  /* Rotation variables */
  --rotX: 0deg;
  --rotY: 0deg;
  --rotZ: 0deg;

  /* Set perspective */
}
.skill-cube {
  position: relative;
  perspective: 1000px;
  width: var(--W);
  height: var(--H);
  margin: 0px auto 0 auto;
  transform: scale(0.78);
}

.cube {
  transform-style: preserve-3d;
  /* transform-origin: center center; */
  width: var(--W);
  height: var(--H);
  margin: 0px auto 0 auto;
  transition: transform 0.5s ease;
}

.face {
  position: absolute;
  width: var(--W);
  height: var(--H);
  border: 1px solid #00bfe7;
  padding: 35px;
  border-radius: 20px;
  backface-visibility: hidden;
}

.face.front {
  transform: translateZ(calc(var(--W) / 2));
}
.face.back {
  transform: rotateY(180deg) translateZ(calc(var(--W) / 2));
}
.face.left {
  transform: rotateY(-90deg) translateZ(calc(var(--W) / 2));
}
.face.right {
  transform: rotateY(90deg) translateZ(calc(var(--W) / 2));
}
.face.top {
  transform: rotateX(90deg) translateZ(calc(var(--W) / 2));
}
.face.bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--W) / 2));
}

/* Colors and text position */

.face h4 {
  color: #fff;
  font-size: 20px;
}

.front {
  background-color: #100028;
}
.back {
  background-color: #100028;
}
.left {
  background-color: #100028;
}
.right {
  background-color: #100028;
}
.top {
  background-color: #100028;
}
.bottom {
  background-color: #100028;
}

/* Rotate a bit to show something 3D */
.cube {
  transform: rotateX(var(--rotX)) rotateY(var(--rotY)) rotateZ(var(--rotZ));
}

.skill-cube-arrow-right {
  animation: colorChange 1s infinite alternate;
  cursor: pointer;
}

@keyframes colorChange {
  100% {
    color: #00bfe7;
  }
}

.language {
  margin-bottom: 20px;
}

.language-title {
  display: flex;
  align-items: center;
}

.language-title h6 {
  color: white;
}

.language p {
  font-size: 12px;
  margin-bottom: -10px;
  margin-left: 7px;
}

.language-title img {
  width: 25px;
  height: 25px;
}

.progress-container {
  width: 100%;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  height: 7px;
  margin: 10px 0;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 2s ease;
}

#progress-bar-html {
  background: linear-gradient(45deg, #ff4b00, #ff7816);
}

#progress-bar-css {
  background: linear-gradient(45deg, #2196f3, #006bc0);
}

#progress-bar-sass {
  background: linear-gradient(45deg, #cc75a1, #cf649a);
}

#progress-bar-js {
  background: linear-gradient(45deg, #ffda3e, #d6ba32);
}

#progress-bar-react {
  background: linear-gradient(16deg, #074b58, #0da4be);
}

#progress-bar-vue {
  background: linear-gradient(16deg, #41b883, #34495e);
}

#progress-bar-php {
  background: linear-gradient(45deg, #839aea, #364580);
}

#progress-bar-laravel {
  background: linear-gradient(45deg, #e46822, #b02d25);
}

#progress-bar-ci {
  background: linear-gradient(45deg, #fa1111, #ee4323);
}

#progress-bar-wp {
  background: linear-gradient(45deg, #006699, #00769d);
}

#progress-bar-java {
  background: linear-gradient(45deg, #db380e, #73a1fb);
}

#progress-bar-csharp {
  background: linear-gradient(45deg, #68217a, #178600);
}

#progress-bar-sql {
  background: linear-gradient(45deg, #336791, #f29111);
}

#progress-bar-as {
  background: linear-gradient(45deg, #4caf50, #8bc34a);
}

#progress-bar-kotlin {
  background: linear-gradient(45deg, #0095d5, #f85b1d);
}

#progress-bar-firebase {
  background: linear-gradient(45deg, #ffca28, #ffab40);
}

#progress-bar-py {
  background: linear-gradient(45deg, #306998, #ffd43b);
}

#progress-bar-cpp {
  background: linear-gradient(45deg, #00599c, #a5c8e1);
}

.language-extra h5 {
  color: #fff;
}

.language-extra-content img {
  width: 25px;
  height: 25px;
}

.language-extra-content {
  display: flex;
  align-items: center;
}

.language-extra-content h6 {
  color: #fff;
  margin-left: 5px;
}

.timeline {
  position: relative;
  padding: 20px 0;
  margin-top: 0px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #c4c4c4;
  left: 10%;
  margin-left: -1px;
}

.timeline::after {
  content: "";
  position: absolute;
  top: -10px; /* Adjust this value to position the circle */
  left: 10%;
  width: 20px; /* Size of the circle */
  height: 20px;
  background-color: #00bfe7; /* Yellow color for the circle */
  border-radius: 50%; /* Makes it a circle */
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-bottom-circle {
  content: "";
  position: absolute;
  bottom: -10px; /* Adjust to place it at the bottom */
  left: 10%;
  width: 20px; /* Size of the bottom circle */
  height: 20px;
  background-color: #00bfe7; /* Yellow color for the circle */
  border-radius: 50%; /* Makes it a circle */
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin: 20px 0px 50px 0;
  padding-left: 100px;
  width: 100%;
}

.timeline-item::before {
  width: 40px;
  height: 40px;
  background: #00bfe7;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
}

.timeline-content {
  background-color: #100028;
  border: 2px solid #00bfe7;
  padding: 20px;
  position: relative;
  transition: border-color 1s ease;
}

.timeline-content::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 20px;
  width: 0;
  z-index: 1;
  left: -15px;
  border: medium solid #00bfe7;
  border-width: 15px 15px 15px 0;
  border-color: transparent #00bfe7 transparent transparent;
}

.timeline-content:hover {
  border-color: #00bfe7;
}

.timeline-icon {
  position: absolute;
  top: 15px;
  left: 6.5%;
  width: 40px;
  height: 40px;
  background: #00bfe7;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
}

.timeline-icon img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.timeline-content h4 {
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
}

.timeline-content h4 a {
  text-decoration: none;
  color: #ffffff;
  transition: all 0.5s ease;
}

.timeline-content h5 a {
  text-decoration: none;
  color: #00bfe7;
  transition: all 0.5s ease;
}

.timeline-content h4 a:hover {
  color: #00bfe7;
}

.timeline-content h5 {
  color: #00bfe7;
  font-size: 16px;
  margin-top: 5px;
  margin-bottom: 25px;
}

.timeline-content h6 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}

.timeline-content p {
  margin: 0;
}

.accordion-icon {
  transition: transform 0.3s ease; /* Smooth animation */
}

.accordion-icon.rotate-up {
  transform: rotate(180deg);
}

.accordion-icon.rotate-down {
  transform: rotate(0deg);
}

.work__item__hover a {
  color: white;
}

.work__item__hover a:hover {
  color: #00bfe7;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .timeline-icon {
    left: 6%;
  }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  body {
    --W: 360px;
  }
  .timeline-icon {
    left: 4.5%;
  }
  .skill-cube {
    transform: scale(0.82);
  }
}
@media only screen and (max-width: 767px) {
  body {
    --W: 500px;
  }
  .skill-cube {
    transform: scale(0.75);
  }
}
@media only screen and (max-width: 575px) {
  body {
    --W: calc(105vw - 0px);
  }

  .skill-cube {
    transform: scale(0.59);
    margin-left: -30px;
    margin-top: -100px;
  }

  .face {
    height: 650px;
  }

  .cube {
    height: 650px;
  }

  .skill-cube {
    height: 650px;
  }

  .timeline-icon {
    left: 5.5%;
  }
}

/* Cube external navigation (outside 3D context) */
/* Overlay button sits inside .skill-cube but outside .cube so pointer
   events always fire regardless of which face is rotated forward */
.cube-btn {
  position: absolute;
  top: -30px;
  right: 0px;
  bottom: auto;
  left: auto;
  z-index: 12;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  animation: colorChange 1s infinite alternate;
  font-size: 1.33em; /* same as fa-lg */
  color: #00bfe7;
  box-shadow: none;
  transform: none;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.cube-btn:hover {
  transform: scale(1.08);
  background: rgba(0, 191, 231, 0.1);
}

.cube-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 191, 231, 0.18);
}

.cube-btn i {
  pointer-events: none;
}

.skill-cube .face .skill-cube-arrow-right {
  visibility: hidden;
  pointer-events: none;
}

.skill-cube {
  margin-bottom: 0;
}

.cube-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 100px;
  position: relative;
  z-index: 20;
}

.cube-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.3px;
  text-align: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cube-hint__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 191, 231, 0.35);
  color: #00bfe7;
  animation: cubeHintPulse 1.6s ease-in-out infinite;
}

.skill-cube.is-interacted .cube-hint {
  opacity: 0.45;
}

.skill-cube.is-interacted .cube-hint__icon {
  animation: none;
}

@keyframes cubeHintPulse {
  0%,
  100% {
    transform: translateX(0);
    box-shadow: 0 0 0 0 rgba(0, 191, 231, 0.16);
  }
  50% {
    transform: translateX(4px);
    box-shadow: 0 0 0 8px rgba(0, 191, 231, 0);
  }
}

.cube-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 191, 231, 0.45);
  background: rgba(0, 191, 231, 0.12);
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.cube-dot:hover,
.cube-dot:focus-visible {
  outline: none;
  transform: scale(1.15);
  border-color: #00bfe7;
}

.cube-dot.is-active {
  background: #00bfe7;
  border-color: #00bfe7;
  box-shadow: 0 0 0 4px rgba(0, 191, 231, 0.12);
}

@media only screen and (max-width: 991px) {
  .cube-btn {
    top: -25px;
    right: 0px;
    bottom: auto;
    left: auto;
    transform: none;
  }

  .cube-btn:hover {
    transform: scale(1.08);
  }
}

@media only screen and (max-width: 768px) {
  .cube-btn {
    top: -50px;
    right: -40px;
    bottom: 0;
    transform: none;
  }
}


@media only screen and (max-width: 575px) {
  .cube-btn {
    top: -35px;
    right: -10px;
    bottom: 0;
    transform: none;
  }

  .cube-pagination {
    margin-top: 120px;
    gap: 8px;
  }

  .cube-hint {
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
  }

  .cube-hint__icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .cube-dot {
    width: 10px;
    height: 10px;
  }
}

/* ==================================================================
   Modern enhancements (smooth-scroll, accordion, cube, projects page,
   work cards, responsive polish). Appended without touching the
   original styles above so existing layout remains intact.
================================================================== */

html {
  scroll-behavior: smooth;
}

/* ----------------- Header / Nav polish ----------------- */
.header__nav__menu ul li a {
  transition: color 0.25s ease;
}
.header__nav__menu ul li.active a,
.header__nav__menu ul li:hover a {
  color: #00bfe7;
}

/* ----------------- Buttons ----------------- */
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid rgba(0, 191, 231, 0.6);
  color: #00bfe7;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  transition: all 0.25s ease;
  background: transparent;
  text-decoration: none;
}
.ghost-btn:hover {
  background: rgba(0, 191, 231, 0.1);
  color: #fff;
  border-color: #00bfe7;
  text-decoration: none;
}
.ghost-btn i {
  font-size: 16px;
}

/* ----------------- Modern accordion cards ----------------- */
.accordion__card {
  background: linear-gradient(
    135deg,
    rgba(16, 0, 40, 0.85),
    rgba(16, 0, 40, 0.55)
  );
  border: 1px solid rgba(0, 191, 231, 0.18);
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 16px;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.accordion__card:hover {
  border-color: rgba(0, 191, 231, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -18px rgba(0, 191, 231, 0.45);
}
.accordion__card .card-header {
  background: transparent !important;
  border: 0 !important;
  padding: 18px 22px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.accordion__card .card-header:hover {
  background: rgba(0, 191, 231, 0.06) !important;
}
.accordion__card .card-header h4 {
  font-size: 16px;
  margin: 0;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.accordion__card .card-body {
  padding: 6px 22px 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}
.accordion__card .card-body p,
.accordion__card .card-body li {
  color: rgba(255, 255, 255, 0.78);
}
.accordion__card .card-body ul {
  padding-left: 18px !important;
}
.accordion-icon {
  color: #00bfe7 !important;
  font-size: 18px !important;
}

/* ----------------- Skill cube – overflow fix for taller faces ----------------- */
.face {
  overflow-y: auto;
  scrollbar-width: none; /* Firefox: hide scrollbar */
  pointer-events: none; /* hidden faces must not intercept clicks */
}
.face::-webkit-scrollbar {
  display: none; /* Chrome/Safari: hide scrollbar */
}
.face.active-face {
  pointer-events: auto; /* only the forward-facing face is interactive */
}

/* ----------------- Section filter buttons (My Specialty) ----------------- */
.section__filter li {
  border-radius: 999px !important;
  padding: 8px 18px !important;
  border: 1px solid rgba(0, 191, 231, 0.35) !important;
  margin-right: 8px;
  transition: all 0.25s ease;
}
.section__filter li.active,
.section__filter li:hover {
  background: #00bfe7 !important;
  color: #fff !important;
  border-color: #00bfe7 !important;
}

/* ----------------- Work cards (homepage) hover polish ----------------- */
.work__item {
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}
.work__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -22px rgba(0, 191, 231, 0.45);
}
.work__item__hover {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.92)
  ) !important;
}
.work__item__hover h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

/* ----------------- Services cards polish ----------------- */
.services__item {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 8px;
}
.services__item:hover {
  transform: translateY(-4px);
}

/* ==================================================================
   Projects page (projects.html)
================================================================== */
.projects-hero {
  padding: 140px 0 70px;
  background:
    radial-gradient(ellipse at top, rgba(0, 191, 231, 0.12), transparent 60%),
    #0a0020;
  position: relative;
  overflow: hidden;
}
.projects-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, #0a0020 100%);
  pointer-events: none;
}
.projects-hero__eyebrow {
  display: inline-block;
  color: #00bfe7;
  font-family: "Play", sans-serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}
.projects-hero__title {
  color: #fff;
  font-family: "Play", sans-serif;
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.1;
}
.projects-hero__lead {
  color: rgba(255, 255, 255, 0.72);
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 16px;
  line-height: 1.7;
}
.projects-hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.projects-section {
  padding: 60px 0 100px;
  background: #0a0020;
}

.projects-filter {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0;
  margin: 0 0 50px;
}
.projects-filter li {
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0, 191, 231, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-family: "Play", sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.25s ease;
}
.projects-filter li:hover {
  border-color: #00bfe7;
  color: #00bfe7;
}
.projects-filter li.active {
  background: #00bfe7;
  border-color: #00bfe7;
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: linear-gradient(
    160deg,
    rgba(16, 0, 40, 0.9),
    rgba(28, 8, 60, 0.9)
  );
  border: 1px solid rgba(0, 191, 231, 0.18);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.project-card.is-hidden {
  display: none;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 191, 231, 0.6);
  box-shadow: 0 25px 50px -25px rgba(0, 191, 231, 0.45);
}
.project-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #100028;
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card__media:hover img {
  transform: scale(1.06);
}
.project-card__open {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 191, 231, 0.95);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.project-card__media:hover .project-card__open {
  opacity: 1;
  transform: translateY(0);
}
.project-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.project-card__title {
  margin: 0;
  font-family: "Play", sans-serif;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}
.project-card__title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.25s ease;
}
.project-card__title a:hover {
  color: #00bfe7;
}
.project-card__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.65;
}
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.project-card__tags span {
  font-size: 11px;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 191, 231, 0.12);
  color: #00bfe7;
  border: 1px solid rgba(0, 191, 231, 0.25);
  text-transform: uppercase;
  font-weight: 600;
}

.projects-cta {
  margin-top: 70px;
  text-align: center;
  padding: 50px 30px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(0, 191, 231, 0.12),
    rgba(16, 0, 40, 0.6)
  );
  border: 1px solid rgba(0, 191, 231, 0.25);
}
.projects-cta h3 {
  color: #fff;
  font-family: "Play", sans-serif;
  font-size: 28px;
  margin-bottom: 12px;
}
.projects-cta p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* ----------------- Responsive tweaks ----------------- */
@media (max-width: 991px) {
  .projects-hero__title {
    font-size: 42px;
  }
  .section__filter li {
    margin-top: 10px;
  }
}
@media (max-width: 767px) {
  .projects-hero {
    padding: 110px 0 50px;
  }
  .projects-hero__title {
    font-size: 34px;
  }
  .projects-hero__lead {
    font-size: 15px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .accordion__card .card-header h4 {
    font-size: 14px;
  }
  .section__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }
  .section__filter li {
    margin-right: 0 !important;
    font-size: 12px;
    padding: 6px 14px !important;
  }
}
@media (max-width: 480px) {
  .projects-hero__title {
    font-size: 28px;
  }
  .projects-cta {
    padding: 36px 20px;
  }
  .projects-cta h3 {
    font-size: 22px;
  }
}
