/* ============================================
   IHT Digital Signage - Custom Styles
   Premium Fullscreen Presentation
   ============================================ */

/* ---------- Base Reset & Setup ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --secondary: #38BDF8;
  --accent: #F59E0B;
  --success: #22C55E;
  --bg: #F8FAFC;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: rgba(31, 38, 135, 0.15);
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-light: #64748B;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
}

/* ---------- Swiper Overrides ---------- */
.swiper {
  width: 100vw;
  height: 100vh;
}

.swiper-slide {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Background Styles ---------- */
.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Slide 1 Background */
.bg-slide-1 {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 25%, #BFDBFE 50%, #93C5FD 75%, #60A5FA 100%);
}

/* Slide 2 Background */
.bg-slide-2 {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 30%, #BAE6FD 60%, #7DD3FC 100%);
}

/* Slide 3 Background */
.bg-slide-3 {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 25%, #DBEAFE 50%, #E0F2FE 75%, #F0FDFA 100%);
}

/* ---------- Abstract Shapes ---------- */
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
  will-change: transform;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
}

.shape-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
}

.shape-4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--success) 0%, transparent 70%);
  bottom: 10%;
  right: 20%;
  opacity: 0.2;
}

/* ---------- Continuous Ambient Animations ---------- */
@keyframes tema-icon-pulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px 4px rgba(245, 158, 11, 0.2);
    filter: hue-rotate(-45deg);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    filter: hue-rotate(0deg);
  }
}

.animate-tema-icon {
  animation: tema-icon-pulse 3s ease-in-out infinite;
}

@keyframes svg-spin {
  100% {
    transform: rotate(360deg);
  }
}
.animate-svg-spin {
  animation: svg-spin 10s linear infinite;
  transform-origin: 0px 0px;
}
.animate-svg-spin-reverse {
  animation: svg-spin 8s linear infinite reverse;
  transform-origin: 0px 0px;
}

/* ---------- Mesh Gradient Overlays ---------- */
.mesh-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(at 20% 80%, rgba(37, 99, 235, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 20%, rgba(56, 189, 248, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(245, 158, 11, 0.05) 0px, transparent 50%);
  pointer-events: none;
}

/* ---------- Wave Decoration ---------- */
.wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.wave-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
}

.wave-bottom .shape-fill {
  fill: rgba(255, 255, 255, 0.08);
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.5rem;
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.glass-card-strong {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.5rem;
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}

.glass-card-strong:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 16px 48px rgba(31, 38, 135, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ---------- Logo Bar ---------- */
.logo-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-group {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.5rem;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.logo-group img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* ---------- Slide Content Wrapper ---------- */
.slide-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 7.5rem 4rem 3rem;
}

/* ---------- Typewriter Effect ---------- */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- Glow Effects ---------- */
.glow-primary {
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.3), 0 0 80px rgba(37, 99, 235, 0.1);
}

.glow-accent {
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.25), 0 0 60px rgba(245, 158, 11, 0.1);
}

.text-glow {
  text-shadow: 0 0 40px rgba(37, 99, 235, 0.2);
}

/* ---------- Icon Circle ---------- */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

/* ---------- Speaker Card ---------- */
.speaker-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}

.speaker-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 20px 50px rgba(31, 38, 135, 0.15),
    0 0 30px rgba(37, 99, 235, 0.1);
}

/* ---------- Timeline ---------- */
.timeline-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
  border-radius: 2px;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Particle Canvas ---------- */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ---------- Floating Illustration ---------- */
.floating-illustration {
  animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.badge-primary {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* ---------- Day Label ---------- */
.day-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

/* ---------- Scrollbar Hide ---------- */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---------- SVG Illustration Styles ---------- */
.illustration-container {
  position: relative;
  flex-shrink: 0;
}

.illustration-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

/* ---------- Responsive Adjustments ---------- */
/* 1366×768 */
@media (max-width: 1440px) {
  .logo-item img {
    height: 42px;
  }
  .logo-bar {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .slide-content {
    padding: 5rem 3rem 2rem;
  }
}

/* 1280 and below */
@media (max-width: 1366px) {
  .logo-item img {
    height: 38px;
  }
  .slide-content {
    padding: 4.5rem 2.5rem 2rem;
  }
}

/* 4K - Scale up */
@media (min-width: 2560px) {
  .logo-item img {
    height: 72px;
  }
  .logo-bar {
    padding: 2.5rem 4rem;
    gap: 2.5rem;
  }
  .logo-item {
    padding: 1rem 1.5rem;
    border-radius: 1.25rem;
  }
  .slide-content {
    padding: 8rem 6rem 4rem;
  }
  .icon-circle {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
  }
  .timeline-dot {
    width: 28px;
    height: 28px;
  }
  .timeline-line {
    left: 38px;
    width: 4px;
  }
}

/* 3840×2160 (4K UHD) */
@media (min-width: 3840px) {
  .logo-item img {
    height: 96px;
  }
  .logo-bar {
    padding: 3rem 5rem;
    gap: 3rem;
  }
  .slide-content {
    padding: 10rem 8rem 5rem;
  }
  .icon-circle {
    width: 96px;
    height: 96px;
    font-size: 2.2rem;
  }
}
