[file name]: main.css
[file content begin]
/* ============================================================
   🌐 HAKIMMATH UNIVERSE - MAIN CSS (COMPLETE VERSION)
   Semua style dalam satu file untuk menghindari import issues
============================================================ */

/* -------------------------------
   RESET & BASE STYLES
------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fa;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* -------------------------------
   LAYOUT & CONTAINERS
------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header-content {
  flex: 1;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* -------------------------------
   HEADER & NAVIGATION
------------------------------- */
header {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
}

header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #0056b3;
  color: #fff;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

header p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.main-navigation {
  background: #34495e;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* -------------------------------
   MENU COMPONENTS
------------------------------- */
.main-menu {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

.menu-item {
  position: relative;
}

.menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
  border-right: 1px solid #46627f;
  font-weight: 500;
}

.menu-item:last-child .menu-link {
  border-right: none;
}

.menu-link:hover,
.menu-link.active {
  background: #3498db;
}

/* Submenu Styles */
.submenu {
  display: none;
  position: absolute;
  background: white;
  top: 100%;
  left: 0;
  min-width: 250px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  list-style: none;
  z-index: 1001;
  border-radius: 5px;
  overflow: hidden;
}

.menu-item:hover .submenu {
  display: block;
}

.submenu li {
  border-bottom: 1px solid #f0f0f0;
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu-link {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 14px;
}

.submenu-link:hover {
  background: #3498db;
  color: white;
}

/* -------------------------------
   MOBILE COMPONENTS - FIXED VERSION
------------------------------- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  position: relative;
}

.mobile-menu-toggle .hamburger-line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.submenu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 30px;
  height: 100%;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
  transition: transform 0.3s ease;
}

.submenu-toggle.active {
  transform: rotate(90deg);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* -------------------------------
   MAIN CONTENT COMPONENTS
------------------------------- */
main {
  padding: 1.5rem 0;
}

.content-section {
  margin-bottom: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.content-section:hover {
  transform: translateY(-3px);
}

.content-section h2 {
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.content-section h3 {
  color: #34495e;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #3498db, #2c3e50);
  color: white;
  padding: 2rem 1rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border: none;
  color: white;
  line-height: 1.4;
}

/* Grid Systems */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-item {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 8px;
  border-left: 4px solid #3498db;
  transition: transform 0.3s;
}

.feature-item:hover {
  transform: translateY(-3px);
}

.profile-info {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.visi-misi {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.info-item {
  display: block;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 5px;
}

.visi, .misi {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 8px;
}

/* -------------------------------
   FOOTER
------------------------------- */
footer {
  background: #2c3e50;
  color: white;
  padding: 1.5rem 0 0;
}

.footer-links {
  text-align: center;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid #34495e;
  border-bottom: 1px solid #34495e;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
}

.footer-links a:hover {
  color: #3498db;
}

.footer-bottom {
  padding: 1rem 0;
  text-align: center;
  color: #bdc3c7;
  font-size: 0.9rem;
}

/* -------------------------------
   UTILITY CLASSES - DIPERBARUI
------------------------------- */
.game-link {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.game-link:hover {
  text-decoration: underline;
}

.section-subtitle {
  margin-top: 2rem;
  color: #2c3e50;
  font-size: 1.1rem;
}

.info-item strong {
  color: #2c3e50;
  display: block;
  margin-bottom: 0.3rem;
}

/* UTILITY CLASSES BARU */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.px-1 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* ============================================================
   MOBILE RESPONSIVE STYLES - FIXED VERSION
============================================================ */
/* Tambahkan di main.css */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Animation for scroll reveal */
.content-section,
.info-item,
.kelas-simple-card {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Mobile khusus untuk navigasi */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex !important;
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 1002 !important;
    background: rgba(52, 152, 219, 0.95) !important;
    padding: 10px 8px !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
    border: 2px solid white !important;
  }
  
  /* Ensure header has space for the button */
  .header-container {
    padding-right: 70px !important;
    min-height: 80px;
    position: relative;
  }
  
  /* NAVIGATION - Mobile Styles */
  .main-navigation {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    background: #2c3e50 !important;
    transition: left 0.3s ease-in-out !important;
    overflow-y: auto !important;
    z-index: 1001 !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3) !important;
  }
  
  .main-navigation.active {
    left: 0 !important;
  }
  
  .nav-container {
    padding: 0;
  }
  
  /* MAIN MENU - Mobile */
  .main-menu {
    flex-direction: column;
    padding: 70px 0 2rem;
    height: 100%;
  }
  
  .menu-item {
    position: relative;
    border-bottom: 1px solid #34495e;
  }
  
  .menu-link {
    border-right: none;
    padding: 1rem 3rem 1rem 1.5rem;
    text-align: left;
    font-size: 1rem;
    display: flex;
    align-items: center;
  }
  
  /* SUBMENU TOGGLE - Show on Mobile */
  .submenu-toggle {
    display: block;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .submenu-toggle:hover {
    background: rgba(255,255,255,0.2);
  }
  
  .submenu-toggle.active {
    transform: rotate(90deg);
    background: #3498db;
  }
  
  /* SUBMENU - Mobile */
  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    background: #34495e;
    border-radius: 0;
    display: none;
  }
  
  .submenu.active {
    display: block;
  }
  
  .submenu li {
    border-bottom: 1px solid #405870;
  }
  
  .submenu-link {
    color: #ecf0f1;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
  }
  
  .submenu-link:hover {
    background: #3498db;
    color: white;
    border-left-color: #2980b9;
  }
  
  /* Overlay fixes */
  .mobile-overlay {
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    z-index: 1000 !important;
  }
  
  .mobile-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* Very small devices */
@media (max-width: 480px) {
  .mobile-menu-toggle {
    top: 10px !important;
    right: 10px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 12px 8px !important;
  }
  
  .header-container {
    padding-right: 60px !important;
    min-height: 70px;
  }
  
  .main-navigation {
    width: 100% !important;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .menu-link {
    padding: 1.2rem 3rem 1.2rem 1.5rem;
    font-size: 1.1rem;
  }
  
  .submenu-link {
    padding: 1rem 1rem 1rem 2.5rem;
  }
  
  .hero-section {
    padding: 1.5rem 1rem;
  }
  
  .hero-section h2 {
    font-size: 1.2rem;
  }
  
  .content-section {
    padding: 1rem;
  }
  
  .content-section h2 {
    font-size: 1.3rem;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}
[file content end]