/* style.css */

/* Global Styles & Resets */
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main App Container */
.app-container {
  min-height: 100vh; /* min-h-screen */
  background-color: #333992; /* bg-[#333992] */
  color: #ffffff; /* text-white */
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Navbar Placeholder Styles */

.navbar-placeholder {
  height: 80px;
  background-color: rgba(223, 214, 89, 0.766);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed; /* Diubah dari sticky ke fixed */
  top: 0;
  left: 0; /* Tambahkan ini untuk memastikan header menempel di kiri */
  right: 0; /* Tambahkan ini untuk memastikan header memenuhi lebar layar */
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%; /* Pastikan lebar 100% */
}

body {
  padding-top: 80px; /* Sama dengan tinggi header */
  margin: 0;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%; /* Gunakan 100% dari parent */
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.5rem; /* Ukuran font lebih besar */
  font-weight: bold;
}

.logo-image {
  height: 50px; /* Tinggi logo tetap */
  width: auto;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.navbar-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-links a:hover {
  color: #ffc107; /* Warna saat hover */
}

/* Hero Placeholder Styles */

body {
  padding-top: 80px;
  margin: 0;
}

.navbar-placeholder {
  height: 80px;
  background-color: rgba(223, 214, 89, 0.766);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Desktop Menu */
.navbar-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.navbar-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-links a:hover {
  color: #ffc107;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .navbar-links {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 200px;
    background-color: rgba(223, 214, 89, 0.95);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(0);
    transform-origin: top right;
    transition: transform 0.2s ease;
    opacity: 0;
  }

  .navbar-links.active {
    transform: scale(1);
    opacity: 1;
  }

  .navbar-links li {
    width: 100%;
  }

  .navbar-links a {
    display: block;
    padding: 8px 0;
  }
}
/*==========================================================================================*/

/* Full-Screen Hero Section with Gradient & Rounded Images */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
  padding: 3rem 2rem;
  font-family: "Poppins", sans-serif;
  position: relative;
  min-height: 80vh;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1300px;
  margin: auto;
  width: 100%;
}

/* Text Section */
.hero-content {
  flex: 1;
  align-items: center;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: #ffc107;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-button {
  background: #ffc107;
  color: #2c3e50;
  padding: 1rem 2.4rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.hero-button:hover {
  background: #ff9800;
  transform: translateY(-3px);
}

/* Vertical Carousel */
.vertical-carousel {
  flex: 1;
  position: relative;
  width: 350px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-img {
  position: absolute;
  width: 70%;
  height: auto;
  object-fit: cover;
  transition: all 0.8s ease;
  border-radius: 1.2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
}

.carousel-img.active {
  opacity: 1;
  width: 80%;
  z-index: 3;
  filter: none;
  transform: translateY(0) scale(1);
}

.carousel-img.prev {
  opacity: 0.6;
  filter: blur(3px);
  transform: translateY(-150px) scale(0.8);
  z-index: 2;
}

.carousel-img.next {
  opacity: 0.6;
  filter: blur(3px);
  transform: translateY(150px) scale(0.8);
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    flex-wrap: wrap; /* agar tidak memaksa sejajar */
    text-align: center;
  }

  .hero-content {
    order: 1;
    margin-bottom: 3rem; /* tambah jarak ke gambar */
    padding-bottom: 3rem;
  }

  .vertical-carousel {
    order: 2;
    width: 230px;
    height: 320px; /* lebih kecil */
    margin: 0 auto 2rem auto;
  }

  .carousel-img.active {
    width: 70%;
  }

  .carousel-img.prev,
  .carousel-img.next {
    width: 50%;
    transform: translateY(-80px) scale(0.65);
  }

  .carousel-img.next {
    transform: translateY(80px) scale(0.65);
  }

  /* Konten bawah hero */
  .next-section {
    margin-top: 2rem; /* beri jarak tambahan */
  }
}

/*============================================================================================================*/

.hero-placeholder {
  padding-top: 5rem; /* py-20 */
  padding-bottom: 5rem; /* py-20 */
  background: linear-gradient(to right, #4a00e0, #8e2de2); /* Example gradient */
  text-align: center;
  color: white;
  border-bottom-left-radius: 2rem; /* Rounded corners for visual appeal */
  border-bottom-right-radius: 2rem;
  overflow: hidden; /* Ensure content stays within rounded corners */
}

.portal-section {
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, #4b25f3a2 0%, #7777ed 30%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* PORTAL SECTION STYLES */
.portal-section {
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, #4b25f3a2 0%, #7777ed 30%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.portal-title {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.5rem;
}

.portal-subtitle {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Grid Layout */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem 2rem;
}

/* Card Styles */
.portal-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.portal-card:hover .card-icon {
  transform: scale(1.1);
}

/* Card Color Variants */
.yellow-card .card-icon {
  background: #fff7d1;
  color: #ffc107;
}

.green-card .card-icon {
  background: #e6f7ec;
  color: #2e7d32;
}

.red-card .card-icon {
  background: #ffe5e5;
  color: #d32f2f;
}

.portal-card h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.portal-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Button Styles */
.portal-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;
  min-width: 180px;
  border: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.yellow-btn {
  background: #ffc107;
  color: #333;
}

.green-btn {
  background: #2e7d32;
  color: white;
}

.red-btn {
  background: #d32f2f;
  color: white;
}

.portal-btn:hover {
  opacity: 0.95;
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .portal-section {
    padding: 3rem 0.5rem;
  }

  .portal-title {
    font-size: 1.8rem;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem 2rem;
  }

  .portal-card {
    padding: 1.8rem;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .portal-card:not(:last-child) {
    margin-bottom: 1.5rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .portal-btn {
    padding: 0.7rem 1.5rem;
    min-width: 160px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .portal-section {
    padding: 2.5rem 0.5rem;
  }

  .portal-title {
    font-size: 1.6rem;
  }

  .portal-subtitle {
    font-size: 0.9rem;
  }

  .portal-grid {
    gap: 1.2rem;
    padding: 0 0.8rem 1.5rem;
  }

  .portal-card {
    padding: 1.5rem 1.2rem;
    height: auto;
  }

  .portal-card:not(:last-child) {
    margin-bottom: 1.2rem;
  }

  .portal-card h3 {
    font-size: 1.2rem;
  }

  .portal-card p {
    font-size: 0.9rem;
  }
}

/* Management Portal Styles */
.management-portal {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  position: relative;
  overflow: hidden;
}

.management-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.management-header {
  text-align: center;
  margin-bottom: 3rem;
}

.management-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.management-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #4a00e0;
  border-radius: 2px;
}

.management-subtitle {
  font-size: 1.2rem;
  color: #7f8c8d;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.management-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #4a00e0, #8e2de2);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(74, 0, 224, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #4a00e0;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  color: #4a00e0;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.feature-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.feature-link:hover {
  color: #8e2de2;
}

.feature-link:hover i {
  transform: translateX(5px);
}

/* Portal Access Section */
.portal-access {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
}

.portal-access h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.portal-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portal-btn i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.student-btn {
  background: #4a00e0;
  color: white;
}

.teacher-btn {
  background: #ffc107;
  color: #2c3e50;
}

.parent-btn {
  background: #2e7d32;
  color: white;
}

.portal-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .management-portal {
    padding: 3rem 1rem;
  }

  .management-title {
    font-size: 2rem;
  }

  .management-subtitle {
    font-size: 1rem;
  }

  .management-features {
    grid-template-columns: 1fr;
  }

  .portal-buttons {
    flex-direction: column;
    align-items: center;
  }

  .portal-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .management-title {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}
/*===============================----------===============================*/

/* Footer Placeholder Styles */
.footer-placeholder {
  background-color: #2a2f6b; /* Same as navbar for consistency */
  padding: 2rem 1rem; /* py-8 px-4 */
  text-align: center;
  margin-top: 2rem; /* mt-8 */
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  overflow: hidden;
}

.footer-content {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-placeholder p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffde59;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .features-placeholder h2,
  .data-analytics-placeholder h2,
  .portal-placeholder h2 {
    font-size: 2rem;
  }
}
