/* ==========================================================================
   MARKETING ങ്ങാരെ തക്കാരം — Pure 3D Continuous Reel Showcase
   Ultra-Clean, Responsive & Production Ready for Hosting
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..900;1,9..40,400..900&family=Noto+Sans+Malayalam:wght@600;700;800;900&display=swap');

:root {
  --bg-deep: #070503;
  --gold-primary: #ffbd25;
  --gold-light: #ffe082;
  --drinks-accent: #00e5c5;
  --drinks-light: #8afff0;
  --radius-card: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background: var(--bg-deep);
  color: #fff;
  font-family: "DM Sans", "Noto Sans Malayalam", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric Ambient Background */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% 10%, rgba(45, 30, 16, 0.85) 0%, rgba(7, 5, 3, 0.98) 65%),
    url("../images/food-fest-hero.png") center top / cover no-repeat;
}

.ambient-glow {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(160px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.ambient-glow-left {
  top: 15%;
  left: -200px;
  background: radial-gradient(circle, #00e5c5, transparent 70%);
}

.ambient-glow-right {
  top: 25%;
  right: -200px;
  background: radial-gradient(circle, #ffbd25, transparent 70%);
}

/* ==========================================================================
   Centered Institute Logo Header (Noticeably Bigger & Crisp)
   ========================================================================== */
.site-header-centered {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 20px 10px;
}

.brand-centered {
  display: inline-flex;
}

.institute-logo {
  height: 84px; /* Increased logo size */
  max-width: 90vw;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.75));
  transition: transform 0.3s ease;
}

.institute-logo:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   Main Showcase Layout
   ========================================================================== */
.hero-showcase-section {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 120px);
  padding: 10px 4% 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Central Hero Title Graphic */
.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 30px;
}

.hero-title-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero-title-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 28px rgba(255, 230, 160, 0.38));
  transition: transform 0.4s ease;
}

/* ==========================================================================
   Twin 3D Reels Container (Spaced Comfortably, Never Overlapping)
   ========================================================================== */
.hero-duo-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 80px;
  row-gap: 50px;
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  padding: 0 20px;
}

/* Frameless 3D Viewport Stage */
.reel-stage {
  position: relative;
  height: 480px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible; /* Prevents image cutting */
  cursor: grab;
}

.reel-stage:active {
  cursor: grabbing;
}

/* Soft Atmosphere Halo Under Each Reel */
.reel-stage::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  transition: opacity 0.4s ease;
}

.drinks-stage::before {
  background: radial-gradient(circle, #00e5c5, transparent 70%);
}

.food-stage::before {
  background: radial-gradient(circle, #ffbd25, transparent 70%);
}

.reel-stage:hover::before {
  opacity: 0.28;
}

/* 3D Rotating Carousel Cylinder */
.reel-carousel {
  position: relative;
  width: var(--card-size, 260px);
  height: var(--card-size, 260px);
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 2;
}

/* 3D Square Card */
.reel-card {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--card-size, 260px);
  height: var(--card-size, 260px);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #0d0a07;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  backface-visibility: hidden;
  user-select: none;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.drinks-stage .reel-card {
  border-color: rgba(0, 229, 197, 0.35);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 229, 197, 0.15);
}

.food-stage .reel-card {
  border-color: rgba(255, 189, 37, 0.35);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 189, 37, 0.15);
}

.reel-card:hover {
  border-color: #fff;
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.95);
}

/* Full Square Image */
.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Corner Number Badge */
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(8, 6, 4, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 4;
}

.drinks-stage .card-badge {
  color: var(--drinks-accent);
}

.food-stage .card-badge {
  color: var(--gold-primary);
}

/* Compact Dark Square Bottom Label Overlay */
.card-label-box {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 8px 12px 9px;
  background: rgba(7, 5, 3, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 3;
}

.drinks-stage .card-label-box {
  border-left: 3px solid var(--drinks-accent);
  background: rgba(4, 9, 8, 0.9);
}

.food-stage .card-label-box {
  border-left: 3px solid var(--gold-primary);
  background: rgba(12, 8, 4, 0.9);
}

/* Malayalam Name Line */
.label-ml {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  display: block;
  white-space: normal;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.drinks-stage .label-ml {
  color: var(--drinks-light);
}

.food-stage .label-ml {
  color: var(--gold-light);
}

/* English Name Line */
.label-en {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: block;
  white-space: normal;
  line-height: 1.2;
}

.drinks-stage .label-en {
  color: var(--drinks-accent);
}

.food-stage .label-en {
  color: var(--gold-primary);
}

/* ==========================================================================
   Multi-Device Responsiveness (Zero Overlap across Laptops, Tablets, Phones)
   ========================================================================== */
@media (min-width: 1440px) {
  :root {
    --card-size: 280px;
  }
  .hero-duo-container {
    column-gap: 100px;
  }
}

@media (max-width: 1280px) {
  :root {
    --card-size: 250px;
  }
  .hero-duo-container {
    column-gap: 60px;
  }
  .institute-logo {
    height: 76px;
  }
}

@media (max-width: 1024px) {
  :root {
    --card-size: 230px;
  }
  .hero-duo-container {
    column-gap: 40px;
  }
  .reel-stage {
    height: 420px;
  }
  .institute-logo {
    height: 70px;
  }
}

/* Mobile & Tablet Portrait Breakpoint: Stacks Reels Gracefully Vertically */
@media (max-width: 820px) {
  .hero-showcase-section {
    padding: 6px 16px 50px;
  }

  .site-header-centered {
    padding: 24px 16px 8px;
  }

  .institute-logo {
    height: 64px;
  }

  .hero-content {
    margin-bottom: 24px;
  }

  .hero-title-img {
    max-width: 88vw;
  }

  .hero-duo-container {
    grid-template-columns: 1fr; /* Single column on mobile to eliminate any possibility of collision */
    row-gap: 40px;
    max-width: 440px;
    padding: 0;
  }

  .reel-stage {
    height: 380px;
  }

  :root {
    --card-size: 220px;
  }

  .label-ml {
    font-size: 13.5px;
  }

  .label-en {
    font-size: 9.5px;
  }
}

@media (max-width: 480px) {
  .institute-logo {
    height: 56px;
  }

  .hero-title-img {
    max-width: 92vw;
  }

  .hero-duo-container {
    row-gap: 32px;
    max-width: 340px;
  }

  .reel-stage {
    height: 330px;
  }

  :root {
    --card-size: 190px;
  }

  .card-label-box {
    padding: 6px 10px 7px;
    left: 6px;
    right: 6px;
    bottom: 6px;
  }

  .label-ml {
    font-size: 12.5px;
  }

  .label-en {
    font-size: 8.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
