/* ============================================================
   home.css - Styles ONLY for index.html (Homepage)
   Contains: hero section, project logo showcase, cursor glow,
             demo modal & video embed
   Last updated: January 2026
   ============================================================ */

/* ===== Hero Container (main showcase area) ===== */
.home-shell {
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(124,58,237,.18), transparent 55%),
    radial-gradient(850px 520px at 95% 30%, rgba(34,211,238,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ===== Hero Grid Layout (logo on right, content on left) ===== */
.home-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 50px;
  padding: 36px;
}



/* ===== Project Logo Showcase (right side on desktop) ===== */
.project-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.project-logo img {
  object-fit: contain;
  max-height: 420px;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  background: rgba(0,0,0,.15);
}

/* Responsive logo sizes & layout */
@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 18px;
    gap: 40px;
  }

  .project-logo {
    order: -1; /* Move logo before text on mobile */
    display: flex;
    justify-content: center;
    margin: 0 auto 32px; /* Center the logo container */
    max-width: 420px;
  }

  .project-logo img {
    height: 360px;
    max-height: 50vh; /* Prevent logo from being too tall */
  }
}

@media (max-width: 768px) {
  .project-logo img {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .project-logo img {
    height: 240px;
  }
}

/* ===== Decorative Cursor Glow (only on homepage) ===== */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(circle at 30% 30%, rgba(124,58,237,.30), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(34,211,238,.15), transparent 50%);
  filter: blur(28px);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }
}

/* ===== Demo Video Modal (only appears on homepage) ===== */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

.demo-modal.is-open {
  display: flex;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.demo-modal__panel {
  position: relative;
  width: min(1000px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(124,58,237,.22), transparent 55%),
    radial-gradient(850px 520px at 95% 30%, rgba(34,211,238,.10), transparent 60%),
    rgba(6,6,21,.86);
  box-shadow: 0 30px 120px rgba(0,0,0,.60);
}

.demo-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

.demo-modal__title b {
  display: block;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.demo-modal__title .muted {
  display: block;
  font-size: 12px;
  color: rgba(238,240,255,.65);
  margin-top: 2px;
}

.demo-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(238,240,255,.92);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease);
}

.demo-modal__close:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}

.demo-modal__video {
  padding: 14px;
  overflow: auto;
  flex: 1;
}

.demo-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 170px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  box-shadow: var(--shadow2);
}

.demo-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Mobile adjustments for modal */
@media (max-width: 520px) {
  .demo-modal__panel {
    width: calc(100% - 18px);
    max-height: calc(100vh - 18px);
    border-radius: 18px;
  }

  .demo-modal__video {
    padding: 10px;
  }

  .demo-embed {
    max-height: calc(100vh - 160px);
    border-radius: 14px;
  }
}