/* 1.All start */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  opacity: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: black;
  transition: opacity 0.3s ease-in;
}

body,
.navbar,
.nav-menu,
.button-cover,
.register-form,
.register-form p,
.register-background,
.footer,
.footer-bottom,
.footer-social a {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wrapper {
  transform: translateY(40px);
  transition: transform 0.3s ease-out;
}

body.loaded {
  opacity: 1;
}

body.loaded .wrapper {
  transform: translateY(0px);
}
/* 1.All end */

/* 2.Navbar start */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #A90C2C;
  color: white;
  padding: 10px 20px;
  flex-wrap: wrap;
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.brand img {
  height: 50px;
  margin-right: 10px;
}

.brand-text span {
  font-weight: bold;
  display: block;
}

.brand-text small {
  font-size: 14px;
}

.menu-toggle {
  font-size: 28px;
  color: white;
  background: none;
  border: none;
  display: none;
  cursor: pointer;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu li {
  display: flex;
  align-items: center;
}

.menu-text {
  color: white;
  text-decoration: none;
  position: relative;
}

.menu-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.menu-text:hover::after,
.menu-text.current-page::after {
  transform: scaleX(1);
}

.button-cover {
  background: #464646;
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  border: none;
  text-decoration: none;
}

.button-cover:hover {
  font-weight: bold;
}

.theme-toggle-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
}

/* Responsivity for navbar  */
@media (max-width: 872px) {
  .menu-toggle {
    display: block;
  }

  .button-cover {
    padding: 0px 0px !important;
    padding-left: 15px !important;
    background: none !important;
  }
  
  .nav-menu {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    width: 100%;
    background: #A90C2C;
    margin-top: 10px;
    padding-bottom: 10px;
    opacity: 0;
    transform: translateY(-10px); 
    transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
  }

  .nav-menu li a {
    display: block;
    padding: 12px 16px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    color: white;
    text-decoration: none;
  }

  .nav-menu.show {
    transform: translateY(0px); 
    max-height: 300px; 
    opacity: 1;
  }

  .theme-toggle-btn {
    padding-left: 10px;
  }
}
/* 2.Navbar End */

/* 3.Register Form Start */
.register-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 120px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../gambar/register-bg.JPG'); 
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: filter 0.3s ease;
}

.register-form {
  position: relative;
  z-index: 1;
  background-color: white;
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 600px;
  color: #333;
}

.register-form h2 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
  font-size: 28px;
}

.register-form p {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 25px;
  color: #555;
}

.form-group-inline {
  display: flex;
  gap: 20px;
  margin-bottom: 5px;
}

.form-group {
  display: flex;
  margin-bottom: 20px;
  justify-content:end;
  flex-direction: column;
  flex: 1;
}

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #aaa;
  border-radius: 8px;
  resize: none;
}

textarea {
  min-height: 100px;
}

button[type="submit"] {
  margin-top: 15px;
  padding: 12px 20px;
  background-color: #a90c2c; 
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: darkred;
}

/* Responsive Stack on Mobile */
@media (max-width: 600px) {
  .form-group-inline {
    flex-direction: column;
    gap: 0px;
  }
}
/* 3.Register Form End */

/* 4.Footer Start */
.footer {
  background-color: #a90c2c; 
  color: white;
  padding: 40px 20px 20px;
  font-family: 'Montserrat', sans-serif;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-left {
  text-align: center;
  justify-content: center;
}

.footer-logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-logo-title img {
  height: 40px;
  width: auto;
}

.footer-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-right {
  text-align: center;
}

.social-label {
  color: #f5d442; 
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-social {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-social a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #f5d442;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  font-size: 14px;
  color: #f0f0f0;
}

/* Responsivity for footer */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
  }

  .footer-left,
  .footer-right {
    flex: 1;
  }
}
/* 4.Footer End */

/* 5.Modal Start */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  margin: 15% auto;
  padding: 30px 50px;
  border-radius: 8px;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: slideDown 0.3s ease;
  color: black;
}

.modal-text {
  display:flex;
  flex-direction: column;
  gap:10px;
}

#modal-title-wrapper {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
}

.close {
  float: right;
  font-size: 22px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}

.close:hover {
  color: red;
}
/* 5.Modal End */


/* DARK MODE CHANGES */

/* 1.All Start */
body.dark-mode {
  background-color: #121212;
  color: white;
}
/* 1.All End */

/* 2.Navbar Start */
body.dark-mode .navbar {
  background-color: #1e1e1e;
}

body.dark-mode .nav-menu {
  background-color: #1e1e1e;
}

body.dark-mode .button-cover {
  background-color: #333;
}

/* 2.Navbar End*/

/* 3.Register Start */
body.dark-mode .register-background {
  filter: brightness(0.4); 
}

body.dark-mode .register-form {
  background-color: #2b2b2b;
  color: white;
}

body.dark-mode .register-form p {
  margin-bottom: 25px;
  color: white;
}
/* 3.Register End */

/* 3.Footer Start */
body.dark-mode .footer {
  background-color: #1e1e1e;
}

body.dark-mode .footer-bottom {
  color: #aaa;
}

body.dark-mode .footer-social a:hover {
  color: #f5d442;
}
/* 3.Footer End */



