/* PORTFOLIO PAGE */

body {
    background-image: url('star-background.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}


.portfolio-page {
    min-height: 100vh;
    padding: 120px 6%;
    color: #fff;
    overflow: hidden;
  }
  
  /* HEADER */
  
  .portfolio-header {
    text-align: center;
    margin-bottom: 55px;
  }
  
  .portfolio-header .eyebrow {
    color: #9b7cff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
  }
  
  .portfolio-header h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #a58cff;
    margin: 5px 0;
  
    font-family: "Stack Sans Notch", sans-serif;
  }
  
  .portfolio-header p {
    color: #d7d7e8;
    font-size: 1rem;
  }
  
  /* WRAPPER */
  
  .portfolio-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  /* PROJECT CARD */
  
  .project-card {
    display: grid;
  
    grid-template-columns: 1.2fr 0.8fr;
  
    gap: 0;
  
    align-items: stretch;
  
    overflow: hidden;
  
    min-height: 650px;
  
    border-radius: 28px;
  
    background: rgba(8, 12, 32, 0.82);
  
    border: 1px solid rgba(155, 124, 255, 0.28);
  
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  
    backdrop-filter: blur(10px);
  }
  
  /* IMAGE */
  
  .project-image {
    height: 100%;
    overflow: hidden;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
  
    object-fit: cover;
  
    display: block;
  
    border-radius: 0;
  
    border-right: 1px solid rgba(255,255,255,0.08);
  
    transition: transform 0.6s ease;
  }
  
  .project-card:hover .project-image img {
    transform: scale(1.03);
  }
  
  /* PROJECT INFO */
  
  .project-info {
    padding: 60px;
  
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .project-number {
    display: inline-block;
  
    color: #bcaaff;
  
    font-size: 0.78rem;
  
    text-transform: uppercase;
  
    letter-spacing: 1px;
  
    margin-bottom: 15px;
  }
  
  .project-info h2 {
    font-size: clamp(2rem, 3vw, 4rem);
  
    text-transform: uppercase;
  
    line-height: 1.05;
  
    letter-spacing: 2px;
  
    margin-bottom: 20px;
  }
  
  .project-info > p {
    color: #d9d9e8;
  
    line-height: 1.8;
  
    font-size: 1rem;
  
    max-width: 650px;
  }
  
  /* TAGS */
  
  .tags {
    display: flex;
    flex-wrap: wrap;
  
    gap: 10px;
  
    margin: 30px 0;
  }
  
  .tags span {
    border: 1px solid #9b7cff;
  
    color: #cbbdff;
  
    padding: 7px 16px;
  
    border-radius: 999px;
  
    font-size: 0.75rem;
  
    background: rgba(155, 124, 255, 0.08);
  }
  
  /* FEATURES */
  
  .features {
    display: grid;
  
    grid-template-columns: repeat(2, 1fr);
  
    gap: 28px;
  
    padding-top: 30px;
  
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  
  .features div {
    display: grid;
  
    grid-template-columns: 48px 1fr;
  
    column-gap: 14px;
  }
  
  .features i {
    grid-row: span 2;
  
    width: 48px;
    height: 48px;
  
    border: 1px solid rgba(155, 124, 255, 0.6);
  
    border-radius: 50%;
  
    display: grid;
    place-items: center;
  
    color: #cbbdff;
  
    font-size: 1rem;
  }
  
  .features h4 {
    font-size: 1rem;
  
    margin-bottom: 5px;
  }
  
  .features p {
    color: #c9c9d6;
  
    font-size: 0.9rem;
  
    line-height: 1.6;
  }
  
  /* BUTTONS */
  
  .project-buttons {
    display: flex;
  
    gap: 20px;
  
    align-items: center;
  
    margin-top: 40px;
  
    flex-wrap: wrap;
  }
  
  .btn-main {
    display: inline-flex;
  
    align-items: center;
  
    gap: 10px;
  
    background: linear-gradient(135deg, #7d5cff, #b98cff);
  
    color: white;
  
    text-decoration: none;
  
    padding: 16px 28px;
  
    border-radius: 999px;
  
    font-weight: 700;
  
    box-shadow: 0 12px 30px rgba(125, 92, 255, 0.35);
  
    transition: 0.3s ease;
  }
  
  .btn-main:hover {
    transform: translateY(-4px);
  
    box-shadow: 0 18px 38px rgba(125, 92, 255, 0.5);
  }
  
  .btn-secondary {
    color: #bcaaff;
  
    text-decoration: none;
  
    font-weight: 600;
  
    transition: 0.3s ease;
  }
  
  .btn-secondary:hover {
    color: white;
  
    letter-spacing: 1px;
  }

  @media (max-width: 1200px) {
  
    .project-card {
      grid-template-columns: 1fr;
  
      min-height: auto;
    }
  
    .project-image img {
      height: auto;
    }
  
    .project-info {
      padding: 50px 40px;
    }
  
    .features {
      grid-template-columns: 1fr;
    }
  }
  
  /* TABLET */
  
  @media (max-width: 992px) {
  
    .portfolio-page {
      padding: 90px 5%;
    }
  
    .project-card {
      grid-template-columns: 1fr;
  
      min-height: auto;
    }
  
    .project-image img {
      height: auto;
    }
  
    .project-info {
      padding: 40px 30px;
    }
  
    .features {
      grid-template-columns: 1fr;
    }
  }
  
  /* MOBILE */
  
  @media (max-width: 576px) {
  
    .portfolio-page {
      padding: 70px 4%;
    }
  
    .project-card {
      border-radius: 22px;
    }
  
    .portfolio-header {
      margin-bottom: 35px;
    }
  
    .portfolio-header h1 {
      font-size: 3rem;
    }
  
    .project-info {
      padding: 30px 20px;
    }
  
    .project-info h2 {
      font-size: 2rem;
    }
  
    .project-buttons {
      flex-direction: column;
  
      align-items: flex-start;
    }
  }

 /* SIDE PROJECTS */

.side-projects-section {
  padding: 140px 6%;

  background:
    linear-gradient(rgba(5, 7, 20, 0.88),
    rgba(5, 7, 20, 0.92)),
    url("star-background.png");

  background-size: cover;
  background-position: center;
}

.side-projects-container {
  max-width: 1500px;
  margin: auto;
}

.side-eyebrow {
  color: #9b7cff;

  text-transform: uppercase;

  letter-spacing: 3px;

  margin-bottom: 10px;
}

.side-title {
  font-size: clamp(3rem, 8vw, 6rem);

  line-height: 0.95;

  margin-bottom: 20px;

  background:
    linear-gradient(to right,
    #ffffff,
    #9b7cff);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.side-description {
  color: #cfcfe7;

  max-width: 700px;

  line-height: 1.8;

  margin-bottom: 40px;
}

/* FILTERS */

.project-filters {
  display: flex;

  gap: 15px;

  flex-wrap: wrap;

  margin-bottom: 60px;
}

.project-filters button {
  padding: 12px 22px;

  border-radius: 999px;

  border:
    1px solid rgba(155,124,255,0.4);

  background: transparent;

  color: #cfcfe7;

  cursor: pointer;

  transition: 0.3s ease;
}

.project-filters button:hover,
.project-filters button.active {

  background:
    linear-gradient(135deg,
    #7d5cff,
    #b98cff);

  color: white;

  box-shadow:
    0 10px 25px rgba(125,92,255,0.4);
}

/* GRID */

.projects-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit,
    minmax(350px, 1fr));

  gap: 35px;
}

/* CARD */

.side-card {
  background:
    rgba(10, 12, 35, 0.88);

  border:
    1px solid rgba(155,124,255,0.2);

  border-radius: 28px;

  overflow: hidden;

  backdrop-filter: blur(12px);

  transition: 0.4s ease;

  box-shadow:
    0 15px 45px rgba(0,0,0,0.35);
}

.side-card:hover {
  transform: translateY(-10px);

  box-shadow:
    0 25px 60px rgba(125,92,255,0.28);

  border-color:
    rgba(155,124,255,0.5);
}

/* IMAGE */

.card-image {
  height: 240px;

  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transition: 0.5s ease;
}

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

/* CONTENT */

.card-content {
  padding: 30px;
}

.card-content h3 {
  font-size: 2rem;

  margin-bottom: 15px;
}

.card-content p {
  color: #cfcfe7;

  line-height: 1.7;

  margin-bottom: 25px;
}

/* TAGS */

.card-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 30px;
}

.card-tags span {
  border:
    1px solid rgba(155,124,255,0.45);

  color: #cbbdff;

  padding: 7px 14px;

  border-radius: 999px;

  font-size: 0.75rem;
}

/* BUTTONS */

.card-buttons {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 15px;
}

.live-btn {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  background:
    linear-gradient(135deg,
    #7d5cff,
    #b98cff);

  color: white;

  text-decoration: none;

  padding: 14px 22px;

  border-radius: 999px;

  font-weight: 600;

  transition: 0.3s ease;
}

.live-btn:hover {
  transform: translateY(-4px);

  box-shadow:
    0 12px 30px rgba(125,92,255,0.45);
}

.code-btn {
  color: #d4ccff;

  text-decoration: none;

  display: inline-flex;

  align-items: center;

  gap: 10px;

  transition: 0.3s ease;
}

.code-btn:hover {
  color: white;
}

/* HIDE FILTER */

.hide {
  display: none !important;
}

/* MOBILE */

@media (max-width: 768px) {

  .side-projects-section {
    padding: 100px 5%;
  }

  .side-title {
    font-size: 3rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .card-buttons {
    flex-direction: column;

    align-items: flex-start;
  }
}


/* FOOTER */

.space-footer {
  position: relative;

  overflow: hidden;

  padding: 180px 6% 80px;

  background:
    linear-gradient(rgba(4, 6, 18, 0.92),
    rgba(4, 6, 18, 0.98)),
    url("star-background.png");

  background-size: cover;
  background-position: center;

  text-align: center;
}

/* CONTENT */

.footer-content {
  position: relative;
  z-index: 2;

  max-width: 900px;
  margin: auto;
}

.footer-eyebrow {
  color: #9b7cff;

  letter-spacing: 4px;

  text-transform: uppercase;

  margin-bottom: 15px;

  font-size: 0.85rem;
}

.space-footer h2 {
  font-size: clamp(3rem, 8vw, 6rem);

  line-height: 0.95;

  margin-bottom: 30px;

  background:
    linear-gradient(to right,
    #ffffff,
    #9b7cff);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-text {
  color: #d4d4e7;

  line-height: 1.9;

  max-width: 700px;

  margin: auto auto 45px;
}

/* BUTTONS */

.footer-buttons {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 20px;

  flex-wrap: wrap;

  margin-bottom: 50px;
}

.footer-btn {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  background:
    linear-gradient(135deg,
    #7d5cff,
    #b98cff);

  color: white;

  text-decoration: none;

  padding: 16px 28px;

  border-radius: 999px;

  font-weight: 700;

  transition: 0.3s ease;

  box-shadow:
    0 12px 30px rgba(125,92,255,0.35);
}

.footer-btn:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 40px rgba(125,92,255,0.45);
}

.footer-link {
  color: #d6ccff;

  text-decoration: none;

  font-weight: 600;

  transition: 0.3s ease;
}

.footer-link:hover {
  color: white;
}

/* SOCIALS */

.footer-socials {
  display: flex;

  justify-content: center;

  gap: 20px;

  margin-bottom: 50px;
}

.footer-socials a {
  width: 55px;
  height: 55px;

  border-radius: 50%;

  border:
    1px solid rgba(155,124,255,0.35);

  display: flex;
  align-items: center;
  justify-content: center;

  color: #d4ccff;

  font-size: 1.2rem;

  transition: 0.3s ease;

  background:
    rgba(255,255,255,0.03);

  backdrop-filter: blur(10px);

  text-decoration: none;
}

.footer-socials a:hover {
  transform: translateY(-6px);

  background:
    linear-gradient(135deg,
    #7d5cff,
    #b98cff);

  color: white;

  box-shadow:
    0 12px 30px rgba(125,92,255,0.35);
}

/* COPYRIGHT */

.footer-copy {
  color: rgba(255,255,255,0.5);

  font-size: 0.9rem;
}

/* SPACESHIP */

.spaceship-wrap {
  position: absolute;

  top: 80px;
  left: -200px;

  width: 300px;

  z-index: 1;

  animation:
    spaceshipFloat 16s linear infinite;
}

.spaceship {
  width: 100%;

  opacity: 0.9;

  filter:
    drop-shadow(0 0 25px rgba(155,124,255,0.5));
}

/* ANIMATION */

@keyframes spaceshipFloat {

  0% {
    transform:
      translateX(0)
      translateY(0)
      rotate(-5deg);
  }

  50% {
    transform:
      translateX(55vw)
      translateY(-40px)
      rotate(5deg);
  }

  100% {
    transform:
      translateX(120vw)
      translateY(0)
      rotate(-5deg);
  }
}

/* MOBILE */

@media (max-width: 768px) {

  .space-footer {
    padding: 140px 5% 70px;
  }

  .space-footer h2 {
    font-size: 3rem;
  }

  .footer-buttons {
    flex-direction: column;
  }

  .spaceship-wrap {
    width: 180px;
    top: 60px;
  }
}


/* PAGINATION */

.portfolio-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 5rem;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 25px rgba(138, 92, 246, 0.08);
}

.page-btn {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.page-btn:hover {
  transform: translateY(-4px);
  border-color: #8b5cf6;
  box-shadow:
    0 0 15px rgba(139,92,246,0.5),
    0 0 30px rgba(139,92,246,0.25);
}

.page-btn.active {
  background: linear-gradient(
    135deg,
    #8b5cf6,
    #6d28d9
  );

  border-color: #a855f7;

  box-shadow:
    0 0 15px rgba(168,85,247,0.8),
    0 0 40px rgba(168,85,247,0.45);
}

.nav-btn {
  font-size: 1rem;
}

/* MOBILE */

@media (max-width: 768px) {

  .portfolio-pagination {
    gap: 0.7rem;
  }

  .page-btn {
    width: 48px;
    height: 48px;
    font-size: 0.9rem;
  }

  .page-numbers {
    gap: 0.7rem;
    padding: 0.7rem 1rem;
  }
}

.project-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.project-card.show {
  opacity: 1;
  transform: translateY(0);
}