* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #050505;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;

  /* CHANGE THIS */
  overflow-x: hidden;
  overflow-y: auto;
}

.portfolio-page {
  min-height: 100vh;
  position: relative;
  padding: 60px 70px;

  /* REMOVE THIS */
  /* overflow: hidden; */
}

.portfolio-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 0, 92, 0.18), transparent 30%),
    radial-gradient(circle at 20% 85%, rgba(255,255,255,0.06), transparent 28%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
  pointer-events: none;
}

/* TITLE */
.main-title {
  position: relative;
  z-index: 3;
  text-align: center;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -4px;
  color: #fff;
  text-transform: uppercase;
}

.main-title::after {
  content: "";
  display: block;
  width: 160px;
  height: 6px;
  margin: 20px auto 0;
  border-radius: 50px;
  background: #ff005c;
  box-shadow: 0 0 25px rgba(255, 0, 92, 0.7);
}

/* SECTION */
.portfolio-section {
  position: relative;
  z-index: 3;
  margin-top: 48px;
}

.portfolio-section h2 {
  margin-bottom: 22px;
  font-size: 22px;
  color: #ff005c;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* BASIC CARD */
.card {
  height: 180px;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #cfcfcf;
  font-weight: 900;
  letter-spacing: 1px;

  backdrop-filter: blur(14px);
  box-shadow: 0 22px 55px rgba(0,0,0,0.45);

  transition: 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 0, 92, 0.7);
  color: #fff;
  box-shadow:
    0 22px 55px rgba(0,0,0,0.5),
    0 0 35px rgba(255, 0, 92, 0.28);
}

/* LIVE PREVIEW CARD */
.preview-card {
  position: relative;
  height: 180px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  background: rgba(20, 20, 20, 0.85);
  box-shadow: 0 22px 55px rgba(0,0,0,0.45);
  transition: 0.3s ease;
}

.preview-card iframe {
  width: 200%;
  height: 200%;
  border: none;

  transform: scale(0.5);
  transform-origin: top left;

  pointer-events: none;
  filter: grayscale(1) contrast(1.05);

  overflow: hidden;
  scrollbar-width: none;
}

.preview-card iframe::-webkit-scrollbar {
  display: none;
}

.preview-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 0, 92, 0.7);
  box-shadow:
    0 22px 55px rgba(0,0,0,0.5),
    0 0 35px rgba(255, 0, 92, 0.28);
}

.preview-card:hover iframe {
  filter: grayscale(0) contrast(1);
}

/* OVERLAY */
.overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 11px 14px;

  background: rgba(5, 5, 5, 0.82);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;

  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(12px);
}

.overlay::before {
  content: "+";
  color: #ff005c;
  margin-right: 8px;
}

/* EMPTY CARDS */
.empty {
  height: 100%;
  min-height: 180px;
  border-radius: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #cfcfcf;
  font-weight: 900;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255,255,255,0.14);
}

/* VIEWER */
.viewer-container {
  position: relative;
  z-index: 3;
  margin-top: 45px;
  width: 100%;
  height: 450px;

  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(20,20,20,0.85);
  box-shadow:
    0 22px 55px rgba(0,0,0,0.5),
    0 0 30px rgba(255, 0, 92, 0.18);
}

.viewer-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* BACK BUTTON */
.back-btn {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 10;

  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);

  background: rgba(20, 20, 20, 0.85);
  color: #fff;

  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: 0.3s ease;
}

.back-btn::before {
  content: "← ";
  color: #ff005c;
}

.back-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 0, 92, 0.7);
  box-shadow: 0 0 28px rgba(255, 0, 92, 0.35);
}

/* CORNER ACCENT */
.portfolio-page::after {
  content: "";
  position: absolute;
  right: 55px;
  bottom: 55px;
  width: 44px;
  height: 44px;
  border-right: 9px solid #fff;
  border-bottom: 9px solid #fff;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  body {
    overflow: auto;
  }

  .portfolio-page {
    height: auto;
    padding: 40px 28px;
  }

  .main-title {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-page::after {
    display: none;
  }
}

@media (max-width: 650px) {
  .grid {
    grid-template-columns: 1fr;
  }
}