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

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

    .timeline {
      position: relative;
      max-width: 700px;
      margin: 0 auto;
      padding-left: 40px;
      border-left: 4px solid #8B5CF6; /* garis lurus di kiri */
    }

    .event {
      position: relative;
      margin-bottom: 40px;
      padding-left: 25px;
    }

    .event::before {
      content: "";
      position: absolute;
      left: -10px;
      top: 5px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #fff;
      border: 4px solid #8B5CF6;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .event h3 {
      margin: 0 0 8px 0;
      font-size: 1.2rem;
    }

    .date {
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 8px;
    }

    .progress-bar {
      height: 8px;
      background: #ddd;
      border-radius: 4px;
      overflow: hidden;
      margin-top: 6px;
    }

    .progress-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #8B5CF6, #af8dff);
      transition: width 1s ease;
    }

    .status {
      font-size: 0.95rem;
      margin-top: 6px;
    }

    @media (max-width: 600px) {
      #timeline {
        padding-left: 30px;
      }
      .event {
        padding-left: 20px;
      }
      .event::before {
        left: -12px;
      }
    }

    #preloader {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: white;
      z-index: 9999;
      transition: opacity 0.3s ease;
    }
    #preloader.hidden {
      opacity: 0;
      pointer-events: none;
      visibility: hidden;
    }
    .spinner {
      width: 60px;
      height: 60px;
      border: 6px solid #ddd;
      border-top-color: #333;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    #percent {
      margin-top: 10px;
      font-size: 14px;
      color: #333;
      text-align: center;
    }


    /* area utama slider */
    .slider {
      position: relative;
      width: 90%;
      width: 100vw;
      overflow: hidden;
    }

    /* track tempat semua foto berjalan */
    .slide-track {
      display: flex;
      align-items: center;
      gap: 20px; /* jarak antar foto */
      width: max-content;
      animation: scroll 30s linear infinite;
    }

    /* tiap foto */
    .slide {
      flex: 0 0 auto;
    }

    .slide img {
      width: 500px;
      height: 300px;
      object-fit: cover;
      border-radius: 12px; /* sudut membulat */
      display: block;
    }

    /* gradasi kiri-kanan agar halus */
    .slider::before,
    .slider::after {
      content: "";
      position: absolute;
      top: 0;
      width: 100px;
      height: 100%;
      z-index: 2;
      pointer-events: none;
    }

    .slider::before {
      left: 0;
      background: linear-gradient(to right, #000 1%, transparent);
    }

    .slider::after {
      right: 0;
      background: linear-gradient(to left, #000 1%, transparent);
    }

    /* animasi berjalan */
    @keyframes scroll {
      0% {
        transform: translateX(0);
      }
      100% {
        transform: translateX(-50%);
      }
    }

    #bidang-lomba {
      padding: 200px;
    }

    :root {
      --purple-primary: #8B5CF6;
      --purple-dark: #6366F1;
      --purple-light: #A855F7;
      --bg-primary: #FAFAFA;
      --text-primary: #1a1a1a;
      --text-secondary: #666;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* Smooth scroll */
    html {
      scroll-behavior: smooth;
    }

    .section-bg {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: url('src/a.png') no-repeat center center/cover;
      z-index: -1;
      filter: brightness(1);
    }
    /* Header */
    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: rgba(250, 250, 250, 0);
      /* backdrop-filter: blur(20px); */
      z-index: 1000;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      transition: all 0.3s;
    }

    nav {
      max-width: 1400px;
      margin: 0 auto;
      padding: 1.2rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      font-weight: 600;
      font-size: 1.2rem;
      color: var(--text-primary);
      text-decoration: none;
    }

    .logo-img {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));


    }

    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
      align-items: center;
    }

    .nav-links a {
      color: white;
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 500;
      transition: color 0.3s;
    }

    .nav-links a:hover {
      color: var(--text-primary);
    }

    header.scrolled .nav-links a {
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 500;
      transition: color 0.3s;
    }

    header.scrolled .nav-links a:hover {
      color: var(--text-primary);
    }

    header.scrolled {
      background-color: white;
      transition: all 0.3s;
    }

    .btn-primary {
      background: var(--purple-primary);
      color: white;
      padding: 0.7rem 1.8rem;
      border-radius: 12px;
      text-decoration: none;
      font-weight: 600;
      font-size: 0.95rem;
      transition: all 0.3s;
      border: none;
      cursor: pointer;
    }

    .btn-primary:hover {
      background: var(--purple-dark);
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
    }

    /* Mobile Menu */
    .menu-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
    }

    .menu-toggle span {
      width: 24px;
      height: 2px;
      background: white;
      transition: all 0.3s;
    }

    /* Hero Section */
    .hero {
      padding: 140px 2rem 80px;
      max-width: 1400px;
      margin: 0 auto;
      text-align: center;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: linear-gradient(135deg, rgba(72, 72, 254, 0.201), rgba(99, 102, 241, 0.1));
      padding: 0.5rem 1.2rem;
      border-radius: 50px;
      font-size: 0.9rem;
      color: white;
      font-weight: 600;
      margin-bottom: 2rem;
      animation: fadeInDown 0.8s ease-out;
    }

    @keyframes fadeInDown {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }

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

    .hero h1 {
      font-family: "Changa One", sans-serif;
      font-size: 6rem;
      font-weight: 700;
      line-height: 1.1;
      margin-bottom: 1.5rem;
      background: black;
      text-shadow: white 1px 1px 2px;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: fadeInUp 0.8s ease-out 0.2s both;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }

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

    .hero p {
      font-size: 1.4rem;
      color: rgb(255, 255, 255);
      max-width: 700px;
      margin: 0 auto 3rem;
      animation: fadeInUp 0.8s ease-out 0.4s both;
    }

    .hero-cta {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      animation: fadeInUp 0.8s ease-out 0.6s both;
    }

    .btn-secondary {
      background: white;
      color: var(--text-primary);
      padding: 0.9rem 2rem;
      border-radius: 12px;
      text-decoration: none;
      font-weight: 600;
      transition: all 0.3s;
      border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .btn-secondary:hover {
      border-color: var(--purple-primary);
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    /* Countdown */
    .countdown-wrapper {
      
      margin: 0 auto;
      padding-top: 50px;
    }

    .countdown-card {
      background: white;
      border-radius: 24px;
      padding: 3rem;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .countdown-title {
      text-align: center;
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 2rem;
      color: var(--text-primary);
    }

    .countdown-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;
      max-width: 600px;
      margin: 0 auto;
    }

    .countdown-item {
      text-align: center;
    }

    .countdown-value {
      font-size: 3rem;
      font-weight: 700;
      color: var(--purple-primary);
      display: block;
      margin-bottom: 0.5rem;
    }

    .countdown-label {
      font-size: 0.9rem;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* Section */
    section {
      max-width: 100%;
      margin: 0 auto;
      padding: 80px 2rem;
      background-color: rgb(235, 235, 235);
    }

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

    .section-badge {
      display: inline-block;
      background: linear-gradient(135deg, rgba(80, 86, 255, 0.698), rgba(97, 76, 255, 0.345));
      padding: 0.4rem 1rem;
      border-radius: 50px;
      font-size: 0.85rem;
      color: white;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .section-title {
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 1rem;
      color: black;
    }

    .section-description {
      font-size: 1.2rem;
      color: var(--text-secondary);
    }

    /* Cards Grid */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2rem;
    }

    .card {
      background: white;
      border-radius: 20px;
      padding: 2.5rem;
      border: 1px solid rgba(0, 0, 0, 0.05);
      transition: all 0.3s;
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    }

    .card-icon {
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      margin-bottom: 1.5rem;
    }

    .card-img {
      width: 100%;
      height: 200px;
      background: #f5f5f5;
      border-radius: 14px;
      margin-bottom: 1.5rem;
      object-fit: cover;
      border: 2px dashed #e0e0e0;
    }

    .card h3 {
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 0.8rem;
      color: var(--text-primary);
    }

    .card p {
      color: var(--text-secondary);
      line-height: 1.7;
    }

    /* Feature Section */
    .feature-section {
      background: white;
      border-radius: 32px;
      padding: 5rem 3rem;
      margin-bottom: 3rem;
      border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .feature-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }

    .feature-text h2 {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      color: var(--text-primary);
    }

    .feature-text p {
      font-size: 1.1rem;
      color: var(--text-secondary);
      margin-bottom: 2rem;
      line-height: 1.8;
    }

    .feature-img {
      width: 100%;
      height: 400px;
      background: #f5f5f5;
      border-radius: 20px;
      border: 2px dashed #e0e0e0;
    }

    /* Gallery */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.5rem;
    }

    .gallery-item {
      height: 300px;
      background: #f5f5f5;
      border-radius: 20px;
      overflow: hidden;
      border: 2px dashed #e0e0e0;
      transition: all 0.3s;
    }

    .gallery-item:hover {
      transform: scale(1.02);
    }

    /* Footer */
    footer {
      background: var(--text-primary);
      color: white;
      padding: 4rem 2rem 2rem;
    }

    .footer-content {
      max-width: 1400px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 3rem;
      margin-bottom: 3rem;
    }

    .footer-logo {
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 1rem;
    }

    .footer-description {
      color: rgba(255, 255, 255, 0.7);
      line-height: 1.8;
    }

    .footer-section h4 {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .footer-links {
      list-style: none;
    }

    .footer-links a {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
      display: block;
      margin-bottom: 0.8rem;
      transition: color 0.3s;
    }

    .footer-links a:hover {
      color: white;
    }

    .footer-bottom {
      max-width: 1400px;
      margin: 0 auto;
      padding-top: 2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      text-align: center;
      color: rgba(255, 255, 255, 0.5);
    }

    .edit-note {
      background: #FFF3CD;
      color: #856404;
      padding: 0.5rem 1rem;
      border-radius: 8px;
      font-size: 0.85rem;
      margin: 0.5rem 0;
      text-align: center;
      border: 1px solid #FFEAA7;
    }

    header .btn-primary {
  border: 2px solid #5b21b6;
  color: white;
  background: #5b21b6;
    transition: all 0.3s;

}
    header.scrolled .btn-primary {
  border: 2px solid #5b21b6;
  color: #5b21b6;
  background: white;
    transition: all 0.3s;

}
header .btn-primary:hover {
  background: #2b21b6;
  color: white;
  transition: all 0.3s;
}

/* Modal */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.5);
      justify-content: center;
      align-items: center;
      animation: fadeIn 1s;
    }

    .modal-content {
      background: linear-gradient(145deg, #6b5bff, #9c7bff);
      padding: 30px 25px;
      border-radius: 15px;
      text-align: center;
      max-width: 400px;
      color: white;
      box-shadow: 0 10px 25px rgba(0,0,0,0.3);
      position: relative;
      animation: slideIn 0.3s;
    }

    .modal-title {
      font-size: 24px;
      font-weight: bold;
      margin-bottom: 15px;
    }

    .modal-text {
      font-size: 18px;
      margin-bottom: 25px;
    }

    .close-btn {
      padding: 10px 20px;
      background-color: white;
      color: #6b5bff;
      border: none;
      border-radius: 8px;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.2s, transform 0.2s;
    }

    .close-btn:hover {
      background-color: #f0f0ff;
      transform: translateY(-2px);
    }

   .ts-nav {
      background: white;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      position: sticky;
      top: 0;
      z-index: 1000;
      width: 100%;
    }

    .ts-nav-container {
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 20px;
    }

    .ts-logo {
      font-weight: 700;
      color: #8B5CF6;
      font-size: 20px;
    }

    .ts-menu {
      display: flex;
      list-style: none;
      gap: 30px;
      align-items: center;
    }

    .ts-menu a {
      text-decoration: none;
      color: #333;
      font-weight: 600;
      transition: color 0.2s;
    }

    .ts-menu a:hover {
      color: #8B5CF6;
    }

    /* === DROPDOWN === */
    .ts-drop {
      position: relative;
    }

    .ts-drop-menu {
      position: absolute;
      top: 40px;
      left: 0;
      background: white;
      list-style: none;
      padding: 10px 0;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      min-width: 260px;
      display: none;
      flex-direction: column;
    }

    .ts-drop-menu li a {
      display: block;
      padding: 10px 20px;
      color: #333;
    }

    .ts-drop-menu li a:hover {
      background: #f3e8ff;
      color: #8B5CF6;
    }

    .ts-drop:hover .ts-drop-menu {
      display: flex;
    }

    /* === MENU BURGER (MOBILE) === */
    .ts-toggle {
      display: none;
      flex-direction: column;
      cursor: pointer;
    }

    .ts-toggle span {
      height: 3px;
      width: 25px;
      background: #333;
      margin-bottom: 5px;
      border-radius: 2px;
      transition: 0.3s;
    }
    
   /* Mobile dropdown */
/* ================== DROPDOWN ================== */
.ts-drop {
  position: relative;
}

/* Desktop dropdown */
@media (min-width: 769px) {
  .ts-drop-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 260px;
    display: none;
    flex-direction: column;
    z-index: 9999;
  }

  .ts-drop:hover .ts-drop-menu {
    display: flex; /* muncul saat hover */
  }

  .ts-drop-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
  }

  .ts-drop-menu li a:hover {
    background: #f3e8ff;
    color: #8B5CF6;
  }
}

/* Mobile dropdown */
@media (max-width: 768px) {
  .ts-menu {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    display: none;
  }

  .ts-menu.active {
    display: flex;
  }

  /* Dropdown Juknis di mobile */
  .ts-drop-menu {
    position: relative; /* jangan absolute */
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
    display: none; /* default mobile */
    padding-left: 1rem;
  }

  .ts-drop.open .ts-drop-menu {
    display: flex; /* muncul saat klik */
  }

  .ts-drop-menu li a {
    padding: 0.8rem 1rem;
  }

  .ts-drop-menu li a:hover {
    background: #f3e8ff;
    color: #8B5CF6;
  }
}

      
    /* Responsive */
    @media (max-width: 768px) {mg {
      width: 300px;
      height: 180px;
      object-fit: cover;
      border-radius: 12px; /* sudut membulat */
      display: block;
    }

      #bidang-lomba {
      padding: 10%;
    }
      .menu-toggle {
        display: flex;
      }

      .nav-links {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(2000px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      }


      .nav-links.active {
        left: 0;
      }

      .hero h1 {
        font-size: 3rem;
      }

      .hero p {
        font-size: 1.2rem;
      }

      .section-title {
        font-size: 2.2rem;
      }

      .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .feature-content {
        grid-template-columns: 1fr;
      }

      .footer-content {
        grid-template-columns: 1fr;
      }

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

    @media (max-width: 640px) {
      .hero h1 {
        font-size: 2.5rem;
      }

      .countdown-value {
        font-size: 2.5rem;
      }

      .feature-section {
        padding: 3rem 1.5rem;
      }
    }

    .galeri {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    @media (max-width: 768px) {
      .menu-toggle {
        display: flex;
      }

      .nav-links {
        position: absolute;
        top: 100%; /* MUNCUL DARI BAWAH NAVBAR */
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        overflow: hidden;

        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.4s ease;
      }

      .nav-links.active {
        max-height: 600px;
        opacity: 1;
        transform: translateY(0);
      }

      .nav-links li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
      }

      /* Dropdown fix di mobile */
      .dropdown:hover .dropdown-menu {
        display: none;
      }

      .dropdown.open .dropdown-menu {
        display: flex;
        flex-direction: column;
      }

      .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
      }
    }
    /* === FIX: Teks menu di mobile biar terlihat === */
@media (max-width: 768px) {
  header {
    /* background: rgba(255, 255, 255, 0.95); */
    /* backdrop-filter: blur(8px); */
  }

  .nav-links a {
    color: #333 !important;
  }

  .menu-toggle span {
    background: #c200b8 !important;
  }

  header.scrolled {
    background: rgba(255, 255, 255, 0.95);
  }
}
