/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== IMPROVED HEADER STYLES ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.4s ease;
  background: transparent;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 45px;
  width: auto;
  transition: all 0.3s ease;
}

/* Main Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffcc00;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover {
  color: #ffcc00;
}

nav a.active {
  color: #ffcc00;
}

/* Contact Button */
.contact-btn {
  background: #ffcc00 !important;
  color: #00224d !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  border: 2px solid #ffcc00 !important;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3) !important;
  display: inline-block !important;
}

.contact-btn::after {
  display: none !important;
}

.contact-btn:hover {
  background: #ffaa00 !important;
  border-color: #ffaa00 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4) !important;
  color: #00224d !important;
}

/* Scrolled State */
header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

header.scrolled nav a {
  color: #001f3f;
}

header.scrolled nav a:hover {
  color: #00224d;
}

header.scrolled nav a.active {
  color: #00224d;
}

header.scrolled .contact-btn {
  background: #00224d !important;
  color: white !important;
  border: 2px solid #00224d !important;
  box-shadow: 0 4px 15px rgba(0, 34, 77, 0.3) !important;
}

header.scrolled .contact-btn:hover {
  background: #001f3f !important;
  border-color: #001f3f !important;
  color: white !important;
  box-shadow: 0 6px 20px rgba(0, 34, 77, 0.4) !important;
}

/* ===== HAMBURGER MENU STYLES ===== */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

header.scrolled .hamburger-line {
  background-color: #001f3f;
}

/* Hamburger Animation */
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 900px) {
  .hamburger-menu {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(0, 34, 77, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 0 0 0;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  }
  
  nav.active {
    right: 0;
  }
  
  nav a {
    display: block;
    width: 100%;
    padding: 18px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    text-align: left;
    transition: all 0.3s ease;
  }
  
  nav a::after {
    display: none;
  }
  
  nav a:hover {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
    padding-left: 35px;
  }
  
  nav a.active {
    background: rgba(255, 204, 0, 0.1);
    color: #ffcc00;
    border-left: 4px solid #ffcc00;
  }
  
  .contact-btn {
    margin: 25px 30px 0;
    width: calc(100% - 60px);
    text-align: center;
    border-radius: 8px !important;
    padding: 12px 20px !important;
  }
  
  .contact-btn:hover {
    transform: translateY(-2px) !important;
    padding-left: 20px !important;
  }
  
  /* Scrolled state for mobile menu */
  header.scrolled nav {
    background: rgba(255, 255, 255, 0.98);
  }
  
  header.scrolled nav a {
    color: #001f3f;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  header.scrolled nav a:hover {
    background: rgba(0, 34, 77, 0.05);
    color: #00224d;
  }
  
  header.scrolled nav a.active {
    background: rgba(0, 34, 77, 0.08);
    color: #00224d;
    border-left: 4px solid #00224d;
  }
  
  /* Overlay untuk background saat menu terbuka */
  nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
  }
  
  nav.active::before {
    opacity: 1;
    visibility: visible;
  }
}

/* ===== LARGE SCREEN OPTIMIZATIONS (1201px and above) ===== */
@media (min-width: 1201px) {
  .header-container {
    padding: 0 60px;
  }
  
  nav {
    gap: 40px;
  }
  
  nav a {
    font-size: 18px;
  }
  
  .contact-btn {
    padding: 14px 28px !important;
    font-size: 16px !important;
  }
  
  .logo img {
    height: 55px;
  }
}

/* ===== EXTRA LARGE SCREEN OPTIMIZATIONS (1600px and above) ===== */
@media (min-width: 1600px) {
  .header-container {
    max-width: 1600px;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 25px;
  }
  
  nav {
    gap: 20px;
  }
  
  nav a {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
  }
  
  .logo img {
    height: 40px;
  }
  
  nav a {
    font-size: 15px;
    padding: 16px 25px;
  }
  
  .contact-btn {
    margin: 20px 25px 0;
    width: calc(100% - 50px);
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 15px;
  }
  
  .logo img {
    height: 35px;
  }
  
  nav {
    width: 100%;
  }
  
  nav a {
    padding: 15px 20px;
    font-size: 15px;
  }
  
  .contact-btn {
    margin: 20px 20px 0;
    width: calc(100% - 40px);
    padding: 10px 16px !important;
    font-size: 14px !important;
  }
}

/* ===== ANIMATION UTILITIES ===== */
.slide-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-animation.animate {
  opacity: 1;
  transform: translateY(0);
}

.content-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.content-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER STYLES ===== */
.footer {
  width: 100%;
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0 40px;
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
  text-align: left;
  border-top: 3px solid #00224D;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-bottom: 50px;
}

.footer-column {
  flex: 1;
  min-width: 220px;
  padding: 0 25px;
  position: relative;
}

/* Kolom pertama (logo) */
.footer-column:first-child {
  flex: 1.2;
  min-width: 250px;
}

.footer-column:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    #e0e0e0 20%, 
    #e0e0e0 80%, 
    transparent 100%);
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 50px;
  width: auto;
  max-width: 200px;
}

.footer-column h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #00224D;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-subtitle {
  font-size: 0.9rem;
  color: #ffcc00;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-column p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 10px;
}

.footer-column strong {
  color: #00224D;
  display: block;
  margin-bottom: 5px;
}

.footer-link {
  color: #00224D;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #ffcc00;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #666666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: block;
}

.footer-links a:hover {
  color: #00224D;
  transform: translateX(5px);
}

.footer-bottom-links {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.footer-bottom-links a {
  color: #666666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #00224D;
}

/* Contact info links */
.contact-info a {
  color: #666666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  color: #00224D;
}

/* Footer Bottom */
.footer-bottom {
  width: 90%;
  max-width: 1400px;
  margin: 30px auto 0;
  text-align: center;
  color: #999999;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #666666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-bottom a:hover {
  color: #00224D;
}

/* ===== ANIMATIONS UNTUK FOOTER ===== */
.footer.slide-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer.slide-animation.animate {
  opacity: 1;
  transform: translateY(0);
}

.footer .slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer.slide-animation.animate .slide-up,
.footer .slide-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations untuk footer columns */
.footer.slide-animation.animate .slide-up:nth-child(1) { transition-delay: 0.1s; }
.footer.slide-animation.animate .slide-up:nth-child(2) { transition-delay: 0.2s; }
.footer.slide-animation.animate .slide-up:nth-child(3) { transition-delay: 0.3s; }
.footer.slide-animation.animate .slide-up:nth-child(4) { transition-delay: 0.4s; }

/* ===== LARGE SCREEN FOOTER OPTIMIZATIONS ===== */
@media (min-width: 1201px) {
  .footer {
    padding: 100px 0 60px;
  }
  
  .footer-container {
    max-width: 1400px;
  }
  
  .footer-column h3 {
    font-size: 1.4rem;
  }
  
  .footer-column p,
  .footer-links a,
  .footer-link {
    font-size: 1rem;
  }
  
  .footer-logo img {
    height: 60px;
  }
}

@media (min-width: 1600px) {
  .footer-container {
    max-width: 1600px;
  }
}

/* ===== RESPONSIVE DESIGN FOOTER ===== */
@media (max-width: 1024px) {
  .footer-container {
    gap: 30px;
  }
  
  .footer-column {
    min-width: 200px;
  }
}

@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-column {
    padding: 0;
    text-align: center;
  }

  .footer-column:first-child {
    flex: 1;
  }

  .footer-column:not(:last-child)::after {
    display: none;
  }

  .footer-links a:hover {
    transform: none;
  }

  .footer-logo {
    text-align: center;
    margin-bottom: 30px;
  }

  .footer-logo img {
    height: 45px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 0 30px;
  }
  
  .footer-container {
    width: 95%;
  }
  
  .footer-column h3 {
    font-size: 1.1rem;
  }
  
  .footer-column p,
  .footer-links a,
  .footer-link {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 50px 0 20px;
  }
  
  .footer-column {
    min-width: 100%;
  }
  
  .footer-column h3 {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .footer-subtitle {
    font-size: 0.8rem;
  }
  
  .footer-column p,
  .footer-links a,
  .footer-link {
    font-size: 0.8rem;
  }

  .footer-logo img {
    height: 35px;
  }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles untuk aksesibilitas */
nav a:focus,
.contact-btn:focus,
.hamburger-menu:focus {
  outline: 2px solid #ffcc00;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  header.scrolled {
    background: #ffffff;
    border-bottom: 2px solid #000000;
  }
  
  nav a {
    font-weight: 700;
  }
}