/* Reset and Base Styles */
html, body {
  overflow-x: hidden;
  margin: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* ========== Navbar Styles ========== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5vw;
  background-color: white;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
  min-height: 60px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 70px;
  width: auto;
  vertical-align: middle;
}

.navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 5vw;
  box-sizing: border-box;
  min-height: 60px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 20px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-links li a:hover {
  color: #0d47a1;
}

/* Hide hamburger menu on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 10001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.nav-overlay.active {
  display: block;
}

/* Mobile responsive navbar */
@media (max-width: 768px) {
  .navbar {
    min-height: 60px; 
    flex-direction: row;
    align-items: center;
    padding: 10px 4vw; 
    position: relative; 
    justify-content: space-between;
  }

  .logo {
    margin-bottom: 0;
    align-self: center;
    width: auto;
    display: flex;
    justify-content: flex-start;
  }

  .logo img {
    height: 50px;
  }

  /* Show Hamburger Menu */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding-top: 80px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    padding: 15px 20px;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 0;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
    box-sizing: border-box;
  }

  .nav-links li a:hover {
    background-color: #f0f8ff;
    color: #0d47a1;
  }
}

@media (max-width: 480px) {
  .navbar {
    min-height: 55px;
    padding: 8px 3vw;
  }

  .navbar.sticky {
    min-height: 55px;
    padding: 8px 3vw;
  }

  .logo img {
    height: 45px;
  }

  .nav-links {
    width: 80%;
    padding-top: 70px;
  }

  .nav-links li a {
    padding: 12px 15px;
    font-size: 16px;
  }
}

/* ========== Competition Hero Section ========== */
.competition-hero {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 60px 20px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: #1565c0;
  margin-bottom: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  color: #424242;
  line-height: 1.8;
  text-align: justify;
  margin: 0;
}

.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

/* ========== Skills Section ========== */
.skills-section {
  background: white;
  padding: 80px 20px;
}

.skills-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.skills-content h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 60px;
  font-weight: 600;
  line-height: 1.4;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  justify-items: center;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
  max-width: 160px;
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-icon {
  width: 70px;
  height: 70px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: #666;
  transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
  background: #e3f2fd;
  color: #1565c0;
  transform: scale(1.1);
}

.skill-item h3 {
  font-size: 1rem;
  color: #333;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

/* ========== Action Section ========== */
.action-section {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 60px 20px;
  text-align: center;
}

.action-buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-rules {
  background: rgba(255, 255, 255, 0.9);
  color: #1565c0;
  border: 2px solid #1565c0;
}

.btn-rules:hover {
  background: #1565c0;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(21, 101, 192, 0.3);
}

.btn-register {
  background: linear-gradient(135deg, #2196f3, #1565c0);
  color: white;
  border: 2px solid transparent;
}

.btn-register:hover {
  background: linear-gradient(135deg, #1976d2, #0d47a1);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(33, 150, 243, 0.4);
}

/* ========== Sponsors Section - NO GRAY COLORS ========== */
#sponsors {
  padding: 60px 20px;
  text-align: center;
  background-color: white;
}

#sponsors h3 {
  font-size: 42px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 50px;
  color: #080808;
  letter-spacing: 2px;
}

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.sponsor-item {
  text-align: center;
  padding: 15px;
  border-radius: 15px;
  background: transparent; 
  box-shadow: none; 
  min-width: 200px;
  max-width: 250px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sponsor-item img {
  max-height: 75%;
  max-width: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
  flex-grow: 1;
  filter: none; 
  opacity: 1; 
}

.sponsor-item p {
  font-size: 0.9rem;
  color: #333;
  font-style: normal;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
  flex-shrink: 0;
}

/* Mobile responsive untuk sponsor */
@media (max-width: 768px) {
  .sponsor-grid {
    gap: 2rem; 
  }
  
  .sponsor-item {
    padding: 15px; 
    min-width: 180px;
    max-width: 220px;
    height: 180px;
    background: transparent; 
  }
  
  .sponsor-item img {
    max-height: 70%;
    max-width: 85%;
  }
}

@media (max-width: 480px) {
  .sponsor-grid {
    gap: 1.5rem;
  }
  
  .sponsor-item {
    min-width: 160px;
    max-width: 200px;
    height: 160px;
    background: transparent; 
  }
  
  .sponsor-item img {
    max-height: 65%;
    max-width: 90%;
  }
}

/* ========== Footer ========== */
footer {
  background: #111827;
  color: white;
  padding: 2rem 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1000px;
  margin: auto;
  gap: 2rem;
}

.footer-content > div {
  flex: 1;
  min-width: 250px;
}

footer h4, footer h3 {
  margin-bottom: 0.5rem;
  color: #f1f5f9;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.3rem;
}

footer ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: #60a5fa;
}

footer p {
  margin: 0.25rem 0;
  color: #cbd5e1;
}

footer .copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  border-top: 1px solid #374151;
  padding-top: 1rem;
}

/* ========== Mobile Responsive ========== */
@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  
  .skill-item {
    max-width: 200px;
  }
  
  .skill-icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
    text-align: left;
  }

  .skills-content h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .skill-icon {
    width: 60px;
    height: 60px;
  }

  .skill-item {
    max-width: 150px;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .btn {
    font-size: 1rem;
    padding: 12px 30px;
    min-width: 250px;
  }
}

@media (max-width: 480px) {
  .competition-hero {
    padding: 40px 15px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .skills-section {
    padding: 60px 15px;
  }

  .skills-content h2 {
    font-size: 1.3rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .skill-icon {
    width: 50px;
    height: 50px;
  }

  .skill-item h3 {
    font-size: 0.9rem;
  }

  .skill-item {
    max-width: 120px;
  }

  .action-section {
    padding: 40px 15px;
  }
}