@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --primary: #11101d;
  --primary-light: #1d1b31;
  --secondary: #e4e9f7;
  --accent: #007bff;
  --accent-hover: #007bff;
  --glass: rgba(255, 255, 255, 0.15);
  --glass-dark: rgba(0, 0, 0, 0.4);
  --text-main: #ffffff;
  --text-muted: #ddd;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
  font-family: "Outfit", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--text-main);
  background: var(--secondary);
}

.body-kehadiran,
.body-login {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(/images/BGuptp2tk.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}



/* Navbar Mobile Sidebar Styling */
@media (max-width: 991px) {
  .offcanvas {
    background: #fff !important;
    border-left: none !important;
    width: 100% !important;
    height: 100vh !important;
  }
  .offcanvas-body {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  .offcanvas .navbar-nav {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .offcanvas-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
  .offcanvas-title {
    color: var(--primary);
    font-weight: 700;
  }
  .offcanvas .nav-link {
    font-size: 1.6rem;
    color: var(--primary) !important;
    margin: 15px 0 !important;
    text-align: center;
    width: 100%;
    font-weight: 700;
    padding: 10px;
  }
  .offcanvas .nav-link:hover {
    color: var(--accent) !important;
    padding-left: 10px;
  }
}

/* hero section */
.header-text {
  min-height: 90vh;
  padding: 120px 0 80px 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)),
    url(/images/LTSA.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.text-content {
  max-width: 800px;
  width: 90%;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow);
  animation: fadeInDown 1s ease-out;
}

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

.text-content h3 {
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 10px;
  color: var(--accent);
}

.text-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.text-content h1 img {
  margin-bottom: 10px;
}

.text-content p {
  width: 85%;
  margin: 0 auto 30px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.text-content a.btn {
  background: var(--accent);
  color: #fff;
  padding: 14px 40px;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
  transition: all 0.3s ease;
}

.text-content a.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
  background: #fff;
  color: var(--accent);
}

/* Card Fitur */
.wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 80px 20px;
  background: var(--secondary);
}

.single-card {
  position: relative;
  width: 320px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.img-area {
  height: 220px;
  position: relative;
}

.img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 16, 29, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.single-card:hover .overlay {
  opacity: 1;
}

.overlay a.btn-login {
  padding: 12px 30px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.single-card:hover .overlay a.btn-login {
  transform: translateY(0);
}

.info {
  padding: 25px;
  text-align: center;
}

.info h4 {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.info p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Halaman Login */
.form-login-container {
  width: 100%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 50px 40px;
  box-shadow: var(--shadow);
  margin: auto;
}

.form-login-container h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px !important;
  color: #fff;
}

.form-group label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control-tabung {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 15px !important;
  padding: 12px 20px !important;
  color: #fff !important;
  transition: all 0.3s ease;
}

.form-control-tabung option {
  background: #fff !important;
  color: #333 !important;
}

.form-control-tabung:focus {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 15px rgba(169, 253, 177, 0.2) !important;
}

.form-control-tabung::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.login-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 15px;
  border-radius: 15px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.login-btn:hover, .login-btn:active {
  background: #fff;
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .header-text {
    height: 60vh;
  }

  .text-content {
    padding: 25px;
    margin: 0 15px;
  }

  .text-content h1 {
    font-size: 2.2rem;
  }

  .text-content p {
    width: 100%;
    font-size: 0.9rem;
  }

  .form-login-container {
    width: 90%;
    padding: 35px 25px;
  }
}
