/* ================================================
   HOME PAGE CSS - Inception 2026
   ================================================ */

/* ==== HOME SECTION ==== */
.home {
  background-image: url(/assets/images/bg_seamless.jpg);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
}

/* Container untuk membatasi lebar maksimal di layar besar */
.home-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Colored Blur Circles */
.home .blur-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.home .blur-circle:nth-child(1) {
  width: 450px;
  height: 450px;
  background: #FBB137;
  top: 5%;
  left: -10%;
  animation: float-1 20s ease-in-out infinite;
}

.home .blur-circle:nth-child(2) {
  width: 400px;
  height: 400px;
  background: #B22A2A;
  top: 50%;
  right: -5%;
  animation: float-2 25s ease-in-out infinite;
}

.home .blur-circle:nth-child(3) {
  width: 500px;
  height: 500px;
  background: #4683B5;
  bottom: 10%;
  left: 10%;
  animation: float-3 22s ease-in-out infinite;
}

.home .blur-circle:nth-child(4) {
  width: 350px;
  height: 350px;
  background: #32477C;
  top: 25%;
  right: 15%;
  animation: float-4 18s ease-in-out infinite;
}

.home .blur-circle:nth-child(5) {
  width: 420px;
  height: 420px;
  background: #FBB137;
  bottom: 20%;
  right: 30%;
  animation: float-5 24s ease-in-out infinite;
}

.home .blur-circle:nth-child(6) {
  width: 380px;
  height: 380px;
  background: #B22A2A;
  top: 40%;
  left: 35%;
  animation: float-6 21s ease-in-out infinite;
}

/* Float Animations for Blur Circles */
@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 30px) scale(0.9); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 40px) scale(1.15); }
  66% { transform: translate(40px, -30px) scale(0.85); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 50px) scale(0.95); }
  66% { transform: translate(-30px, -40px) scale(1.1); }
}

@keyframes float-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-35px, -45px) scale(1.05); }
  66% { transform: translate(45px, 35px) scale(0.9); }
}

@keyframes float-5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -35px) scale(0.88); }
  66% { transform: translate(-40px, 45px) scale(1.12); }
}

@keyframes float-6 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 40px) scale(1.08); }
  66% { transform: translate(35px, -50px) scale(0.92); }
}

/* === 3D Earth (Spline) === */
.logo-3d {
  position: absolute;
  bottom: -30vh;
  left: 50%;
  transform: translateX(-50%) scale(1.2);
  transform-origin: bottom center;
  width: 90vw;
  max-width: 1800px;
  height: 75vh;
  z-index: 1;
}

.logo-3d spline-viewer {
  width: 100%;
  height: 100%;
  border: none;
}

/* === Konten (Teks dan Logo Tengah) === */
.home-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--text-primary);
  margin-top: 5vh;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 0 2rem;
}

.home-content h1 {
  position: relative;
  z-index: 10;
  font-size: clamp(4rem, 15vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 4px;
  margin-bottom: 300px;
  /* === Gradient Space Effect === */
  background: var(--gradient-main);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine 8s ease-in-out infinite alternate;
  filter: drop-shadow(var(--glow-orange)) drop-shadow(var(--glow-blue));
}

.year {
  position: relative;
  z-index: 999;
  width: clamp(180px, 22vw, 300px);
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 0 25px rgba(251, 177, 55, 0.4));
}

/* Shine Animation */
@keyframes shine {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 100% center;
  }
}

/* ==== ABOUT SECTION ==== */
.about {
  color: var(--text-primary);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
}

/* Container wrapper untuk center content di layar besar */
.about-header,
.cards-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid background effect */
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 25px 25px;
  opacity: 0.5;
}

.about-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.about-header h2 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, #32477C 30%, #4683B5);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: shine 8s ease-in-out infinite alternate;
}

.heading {
  background: var(--gradient-main);
  background-size: 200% auto;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shine 8s ease-in-out infinite alternate;
  filter: drop-shadow(var(--glow-orange)) drop-shadow(var(--glow-blue));
}

.about-header .tagline {
  font-size: clamp(1rem, 3vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto;
  color: #423B4D;
  line-height: 1.6;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Card Styles */
.info-card,
.mascot-card,
.highlight-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 177, 55, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover,
.mascot-card:hover,
.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-primary);
}

/* Info Card */
.info-card h3 {
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-card p {
  color: #423B4D;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Mascot Card */
.mascot-card {
  text-align: center;
}

.mascot-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(251, 177, 55, 0.3));
}

/* Highlight Card */
.highlight-card {
  background: var(--gradient-overlay);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.date-badge {
  background: var(--accent-primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  box-shadow: var(--glow-orange);
}

.highlight-card h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.highlight-card p {
  color: #423B4D;
  margin-bottom: 1.5rem;
}

.cta-button {
  background: var(--gradient-warm);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ==== ORGANIZATION CAROUSEL ==== */
.organization {
  padding: 6rem 0;
  color: #423B4D;
  text-align: center;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: auto;
  overflow: hidden;
  padding: 0 2rem;
}

.organization .about-header {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==== CAROUSEL NAVIGATION ==== */
.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.nav-button {
  background: none;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 50%;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.nav-button:hover {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: var(--glow-orange);
}

/* Dots */
.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  background: #666;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: var(--accent-primary);
  box-shadow: var(--glow-orange);
}

/* ==== EVENTS SECTION ==== */
.events {
  padding: 6rem 0;
  color: #423B4D;
  text-align: center;
  width: 100%;
  max-width: 100vw;
  overflow: visible;
  position: relative;
  margin-bottom: 4rem;
}

/* Events Blur Circles - positioning agar tidak terpotong */
.events .blur-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.events .blur-circle:nth-child(1) {
  width: 400px;
  height: 400px;
  background: #FBB137;
  top: 10%;
  left: 5%;
  animation: float-1 20s ease-in-out infinite;
}

.events .blur-circle:nth-child(2) {
  width: 350px;
  height: 350px;
  background: #4683B5;
  top: 50%;
  right: 8%;
  animation: float-2 22s ease-in-out infinite;
}

.events-header {
  margin-bottom: 3rem;
  z-index: 2;
  position: relative;
}

.events-container {
  display: flex;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
  justify-content: center;
  padding: 0 2rem;
  perspective: 1000px;
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.events .about-header {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.event-card {
  display: block;
  position: relative;
  transform-style: preserve-3d;
  animation: float 8s ease-in-out infinite;
  animation-delay: var(--delay);
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.event-inner {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 177, 55, 0.3);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.event-inner img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 1rem;
  transform: translateZ(30px);
}

.event-inner h3 {
  color: var(--accent-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  transform: translateZ(25px);
}

.event-inner p {
  color: #423B4D;
  font-size: 0.95rem;
  transform: translateZ(20px);
}

/* Hover 3D */
.event-card:hover .event-inner {
  transform: rotateY(12deg) rotateX(5deg) translateY(-8px) scale(1.05);
  box-shadow: 0 20px 50px rgba(251, 177, 55, 0.25);
  border-color: var(--accent-primary);
}

/* ==== FLOAT ANIMATION ==== */
@keyframes float {
  0% {
    transform: translateY(0px) translateX(0px) rotateZ(0deg);
  }

  25% {
    transform: translateY(-10px) translateX(5px) rotateZ(1deg);
  }

  50% {
    transform: translateY(0px) translateX(-5px) rotateZ(-1deg);
  }

  75% {
    transform: translateY(10px) translateX(3px) rotateZ(1deg);
  }

  100% {
    transform: translateY(0px) translateX(0px) rotateZ(0deg);
  }
}

/* ==== BACKGROUND STARFIELD EFFECT ==== */
.events::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/tekstur.png');
  background-repeat: repeat;
  opacity: 0.1;
  animation: starfield 60s linear infinite;
}

@keyframes starfield {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 1000px 1000px;
  }
}

/* ==== COMPETITION SECTION ==== */
.competition {
  position: relative;
  color: #423B4D;
  text-align: center;
  width: 100%;
  max-width: 100vw;
  padding: 8rem 2rem;
  overflow: hidden;
}

.competition-content {
  max-width: 1400px;
  margin: 0 auto;
}

.competition-content h2 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  margin-bottom: 3rem;
  background: var(--gradient-main);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 6s linear infinite;
}

/* Glitch Coming Soon */
.coming-soon {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  display: inline-block;
  color: #32477C;
  letter-spacing: 0.2rem;
  position: relative;
  text-transform: uppercase;
  animation: flicker 3s infinite;
}

.coming-soon span {
  display: inline-block;
  animation: glitch 2s infinite alternate;
}

@keyframes glitch {
  0% {
    text-shadow: 2px 2px var(--color-red), -2px -2px var(--color-blue);
  }

  25% {
    text-shadow: -2px -2px var(--color-orange), 2px 2px var(--color-blue);
  }

  50% {
    text-shadow: 2px -2px var(--color-blue), -2px 2px var(--color-red);
  }

  75% {
    text-shadow: -2px 2px var(--color-orange), 2px -2px var(--color-blue);
  }

  100% {
    text-shadow: 2px 2px var(--color-red), -2px -2px var(--color-blue);
  }
}

@keyframes flicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
  }

  20%,
  24%,
  55% {
    opacity: 0.4;
  }
}

/* ==== TIMELINE SECTION ==== */
.timeline-section {
  position: relative;
  padding: 6rem 0;
  color: #423B4D;
  overflow: hidden;
  /* Prevent horizontal overflow */
  width: 100%;
  max-width: 100vw;
}

.timeline-section .section-title {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  margin-bottom: 4rem;
  padding: 0 2rem;
  background: var(--gradient-main);
  background-size: 200% auto;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shine 8s ease-in-out infinite alternate;
  filter: drop-shadow(var(--glow-blue));
}

/* ==== HORIZONTAL TIMELINE ==== */
.timeline-wrapper {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 3rem 2rem 4rem 2rem;
  cursor: grab;
  /* Contain within viewport */
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hide scrollbar on desktop (>= 1024px) */
@media (min-width: 1024px) {
  .timeline-wrapper {
    overflow-x: visible;
    cursor: default;
  }
  
  .timeline-wrapper::-webkit-scrollbar {
    display: none;
  }
  
  .timeline-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* Hide scrollbar on desktop (>= 1024px) */
@media (min-width: 1024px) {
  .timeline-wrapper {
    overflow-x: visible;
    cursor: default;
  }
  
  .timeline-wrapper::-webkit-scrollbar {
    display: none;
  }
  
  .timeline-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

.timeline-wrapper:active {
  cursor: grabbing;
}

/* Custom Scrollbar - Hanya untuk mobile/tablet */
@media (max-width: 1023px) {
  .timeline-wrapper::-webkit-scrollbar {
    height: 8px;
  }

  .timeline-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
  }

  .timeline-wrapper::-webkit-scrollbar-thumb {
    background: var(--gradient-warm);
    border-radius: 10px;
    box-shadow: var(--glow-orange);
  }

  .timeline-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-cool);
  }
}



.timeline-track {
  display: flex;
  align-items: center;
  position: relative;
  padding: 2rem 0;
  width: max-content;
  min-width: 100%;
  /* Ensure proper containment */
  box-sizing: border-box;
}

/* Desktop: center items dan fit screen */
@media (min-width: 1024px) {
  .timeline-track {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }
}

/* Progress Line Background */
.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  transform: translateY(-50%);
  z-index: 0;
}



/* ==== TIMELINE ITEM ==== */
.timeline-item {
  position: relative;
  min-width: 320px;
  max-width: 320px;
  margin: 0 1.5rem;
  display: inline-block;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.8s ease-out forwards;
  flex-shrink: 0;
}

/* Desktop: flexible width untuk fit screen */
@media (min-width: 1024px) {
  .timeline-item {
    flex: 1;
    min-width: 0;
    max-width: 320px;
    margin: 0 0.5rem;
  }
  
  .timeline-item:first-child {
    margin-left: 0;
  }
  
  .timeline-item:last-child {
    margin-right: 0;
  }
}

/* Mobile/Tablet: margin khusus untuk scroll */
@media (max-width: 1023px) {
  .timeline-item:first-child {
    margin-left: 3rem;
  }

  .timeline-item:last-child {
    margin-right: 3rem;
  }
}

.timeline-item:nth-child(1) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.6s;
}

.timeline-item:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item.in-view {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, var(--color-orange), var(--color-red));
  border-radius: 50%;
  box-shadow: var(--glow-orange);
  margin: 0 auto 1.5rem auto;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow:
    0 0 30px rgba(251, 177, 55, 0.8),
    0 0 60px rgba(178, 42, 42, 0.6);
}

/* Dot pulse effect */
.timeline-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 177, 55, 0.4), rgba(178, 42, 42, 0.4));
  animation: dotPulse 2s ease-out infinite;
}

@keyframes dotPulse {
  0% {
    width: 100%;
    height: 100%;
    opacity: 1;
  }

  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

.timeline-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 177, 55, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Gradient overlay effect */
.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(251, 177, 55, 0.1),
      transparent);
  transition: left 0.5s ease;
}

.timeline-item:hover .timeline-content::before {
  left: 100%;
}

.timeline-content:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.95);
}

.timeline-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #423B4D;
}

/* Number badge */
.timeline-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: rgba(150, 150, 150, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: rgba(66, 59, 77, 0.5);
  /* Transisi lebih cepat untuk efek lampu yang responsif */
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.3s ease,
              box-shadow 0.4s ease-out,
              transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 3;
}

/* Active/Lit state - Menyala seperti lampu */
.timeline-number.active {
  background: var(--gradient-warm);
  color: #FFFFFF;
  box-shadow: 
    0 0 20px rgba(251, 177, 55, 0.6),
    0 0 40px rgba(251, 177, 55, 0.4),
    0 0 60px rgba(178, 42, 42, 0.3),
    var(--glow-orange);
  transform: translateX(-50%) scale(1.1);
  animation: glow-pulse 1.5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(251, 177, 55, 0.6),
      0 0 40px rgba(251, 177, 55, 0.4),
      0 0 60px rgba(178, 42, 42, 0.3);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(251, 177, 55, 0.8),
      0 0 50px rgba(251, 177, 55, 0.6),
      0 0 80px rgba(178, 42, 42, 0.4);
  }
}

/* ==== RESPONSIVE - HOME PAGE ==== */

/* Large Desktop - 1600px dan ke atas */
@media (min-width: 1600px) {
  /* Semua section sudah memiliki max-width 1400px */
  /* Content akan tetap centered dan tidak melebar berlebihan */
  
  .home-content h1 {
    font-size: 9rem;
  }
  
  .year {
    width: 300px;
  }
  
  .about-header h2,
  .section-title,
  .competition-content h2 {
    font-size: 4rem;
  }
  
  .cards-container {
    gap: 2.5rem;
  }
  
  .timeline-item {
    min-width: 350px;
    max-width: 350px;
  }
}

/* Tablet dan iPad - 1024px dan dibawah */
@media (max-width: 1024px) {
  /* HOME SECTION */
  .home {
    min-height: 90vh;
    padding: 2rem 1rem;
  }

  .home-content {
    padding: 0 1rem;
  }

  .home-content h1 {
    font-size: clamp(3.5rem, 12vw, 7rem);
    margin-bottom: 200px;
  }

  .year {
    width: clamp(160px, 20vw, 260px);
  }

  .logo-3d {
    width: 95vw;
    height: 65vh;
    bottom: -25vh;
  }

  /* ABOUT SECTION */
  .about {
    padding: 5rem 1.5rem;
  }

  .about-header {
    margin-bottom: 3rem;
  }

  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
  }

  /* ORGANIZATION SECTION */
  .organization {
    padding: 5rem 1.5rem;
  }

  .carousel-slide {
    padding: 0 1rem;
  }

  /* EVENTS SECTION */
  .events {
    padding: 5rem 1.5rem;
  }

  .events-container {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
  }

  /* COMPETITION SECTION */
  .competition {
    padding: 6rem 1.5rem;
  }

  .competition-content h2 {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

  .coming-soon {
    font-size: clamp(1.8rem, 5.5vw, 3rem);
  }

  /* TIMELINE SECTION */
  .timeline-section {
    padding: 5rem 0;
  }

  .timeline-wrapper {
    padding: 2.5rem 1.5rem 3.5rem 1.5rem;
  }

  .timeline-item {
    min-width: 300px;
    max-width: 300px;
  }
}

/* Tablet Portrait dan Mobile Landscape - 768px dan dibawah */
@media (max-width: 768px) {
  /* Prevent body horizontal scroll */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* HOME SECTION */
  .home {
    min-height: 85vh;
    padding: 1.5rem 1rem;
  }

  .home-content {
    margin-top: -5vh;
    padding: 0 0.5rem;
  }

  .home-content h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: 2px;
    margin-bottom: 150px;
  }

  .year {
    width: clamp(140px, 18vw, 220px);
  }

  .logo-3d {
    bottom: -20vh;
    height: 55vh;
  }

  /* Blur circles adjustment untuk mobile */
  .home .blur-circle:nth-child(1),
  .home .blur-circle:nth-child(2),
  .home .blur-circle:nth-child(3),
  .home .blur-circle:nth-child(4),
  .home .blur-circle:nth-child(5),
  .home .blur-circle:nth-child(6) {
    width: 280px;
    height: 280px;
    filter: blur(80px);
  }

  /* ABOUT SECTION */
  .about {
    padding: 4rem 1rem;
  }

  .about-header {
    margin-bottom: 2.5rem;
  }

  .about-header h2 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .about-header .tagline {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    padding: 0 1rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .info-card,
  .mascot-card,
  .highlight-card {
    padding: 1.5rem;
  }

  .info-card h3 {
    font-size: 1.3rem;
  }

  .mascot-image {
    max-width: 220px;
  }

  .highlight-card h3 {
    font-size: 1.6rem;
  }

  .date-badge {
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
  }

  /* ORGANIZATION SECTION */
  .organization {
    padding: 4rem 1rem;
  }

  .carousel-container {
    padding: 0;
  }

  .carousel-slide {
    padding: 0 0.5rem;
  }

  .carousel-nav {
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  .nav-button {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  /* EVENTS SECTION */
  .events {
    padding: 4rem 0;
    margin-bottom: 3rem;
  }

  .events-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 0 1rem;
  }

  .event-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .event-inner {
    padding: 1.8rem 1.3rem;
  }

  .event-inner img {
    width: 80px;
    height: 80px;
  }

  .event-inner h3 {
    font-size: 1.2rem;
  }

  .event-inner p {
    font-size: 0.9rem;
  }

  /* COMPETITION SECTION */
  .competition {
    padding: 5rem 1rem;
  }

  .competition-content h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin-bottom: 2rem;
  }

  .coming-soon {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    letter-spacing: 0.15rem;
  }

  /* TIMELINE SECTION */
  .timeline-section {
    padding: 4rem 0;
    overflow-x: hidden;
    width: 100%;
  }

  .section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 3rem;
    padding: 0 1rem;
  }

  .timeline-wrapper {
    padding: 2rem 1rem 3rem 1rem;
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    margin: 0 auto;
  }

  .timeline-item {
    min-width: 280px;
    max-width: 280px;
    margin: 0 1rem;
  }

  .timeline-item:first-child {
    margin-left: 2rem;
  }

  .timeline-item:last-child {
    margin-right: 2rem;
  }

  .timeline-content {
    padding: 1.3rem;
  }

  .timeline-content h3 {
    font-size: 1.3rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
  }

  .timeline-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .timeline-dot {
    width: 20px;
    height: 20px;
  }
}

/* Mobile - 600px dan dibawah */
@media (max-width: 600px) {
  /* Prevent body horizontal scroll */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* HOME SECTION */
  .home {
    min-height: 80vh;
    padding: 1rem 0.5rem;
  }

  .home-content {
    margin-top: 0;
    padding: 0 0.5rem;
  }

  .home-content h1 {
    font-size: clamp(2.5rem, 9vw, 5rem);
    letter-spacing: 1px;
    margin-bottom: 100px;
  }

  .year {
    width: clamp(120px, 16vw, 180px);
  }

  .logo-3d {
    bottom: -15vh;
    height: 45vh;
    width: 100vw;
  }

  /* ABOUT SECTION */
  .about {
    padding: 3rem 0.8rem;
  }

  .about::before {
    background-size: 20px 20px;
  }

  .about-header {
    margin-bottom: 2rem;
  }

  .about-header h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 0.8rem;
  }

  .about-header .tagline {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .cards-container {
    gap: 1.3rem;
  }

  .info-card,
  .mascot-card,
  .highlight-card {
    padding: 1.3rem;
    border-radius: 16px;
  }

  .info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .info-card p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .mascot-image {
    max-width: 180px;
  }

  .highlight-card h3 {
    font-size: 1.4rem;
  }

  .highlight-card p {
    font-size: 0.9rem;
  }

  .date-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    margin-bottom: 0.8rem;
  }

  .cta-button {
    padding: 0.7rem 1.8rem;
    font-size: 0.9rem;
  }

  /* ORGANIZATION SECTION */
  .organization {
    padding: 3rem 0.8rem;
  }

  .carousel-slide {
    padding: 0;
  }

  .carousel-nav {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .nav-button {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  /* EVENTS SECTION */
  .events {
    padding: 3rem 0;
    margin-bottom: 2rem;
  }

  .events .blur-circle:nth-child(1),
  .events .blur-circle:nth-child(2) {
    width: 250px;
    height: 250px;
    filter: blur(70px);
  }

  .events-container {
    gap: 1.5rem;
    padding: 0 0.8rem;
  }

  .event-card {
    max-width: 100%;
  }

  .event-inner {
    padding: 1.5rem 1rem;
    border-radius: 1.2rem;
  }

  .event-inner img {
    width: 70px;
    height: 70px;
    margin-bottom: 0.8rem;
  }

  .event-inner h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }

  .event-inner p {
    font-size: 0.85rem;
  }

  /* COMPETITION SECTION */
  .competition {
    padding: 4rem 0.8rem;
  }

  .competition-content h2 {
    font-size: clamp(1.6rem, 5.5vw, 2.5rem);
    margin-bottom: 1.5rem;
  }

  .coming-soon {
    font-size: clamp(1.3rem, 4.5vw, 2rem);
    letter-spacing: 0.1rem;
  }

  /* TIMELINE SECTION */
  .timeline-section {
    padding: 3rem 0;
    overflow-x: hidden;
    width: 100%;
  }

  .section-title {
    font-size: clamp(1.8rem, 5.5vw, 2.5rem);
    margin-bottom: 2.5rem;
    padding: 0 0.8rem;
  }

  .timeline-wrapper {
    padding: 1.5rem 0.8rem 2.5rem 0.8rem;
    width: calc(100vw - 1.6rem);
    max-width: calc(100vw - 1.6rem);
    margin: 0 auto;
  }

  .timeline-item {
    min-width: 260px;
    max-width: 260px;
    margin: 0 0.8rem;
  }

  .timeline-item:first-child {
    margin-left: 1.5rem;
  }

  .timeline-item:last-child {
    margin-right: 1.5rem;
  }

  .timeline-content {
    padding: 1.2rem;
    border-radius: 16px;
  }

  .timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }

  .timeline-content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .timeline-number {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    top: -12px;
  }

  .timeline-dot {
    width: 18px;
    height: 18px;
    margin-bottom: 1.2rem;
  }
}

/* Mobile Small - 420px dan dibawah */
@media (max-width: 420px) {
  /* Prevent body horizontal scroll */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* HOME SECTION */
  .home {
    min-height: 75vh;
  }

  .home-content h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 80px;
  }

  .year {
    width: clamp(100px, 15vw, 150px);
  }

  .logo-3d {
    bottom: -12vh;
    height: 40vh;
  }

  .home .blur-circle:nth-child(1),
  .home .blur-circle:nth-child(2),
  .home .blur-circle:nth-child(3),
  .home .blur-circle:nth-child(4),
  .home .blur-circle:nth-child(5),
  .home .blur-circle:nth-child(6) {
    width: 220px;
    height: 220px;
    filter: blur(60px);
  }

  /* ABOUT SECTION */
  .about {
    padding: 2.5rem 0.6rem;
  }

  .about-header h2 {
    font-size: clamp(1.6rem, 5.5vw, 2rem);
  }

  .about-header .tagline {
    font-size: 0.88rem;
  }

  .cards-container {
    gap: 1.2rem;
  }

  .info-card,
  .mascot-card,
  .highlight-card {
    padding: 1.2rem;
  }

  .info-card h3 {
    font-size: 1.1rem;
  }

  .info-card p {
    font-size: 0.85rem;
  }

  .mascot-image {
    max-width: 150px;
  }

  .highlight-card h3 {
    font-size: 1.3rem;
  }

  .highlight-card p {
    font-size: 0.85rem;
  }

  .date-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
  }

  /* ORGANIZATION SECTION */
  .organization {
    padding: 2.5rem 0.6rem;
  }

  /* EVENTS SECTION */
  .events {
    padding: 2.5rem 0;
  }

  .events-container {
    padding: 0 0.6rem;
  }

  .event-inner {
    padding: 1.3rem 0.9rem;
  }

  .event-inner img {
    width: 60px;
    height: 60px;
  }

  .event-inner h3 {
    font-size: 1rem;
  }

  .event-inner p {
    font-size: 0.8rem;
  }

  /* COMPETITION SECTION */
  .competition {
    padding: 3.5rem 0.6rem;
  }

  .competition-content h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .coming-soon {
    font-size: clamp(1.1rem, 4vw, 1.8rem);
  }

  /* TIMELINE SECTION */
  .timeline-section {
    padding: 2.5rem 0;
    overflow-x: hidden;
    width: 100%;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
    margin-bottom: 2rem;
  }

  .timeline-wrapper {
    width: calc(100vw - 1.2rem);
    max-width: calc(100vw - 1.2rem);
    margin: 0 auto;
  }

  .timeline-item {
    min-width: 240px;
    max-width: 240px;
    margin: 0 0.6rem;
  }

  .timeline-item:first-child {
    margin-left: 1.2rem;
  }

  .timeline-item:last-child {
    margin-right: 1.2rem;
  }

  .timeline-content {
    padding: 1rem;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .timeline-content p {
    font-size: 0.8rem;
  }

  .timeline-number {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .timeline-dot {
    width: 16px;
    height: 16px;
  }
}
