:root {
  --primary-color: #052f77;
  --primary2-color: #649af8;
  --secondary-color: #1e3a6f;
  --accent-color: #f3753a;
  --accent-light: #f3753a;
  --text-dark: #2c3e50;
  --text-light: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: #f8f9fa;
  padding-top: 70px; /* Menghindari konten tertutup navbar */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

/* Preloader - Optimized */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.preloader.hide {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scroll Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10000;
}

.progress-bar {
  height: 100%;
  background: var(--accent-color);
  width: 0%;
  transition: width 0.2s ease;
}

/* Navbar */
.navbar {
  background: rgba(15, 36, 71, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 12px 0;
  z-index: 1000;
}

.navbar.scrolled {
  padding: 8px 0;
  background: rgba(15, 36, 71, 0.98) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light) !important;
  display: flex;
  align-items: center;
}

.navbar-brand span {
  color: var(--accent-color);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  margin: 0 8px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 70%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-light) !important;
}

/* Dynamic Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(
      135deg,
      rgba(15, 36, 71, 0.9),
      rgba(30, 58, 111, 0.9)
    ),
    url("../img/main.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--text-light);
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(243, 117, 58, 0.3);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

.electric-particle {
  position: absolute;
  width: 2px;
  height: 20px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent-color),
    transparent
  );
  animation: electricPulse 2s infinite;
}

@keyframes electricPulse {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-20px);
  }
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 15px;
  opacity: 0;
  animation: fadeInLeft 1s ease 0.3s forwards;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-description {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-buttons {
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

.btn-primary-custom {
  background: var(--accent-color);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(243, 117, 58, 0.3);
  margin: 0 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.btn-primary-custom:hover:before {
  left: 100%;
}

.btn-primary-custom:hover {
  background: #e56430;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 117, 58, 0.4);
}

.btn-outline-custom {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 10px 28px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  background: transparent;
  margin: 0 8px;
}

.btn-outline-custom:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 117, 58, 0.3);
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
  background: var(--primary-color);
  color: var(--text-light);
}

.stat-card {
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  opacity: 0.8;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* Why Choose Us Section */
.why-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.why-card {
  background: white;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.why-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.why-card:hover:before {
  transform: scaleX(1);
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.why-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.why-card:hover .why-icon {
  background: var(--accent-color);
  transform: scale(1.1);
}

.why-icon i {
  font-size: 1.8rem;
  color: white;
}

.why-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.why-description {
  color: #6c757d;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-title2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary2-color);
  margin-bottom: 15px;
}

.section-description {
  font-size: 1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.service-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover:before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--accent-color);
  transform: scale(1.05);
}

.service-icon i {
  font-size: 1.8rem;
  color: white;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.service-description {
  color: #6c757d;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  margin: 5px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color);
  color: white;
}

.portfolio-item {
  width: 218px;
  height: 300px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
  position: relative;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 218px);
  gap: 10px;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 36, 71, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 15px;
  box-sizing: border-box;
}


.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}


.portfolio-title {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.portfolio-category {
  color: var(--accent-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin: 0;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--text-light);
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-info h5 {
  margin: 0;
  font-size: 1.1rem;
}

.author-info p {
  margin: 0;
  opacity: 0.8;
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  opacity: 0.2;
  color: var(--accent-color);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent-color);
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-item:hover .contact-icon {
  background: var(--accent-color);
}

.contact-icon i {
  font-size: 1.3rem;
  color: white;
}

.contact-info h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.contact-info p,
.contact-info a {
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  margin: 0;
}

.contact-info a:hover {
  color: var(--accent-color);
}

/* Sponsors Section */
.sponsors-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  overflow: hidden;
}

.sponsors-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
  height: 100px;
}

.sponsors-track {
  display: flex;
  animation: scroll 30s linear infinite;
  width: fit-content;
}

.sponsor-item {
  flex: 0 0 auto;
  margin: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  transition: all 0.3s ease;
}

.sponsor-item:hover {
  transform: scale(1.3);
}

.sponsor-item img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.sponsors-slider:hover .sponsors-track {
  animation-play-state: paused;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-logo span {
  color: var(--accent-color);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(243, 117, 58, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(243, 117, 58, 0.4);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .contact-card {
    padding: 30px 20px;
  }

  .footer-logo {
    font-size: 1.4rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}