/* ===== 3D PROJECT CAROUSEL ===== */

.wrapper {
  width: 100%;
  height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
   margin-bottom: 0; 
}

.inner {
  --w: 220px;
  --h: 300px;
  --translateZ: 550px;
  --rotateX: -2deg;
  --perspective: 1800px;

  --base-rotation: 0deg;
  --focus-rotation: 0deg;

  position: absolute;
  width: var(--w);
  height: var(--h);
  top: 18%;
  left: calc(50% - (var(--w) / 2));

  transform-style: preserve-3d;

  transform: perspective(var(--perspective))
             rotateX(var(--rotateX))
             rotateY(calc(var(--base-rotation) + var(--focus-rotation)));

  animation: spin 20s linear infinite;
  will-change: transform;
  pointer-events: none;
}

@keyframes spin {
  from { --base-rotation: 0deg; }
  to   { --base-rotation: 360deg; }
}

.inner.paused {
  animation-play-state: paused;
}

/* ===== CARD ===== */

.card {
  position: absolute;
  inset: 0;
  
  border-radius: 24px;
  overflow: hidden;

  transform:
    rotateY(calc((360deg / var(--quantity)) * var(--index)))
    translateZ(var(--translateZ));

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(15, 15, 15, 0.902);

  box-shadow:
    0 0 40px rgba(0,0,0,0.35),
    inset 0 0 20px rgba(255,255,255,0.05);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  pointer-events: auto;
}

.card .img {
  backface-visibility: hidden;
}

.card.flipped .img {
  transform: rotateY(180deg);
}

.card:hover {
  z-index: 999;
  transform:
    rotateY(calc((360deg / var(--quantity)) * var(--index)))
    translateZ(calc(var(--translateZ) + 50px));
    

  box-shadow:
    0 0 80px rgba(255,255,255,0.2);
    pointer-events: auto;
}

.card a {
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: white;
}

.img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;

  background: radial-gradient(
    circle,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.03) 100%
  );
}

.project-icon {
  width: 95px;
  height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.35));
}

.card h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 3px;
}

.card p {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.8;
  text-align: center;
  padding: 0 18px;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
  .wrapper {
    height: 520px;
  }

  .inner {
    --w: 160px;
    --h: 230px;
    --translateZ: 340px;
    top: 22%;
  }

  .project-icon {
    width: 70px;
    height: 70px;
  }

  .card h2 {
    font-size: 0.95rem;
  }

  .card p {
    font-size: 0.7rem;
  }
}

/* ===== VARIABLES ===== */

:root {
  --accent: #ff3e3e;
  --panel-bg: #1a1a1a;
  --wheel-bg: #2a2a2a;
  --text-active: #ffffff;
  --text-idle: rgba(255, 255, 255, 0.1);
}

/* ===== WHEEL SELECTOR ===== */

.wheel-selector {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hint-pop {
  position: absolute;
  top: -40px;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: #888;
  text-transform: uppercase;
  animation: pulseHint 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes pulseHint {
  0%,  100% { opacity: 0.8; transform: translateY(0); }
  50%        { opacity: 1;   transform: translateY(-2px); }
}

/* ===== GLASS CONTAINER ===== */

.glass-container {
  position: absolute;
  inset: 0;

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

  pointer-events: auto;
  z-index: 20;
}

/* ===== GLASS CARD (shared) ===== */


.glass-card {
  position: absolute;

  width: 250px;
  height: 400px;

  border-radius: 24px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.175);

  background: rgba(15,15,15,0.95);

  /* REMOVE THIS */
  /* backdrop-filter: blur(12px); */

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

  opacity: 1;

  transition:
    transform 0.65s cubic-bezier(0.22,1,0.36,1),
    opacity 0.35s ease;

  /* IMPORTANT FIXES */
  transform-style: flat;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.glass-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
/* REMOVE ROTATION */
.glass-left {
  background-color: rgb(15,15,15);

  transform: translateX(-250px)rotate(-10deg);

  z-index: 998;
}

.glass-right {
  background-color: rgb(0,0,0);
  transform: translateX(250px)rotate(10deg);
  text-align: left;
  padding: 40px;
  box-sizing: border-box;
  z-index: 1000;
}
.glass-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
/* HIDDEN STATE */
.glass-container.hidden .glass-left,
.glass-container.hidden .glass-right {
  transform: translateX(0px) scale(0.85);
  opacity: 0;
}

/* TEXT FIX */
.glass-card *,
.glass-inner *,
.glass-stack-item *,
.glass-link-item * {
  text-shadow: none !important;
  filter: none !important;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* REMOVE ANY PSEUDO DUPLICATES */
.glass-card::before,
.glass-card::after,
.glass-inner::before,
.glass-inner::after {
  content: none !important;
  display: none !important;
}
img[src="images/icons/launch.png"] {
  width: 40px !important;
  height: 40px !important;
}
img[src="images/stack/storage.png"]{
  width:60px;
  height:60px;
}




/* ===== STACK + LINK COMPACT FIX ===== */

.glass-stack-list,
.glass-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px; /* reduced */
}

/* each row smaller */
.glass-stack-item,
.glass-link-item {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 6px 10px;   /* reduced */
  border-radius: 10px;

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

/* smaller icons */
.glass-stack-item img,
.glass-link-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* smaller text */
.glass-stack-item span,
.glass-link-item span {
  font-size: 0.75rem;
  line-height: 1;
  opacity: 0.85;
}

/* cleaner link */
.glass-link-item {
  text-decoration: none;
  color: inherit;
}

/* optional hover (light) */
.glass-link-item:hover,
.glass-stack-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(1px);
  transition: 0.15s ease;
}
#all-projects-container{
  display:none;
}