/* ==============================================
   GLOBAL STYLES & RESETS
   ============================================== */
:root {
  --primary-color: #002b5b;
  --secondary-color: #0a2647;
  --accent-color: #fdd835;
  --text-color: #333;
  --light-bg: #f5f5f5;
  --white: #ffffff;
  --dark-overlay: rgba(10, 38, 71, 0.85);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--light-bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 2.5rem;
  position: relative;
  color: var(--primary-color);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-title::after {
  content: "";
  display: block;
  width: 5rem;
  height: 4px;
  background-color: var(--accent-color);
  margin: 0.625rem auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-yellow {
  background-color: var(--accent-color);
  color: #000;
}

.btn-yellow:hover {
  background-color: #ffe066;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ==============================================
   HEADER & NAVIGATION - NAVBAR DI KANAN
   ============================================== */
header {
  background: var(--primary-color);
  padding: 0.625rem 1.25rem;
  color: var(--white);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-left img {
  height: 2.5rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: bold;
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

nav ul li a.active {
  color: var(--accent-color);
}

nav ul li a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
}

.masuk-btn {
  background: var(--accent-color);
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.masuk-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* DROPDOWN MENU STYLES */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--primary-color);
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 5px;
  overflow: hidden;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: var(--secondary-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.875rem;
  height: 1.3125rem;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--white);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile dropdown styles */
@media (max-width: 1024px) {
  .header-right {
    gap: 1rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  nav a {
    font-size: 0.85rem;
  }
}

@media (max-width: 900px) {
  nav ul {
    gap: 0.8rem;
  }
  
  nav a {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .header-right {
    justify-content: flex-end;
  }
  
  .hamburger {
    display: flex;
    order: 2;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--primary-color);
    padding: 5rem 1.25rem 1.25rem;
    transition: all 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  
  nav.active {
    right: 0;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  }
  
  nav ul {
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .masuk-btn {
    margin: 1.25rem 0 0;
    order: 3;
  }
  
  .dropdown > a::after {
    content: "▼";
    font-size: 0.7rem;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .dropdown.active > a::after {
    transform: rotate(180deg);
  }
  
  .dropdown-content {
    position: static;
    display: none;
    background-color: transparent;
    box-shadow: none;
    margin-left: 1rem;
  }
  
  .dropdown-content a {
    padding: 10px 15px;
    border-left: 2px solid rgba(255,255,255,0.3);
  }

  body.no-scroll {
    overflow: hidden;
  }
  
  .dropdown-content a {
    padding-left: 30px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 0.5rem;
  }
  
  .header-left img {
    height: 2rem;
  }
  
  .masuk-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
  background: var(--secondary-color);
  padding: 12.5rem 0.625rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin-top: 3.75rem;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero-logo {
  height: 15.625rem;
  width: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-logo.animate {
  opacity: 1;
  transform: translateY(0);
}

.hero-text {
  display: flex;
  flex-direction: column;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: bold;
  text-align: left;
}

.hero-text span {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-text span:nth-child(1) {
  transition-delay: 0.2s;
}

.hero-text span:nth-child(2) {
  transition-delay: 0.4s;
}

.hero-text span:nth-child(3) {
  transition-delay: 0.6s;
}

.hero-text.animate span {
  opacity: 1;
  transform: translateY(0);
}

.hero-text span {
    opacity: 1 !important;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* ==============================================
   VISI MISI BANNER SECTION
   ============================================== */
.visi-misi-banner {
  position: relative;
  width: 100%;
  min-height: 31.25rem;
  overflow: hidden;
  margin: 2.5rem 0;
}

.banner-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-overlay);
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 3;
  padding: 3.75rem 1.25rem;
  color: var(--white);
  max-width: 62.5rem;
  margin: 0 auto;
}

.banner-content .section-title {
  color: var(--white);
}

.visi-box,
.misi-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5625rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5625rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.visi-box {
  transition-delay: 0.2s;
}

.misi-box {
  transition-delay: 0.4s;
}

.visi-box.animate,
.misi-box.animate {
  opacity: 1;
  transform: translateY(0);
}

.visi-box h3,
.misi-box h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.visi-box hr,
.misi-box hr {
  border: none;
  height: 2px;
  background-color: rgba(253, 216, 53, 0.5);
  margin-bottom: 0.9375rem;
}

.visi-box p {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.9375rem;
}

.visi-box ul,
.misi-box ol {
  padding-left: 1.125rem;
}

.visi-box li,
.misi-box li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* ==============================================
   CUSTOM MENU SECTION
   ============================================== */
.custom-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  background-color: var(--secondary-color);
  padding: 3.75rem 1.25rem;
  justify-items: center;
}

.custom-button {
  position: relative;
  background-color: #205295;
  width: 25rem;
  height: 6.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.custom-button:nth-child(1) {
  transition-delay: 0.2s;
}

.custom-button:nth-child(2) {
  transition-delay: 0.4s;
}

.custom-button:nth-child(3) {
  transition-delay: 0.6s;
}

.custom-button:nth-child(4) {
  transition-delay: 0.8s;
}

.custom-button.animate {
  opacity: 1;
  transform: translateY(0);
}

.custom-button:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.cut-shape {
  position: absolute;
  right: 0;
  top: 0;
  width: 4.6875rem;
  height: 100%;
  background-color: #e8f3ff;
  clip-path: polygon(100% 0%, 100% 100%, 30% 80%, 30% 20%);
  z-index: 1;
}

/* ==============================================
   TEAM SECTION WITH HORIZONTAL SCROLL
   ============================================== */
.team-section {
  padding: 3.75rem 1.25rem;
  background-color: var(--white);
  text-align: center;
  position: relative;
}

.team-scroll-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 2.5rem auto;
  max-width: 1200px;
}

.scroll-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  position: absolute;
  z-index: 10;
  opacity: 0.8;
}

.scroll-btn:hover {
  background-color: var(--accent-color);
  color: #0a3259;
  opacity: 1;
  transform: scale(1.1);
}

.scroll-left {
  left: 10px;
}

.scroll-right {
  right: 10px;
}

.team-container {
  display: flex;
  gap: 1.875rem;
  padding: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For IE and Edge */
  width: 100%;
  max-width: 100%;
}

.team-container::-webkit-scrollbar {
  display: none; /* For Chrome, Safari and Opera */
}

.team-card {
  background-color: var(--secondary-color);
  color: var(--white);
  min-width: 15.625rem;
  border-radius: 0.9375rem;
  padding: 1.25rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.team-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.team-card img {
  width: 9.375rem;
  height: 9.375rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.9375rem;
  border: 3px solid var(--accent-color);
}

.team-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.3125rem;
}

.team-card p {
  font-size: 0.875rem;
  opacity: 0.85;
}

.button-container {
  margin-top: 1.875rem;
}

.button-container .btn-yellow {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.button-container.animate .btn-yellow {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 0.5rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}


/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background-color: #0a3259;
  color: var(--white);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand img {
  height: 3.75rem;
  margin-right: 0.625rem;
}

.footer-brand h3 {
  margin: 0;
  font-size: 1.375rem;
}

.footer-brand h3 span {
  color: var(--accent-color);
}

.footer-top hr {
  width: 100%;
  border: 0.5px solid #ddd;
  margin-top: 0.625rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  min-width: 12.5rem;
  margin: 0.625rem;
}

.footer-column h4 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
  color: var(--accent-color);
}

.footer-column p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.625rem;
}

.footer-social {
  margin-top: 0.625rem;
  display: flex;
  gap: 0.5rem;
}

.footer-social img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  background-color: var(--accent-color);
  color: #0a3259;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: bold;
}

/* ==============================================
   RESPONSIVE STYLES
   ============================================== */
@media (max-width: 1024px) {
  .custom-menu {
    grid-template-columns: 1fr;
  }
  
  .custom-button {
    width: 100%;
    max-width: 25rem;
  }

  .scroll-btn {
    display: none;
  }

  .team-container {
    padding: 1.25rem 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 8rem 0.625rem;
  }
  
  .hero-logo {
    height: 5rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--primary-color);
    padding: 5rem 1.25rem 1.25rem;
    transition: all 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  
  nav.active {
    left: 0;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
  }
  
  nav ul {
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .masuk-btn {
    margin: 1.25rem 0 0;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-column {
    margin-bottom: 1.25rem;
  }

  .team-card {
    min-width: 12.5rem;
    text-align: left;
  }
}

.text-left {
  text-align: left !important;
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .visi-box,
  .misi-box {
    padding: 1.25rem;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    font-size: 1.8rem;
  }

  .team-card {
    min-width: 10rem;
  }
}