@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;600;800&display=swap');

:root {
  --primary: #3a86ff;
  --primary-hover: #2667cc;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar/Header */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: 'Poppins', sans-serif;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 1.2rem 0.3rem 1.2rem;
  min-height: 48px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: nowrap;
  gap: 0.5rem;
  position: relative;
}
.logo {
  font-weight: 700;
  font-size: 1.13rem;
  color: var(--primary);
  letter-spacing: -0.5px;
  font-family: 'Inter', sans-serif;
  margin-right: 1.1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 1;
  padding-top: 2px;
}
.nav-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 400;
  font-size: 1.01rem;
  transition: color 0.18s, border 0.18s;
  position: relative;
  padding: 0.22rem 0.1rem;
  border-bottom: 2px solid transparent;
  margin-right: 0.1rem;
  white-space: nowrap;
  border-radius: 0.2rem;
}
.nav-links a:hover, .nav-links a:focus {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  background: #f4f7fb;
}
.nav-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}
.btn-outline, .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.8rem;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
  text-decoration: none;
  border: 1.5px solid transparent;
  min-width: 0;
  min-height: 28px;
  height: 30px;
  box-shadow: none;
}
.btn-outline {
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--primary);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-hover);
  outline: none;
}
.btn-primary {
  color: #fff;
  background: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  outline: none;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  margin-left: 0.5rem;
  outline: none;
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 101;
}
.hamburger .bar {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px 0;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
@media (max-width: 700px) {
  .nav-links {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.18);
  z-index: 9999;
  display: none;
  transition: background 0.2s;
}
.mobile-drawer.show {
  display: block;
}
.mobile-drawer-links, .mobile-drawer-actions {
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin: 0 auto;
  max-width: 92vw;
  min-width: 220px;
  padding: 1.2rem 1.1rem 0.7rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}
.mobile-drawer-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1.07rem;
  font-weight: 500;
  padding: 0.3rem 0.1rem;
  border-radius: 0.2rem;
  transition: background 0.15s, color 0.15s;
}
.mobile-drawer-links a:hover, .mobile-drawer-links a:focus {
  background: #f4f7fb;
  color: var(--primary);
}
.drawer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.6rem 0 0.3rem 0;
  width: 100%;
}
.mobile-drawer-actions {
  gap: 0.5rem;
  padding-bottom: 1.1rem;
}
.drawer-login, .drawer-daftar {
  display: inline-block;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.18rem 0.8rem;
  border-radius: 0.4rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.drawer-login {
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--primary);
}
.drawer-login:hover, .drawer-login:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-hover);
}
.drawer-daftar {
  color: #fff;
  background: var(--primary);
  border: 1.5px solid var(--primary);
}
.drawer-daftar:hover, .drawer-daftar:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.close-drawer {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dark);
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  cursor: pointer;
  z-index: 10001;
  padding: 0.1rem 0.5rem;
  line-height: 1;
  transition: color 0.15s;
}
.close-drawer:hover, .close-drawer:focus {
  color: var(--primary);
}
.mobile-drawer .mobile-drawer-links, .mobile-drawer .mobile-drawer-actions {
  box-shadow: none;
}
@media (max-width: 400px) {
  .mobile-drawer-links, .mobile-drawer-actions {
    min-width: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 900px) {
  .hamburger { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .nav-links, .nav-actions { display: none; }
}
/* Mobile Drawer Header Styling */
.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  width: 100%;
}

.mobile-drawer-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  margin-left: 0;
  text-align: left;
}

@media (max-width: 900px) {
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100vw;
    background: #fff;
    z-index: 9999;
    box-shadow: var(--shadow);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1), opacity 0.28s cubic-bezier(.4,0,.2,1);
    transform: translateY(-100%);
    opacity: 0;
    padding-top: 0;
    pointer-events: none;
  }
  .mobile-drawer.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    width: 100%;
    align-items: flex-start;
  }
  .mobile-drawer-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.7rem 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.12s;
    text-align: left;
    width: 100%;
  }
  .mobile-drawer-links a:hover {
    background: #f3f4f6;
    color: var(--primary);
  }
  .drawer-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.2rem 2rem;
  }
  .mobile-drawer-actions {
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    padding: 0 1rem 1.5rem 1rem;
    width: 100%;
  }
  .drawer-login, .drawer-daftar {
    border-radius: 0.5rem;
    font-weight: 500;
    flex: 1;
    text-align: center;
    padding: 0.7rem 1rem;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .drawer-login {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: #fff;
  }
  .drawer-login:hover, .drawer-login:focus { 
    background: var(--primary); 
    color: #fff; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }
  .drawer-daftar { 
    background: var(--primary); 
    color: #fff; 
  }
  .drawer-daftar:hover, .drawer-daftar:focus { 
    background: var(--primary-hover); 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }
  .close-drawer {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    align-self: flex-end;
    margin: 0.5rem 2rem 0 0;
    font-size: 2rem;
    color: var(--text-dark);
  }
}

/* Responsive Navbar: Perkecil padding, font, dan gap */
@media (max-width: 900px) {
  .nav-content {
    padding: 0.4rem 0.7rem;
    min-height: 48px;
    gap: 0.4rem;
  }
  .logo {
    font-size: 1.1rem;
    margin-right: 0.6rem;
  }
  .nav-links {
    gap: 0.7rem;
    font-size: 0.97rem;
    max-width: 100vw;
    overflow-x: auto;
  }
  .nav-links a {
    font-size: 0.97rem;
    padding: 0.2rem 0;
    margin-right: 0.1rem;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .btn-outline, .btn-primary {
    font-size: 0.93rem;
    padding: 0.25rem 0.7rem;
    border-radius: 0.5rem;
  }
  .mobile-drawer { display: none; }
  .mobile-drawer.show { display: flex; }
}

@media (max-width: 700px) {
  .nav-content {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0.7rem 0.7rem 0.7rem;
    min-height: 48px;
    position: relative;
  }
  .logo {
    font-size: 1.1rem;
    margin: 0;
    text-align: left;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 0.3rem;
    font-size: 0.97rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a {
    font-size: 0.97rem;
    padding: 0.2rem 0;
    margin-right: 0.1rem;
  }
  .nav-actions {
    gap: 0.5rem;
    justify-content: flex-start;
    margin-top: 0.3rem;
  }
  .btn-outline, .btn-primary {
    font-size: 0.93rem;
    padding: 0.25rem 0.7rem;
    border-radius: 0.5rem;
  }
}

@media (max-width: 600px) {
  .nav-content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.2rem;
    padding: 0.3rem 0.7rem;
    min-height: 48px;
  }
  .logo {
    margin: 0;
    font-size: 1rem;
  }
  .hamburger {
    right: 0.7rem;
  }
  .nav-links {
    display: none;
  }
  .nav-actions {
    display: none;
  }
}

/* Footer */
.footer {
  background: #2d3748;
  color: white;
  padding: 2.5rem 0;
  font-family: 'Poppins', sans-serif;
  position: static;
  width: 100%;
  z-index: 10;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-links {
  display: flex; flex-direction: column; gap: 1rem;
}
.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}
.footer-links a:hover { color: white; transform: translateX(4px); }
.footer-copyright {
  text-align: center;
  margin-top: 2rem;
  color: #718096;
  font-size: 0.9rem;
}
