/* =========================================================
   home.css — Rubiks' Art Home Page Styles
   ========================================================= */

/* Override body defaults for home page */
.home-body {
  display: block;
  align-items: unset;
  overflow-x: hidden;
}

.home-main {
  width: 100%;
  min-height: 100vh;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

/* Ambient Glow Orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: -100px;
  left: -150px;
  animation-delay: 0s;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  bottom: 50px;
  right: -100px;
  animation-delay: 3s;
}

.hero-glow-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  top: 40%;
  left: 60%;
  animation-delay: 6s;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.15); opacity: 0.55; }
}

/* Hero Content Layout */
.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1100px;
  width: 100%;
  z-index: 1;
}

/* Logo */
.hero-logo-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(59, 130, 246, 0.4));
  /* animated by JS */
}

.hero-logo-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px solid rgba(99, 179, 250, 0.3);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

/* Hero Text */
.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
  background: none;
  -webkit-text-fill-color: unset;
  color: unset;
  text-shadow: none;
}

.hero-title-main {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.hero-title-sub {
  font-size: 1.4rem;
  font-weight: 400;
  color: #64748b;
  -webkit-text-fill-color: #64748b;
  letter-spacing: 0.5px;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #475569;
  max-width: 560px;
  margin-bottom: 1.75rem;
}

/* Badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #334155;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.badge i {
  color: #60a5fa;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1;
}

.bounce {
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===================================================
   FEATURES SECTION
   =================================================== */
.features-section {
  padding: 5rem 2rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  text-shadow: none;
  letter-spacing: normal;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--icon-color) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--icon-color) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--icon-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}

/* ===================================================
   SHORTCUTS SECTION
   =================================================== */
.shortcuts-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Group label */
.shortcut-group {
  margin-bottom: 3rem;
}

.shortcut-group-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(148, 163, 184, 0.25);
}

.shortcut-group-label i {
  color: #60a5fa;
  font-size: 1rem;
}

/* Cards row */
.shortcut-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* Individual shortcut card */
.shortcut-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
}

.shortcut-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease,
              box-shadow 0.3s ease, border-color 0.3s ease;
}

.shortcut-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
  border-color: color-mix(in srgb, var(--card-color, #60a5fa) 40%, transparent);
}

/* Hover background glow */
.shortcut-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--card-color) 12%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.shortcut-card:hover .shortcut-card-glow {
  opacity: 1;
}

/* Icon */
.shortcut-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-color) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--card-color);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.shortcut-card:hover .shortcut-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* Info */
.shortcut-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.shortcut-size {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
}

.shortcut-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.1rem 0 0.25rem;
}

.shortcut-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Arrow */
.shortcut-arrow {
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: 0.85rem;
  transition: transform 0.25s ease, color 0.25s ease;
  position: relative;
  z-index: 1;
}

.shortcut-card:hover .shortcut-arrow {
  transform: translateX(4px);
  color: var(--card-color);
}

/* Featured card */
.shortcut-card.featured {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 20px rgba(96, 165, 250, 0.15);
}

.shortcut-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  z-index: 2;
}

/* Art card — wide */
.shortcut-art {
  grid-column: 1 / -1;
  max-width: 500px;
}

.shortcut-art .shortcut-desc {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

/* ===================================================
   FOOTER
   =================================================== */
.home-footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-logo {
    width: 160px;
    height: 160px;
  }

  .hero-title-main {
    font-size: 3rem;
  }

  .hero-title-sub {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-badges {
    justify-content: center;
  }

  .shortcut-cards {
    grid-template-columns: 1fr;
  }

  .shortcut-art {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title-main {
    font-size: 2.4rem;
  }

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