/* Apps page styles (logos + store buttons) */
/* Prevent image/text selection while dragging */
.spiral-rotator,
.spiral-rotator * {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}


/* ===== APP LOGOS SECTION (SPACED + VIEW ALL) ===== */
.logos-section {

  min-height: calc(var(--vh, 1vh) * 100);
	position: relative;
	padding: clamp(60px, 8vw, 120px);
	display: flex;
	align-items: center;
	overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(96,165,250,0.06) 0%, transparent 50%);
}

.logos-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 80px;
}

.space-divider {
  height: 60px;
  flex-shrink: 0;
}

.logos-header {
  text-align: center;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #818cf8;
  margin-bottom: 12px;
}

.logos-header h2 {
  font-size: 3.4rem;
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.logos-header p {
  color: #9ca3af;
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0 auto;
}

.logos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.logo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  border-radius: 32px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.logo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96,165,250,0.1), rgba(168,85,247,0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.logo-card:hover::before {
  opacity: 1;
}

.logo-card:hover {
  transform: translateY(-16px);
  border-color: rgba(96,165,250,0.4);
  box-shadow: 
    0 40px 100px rgba(15,23,42,0.9),
    0 0 60px rgba(96,165,250,0.3);
}

.logo-glow {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0;
  transition: all 0.4s ease;
  transform: translateX(-50%);
  z-index: 0;
}

.logo-card.shopping .logo-glow { background: rgba(251,191,36,0.5); }
.logo-card.recipes .logo-glow { background: rgba(236,72,153,0.5); }
.logo-card.diary .logo-glow { background: rgba(96,165,250,0.5); }
.logo-card.wallpaper .logo-glow { background: rgba(168,85,247,0.5); }

.logo-card:hover .logo-glow {
  opacity: 1;
  transform: translateX(-50%) scale(1.2);
}

.logo-card img {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  margin-bottom: 20px;
  z-index: 1;
  transition: all 0.3s ease;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

.logo-card:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 12px 32px rgba(96,165,250,0.4));
}

.logo-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 12px;
  text-align: center;
  z-index: 1;
}

.logo-badge {
  padding: 10px 24px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(34,197,94,0.4);
  transition: all 0.3s ease;
  z-index: 1;
}

.logo-card:hover .logo-badge {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(34,197,94,0.5);
}

/* ===== VIEW ALL STORE BUTTONS ===== */
.stores-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.store-btn svg {
  width: 24px;
  height: 24px;
}

.play {
  background: linear-gradient(135deg, #00C851, #007E33);
  border: 1px solid rgba(0,200,81,0.3);
}

.play:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,200,81,0.4);
}

.apple {
  background: linear-gradient(135deg, #000, #333);
  border: 1px solid rgba(255,255,255,0.2);
}

.apple:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Mobile */
@media (max-width: 900px) {
  .logos-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 400px;
  }
  
  .stores-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .logos-header h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 600px) {
  .logos-wrapper {
    padding: 0 6%;
    gap: 60px;
  }
  
  .logos-header h2 {
    font-size: 2.4rem;
  }
  
  .store-btn {
    padding: 14px 28px;
    font-size: 0.95rem;
  }
}


.stores-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
   margin-bottom: 40px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(6px);
}

/* icon */
.store-btn img {
  width: 20px;
  height: 20px;
}

/* Play Store */
.store-btn.play {
  background: rgba(108, 99, 255, 0.12);
  color: #63ff94;
}

/* App Store */
.store-btn.apple {
  background: rgba(108, 99, 255, 0.12);
  color: #6c63ff;
}

/* hover */
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* active */
.store-btn:active {
  transform: scale(0.97);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .screenshots-header h2 {
    font-size: 2.2rem;
  }
}



.apps-spiral-section {
  padding: 140px 0;
  text-align: center;
}

.apps-title {
  font-size: 2.6rem;
  margin-bottom: 60px;
}

.apps-title span {
  background: linear-gradient(90deg, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* === SPIRAL CORE === */

.spiral-container {
  position: relative;
  width: 520px;
  height: 520px;
  margin: 0 auto;

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

  perspective: 1600px;
}


.spiral-rotator {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  cursor: grab;
}

.spiral-rotator:active {
  cursor: grabbing;
}

/* FIXED ROTATION ORIGIN */
.spiral-pivot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

/* === CARDS === */

.spiral-item {
  position: absolute;

  --radius: 240px;
  --angle: calc(var(--i) * 90deg);

  transform:
    rotateY(var(--angle))
    translateZ(var(--radius));

  width: 230px;
  height: 310px;

  margin-left: -115px;
  margin-top: -155px;

  background: rgba(15,23,42,0.88);
  backdrop-filter: blur(18px);
  border-radius: 30px;
  padding: 26px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;

  border: 1px solid rgba(96,165,250,0.35);
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);

  transition: transform 0.35s ease;
}

.spiral-item img {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  object-fit: cover;
  filter: drop-shadow(0 0 22px rgba(96,165,250,0.7));
}

.spiral-item h4 {
  color: white;
  font-size: 1.1rem;
  margin: 0;
}

/* === INSTALL BUTTON === */

.install-btn {
  margin-top: auto;
  padding: 12px 28px;
  border-radius: 26px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #60a5fa, #a855f7);
  color: white;
  box-shadow: 0 14px 40px rgba(96,165,250,0.55);
}

/* hidden by default */
.spiral-item .install-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: all 0.3s ease;
}

/* ACTIVE CARD */
.spiral-item.active {
  transform:
    rotateY(var(--angle))
    translateZ(calc(var(--radius) + 90px))
    scale(1.18);
}

.spiral-item.active .install-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* Glow trail */
.spiral-item::after {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 40px;
  background: radial-gradient(
    circle at center,
    rgba(96,165,250,0.35),
    transparent 70%
  );
  opacity: 0;
  filter: blur(30px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.spiral-item.active::after {
  opacity: 1;
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}
@media (max-width: 768px) {

  
  .logos-section {
    padding: 100px 16px 120px;
  }


  .spiral-container {
    width: 100vw;
    height: 420px;
    padding: 0;
    margin: 0 auto;

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

    perspective: 1200px;
  }

  .spiral-rotator {
    transform: translateX(-50%) rotateX(12deg);
     position: absolute;
    left: 0%;
    transform: translateX(-0%); 
     touch-action: pan-y; /* allow vertical scroll, block horizontal */
  }

  .spiral-pivot {
    top: 50%;
    left: 50%;
  }

  .spiral-item {
    --radius: 180px;      /* tighter ring for mobile */
    width: 200px;
    height: 280px;

    margin-left: -100px;
    margin-top: -140px;
  }
  
   .spiral-item.active {
    scale: 1.12;
  }

}
