:root {
  --primary-color: #b91c1c; /* Dominant Red */
  --secondary-color: #991b1b; /* Darker Red */
  --accent-color: #475569; /* Gray Accent */
  --accent-hover: #334155;
  --text-color: #1e293b;
  --text-light: #f8fafc;
  --bg-color: #ffffff;
  --bg-light: #f1f5f9;
  --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --shadow: 0 10px 25px rgba(0,0,0,0.05);
  --shadow-hover: 0 15px 35px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--text-color); background-color: var(--bg-color); line-height: 1.6; overflow-x: hidden; }

/* Utilities */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.highlight { color: var(--accent-color); }
.bg-light { background-color: var(--bg-light); }
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; font-weight: 700; }
.section-title p { color: #666; font-size: 1.1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 30px; font-weight: 600; text-decoration: none; transition: var(--transition); border: 2px solid transparent; cursor: pointer; }
.btn-primary { background-color: var(--accent-color); color: white; }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(229, 62, 62, 0.3); color: white; }
.btn-secondary { background-color: rgba(255,255,255,0.1); color: white; border: 2px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.btn-secondary:hover { background-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.btn-large { padding: 15px 35px; font-size: 1.1rem; }
.btn-outline { background: transparent; border-color: white; color: white; }
.btn-outline:hover { background: white; color: var(--primary-color); }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: var(--transition); background: transparent; }
.navbar.scrolled { background: var(--primary-color); padding: 15px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: white; }
.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: var(--transition); opacity: 0.8; }
.nav-links a:hover { opacity: 1; color: var(--accent-color); }
.hamburger { display: none; cursor: pointer; }
.hamburger .bar { width: 25px; height: 3px; background-color: white; margin: 5px 0; transition: 0.3s; }
.navbar .cta-btn { padding: 8px 20px; font-size: 0.9rem; }

/* Hero */
.hero { min-height: 100vh; background: var(--gradient); display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 50px; z-index: 2; margin-top: 60px; }
.hero-content { flex: 1; color: white; }
.hero-content h1 { font-size: 3.2rem; line-height: 1.2; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 1.1rem; margin-bottom: 35px; opacity: 0.9; max-width: 500px; }
.hero-buttons { display: flex; gap: 15px; }
.hero-visual { flex: 1; position: relative; display: flex; justify-content: center; }
.glow-effect { position: absolute; width: 300px; height: 300px; background: rgba(229, 62, 62, 0.4); filter: blur(80px); border-radius: 50%; z-index: 0; }
.illustration-box { z-index: 1; width: 100%; max-width: 500px; }
.floating-anim { animation: float 6s ease-in-out infinite; }
.pulse-anim { animation: pulse 2s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.2); } 100% { opacity: 1; transform: scale(1); } }

/* Tentang */
.tentang-container { display: flex; align-items: center; gap: 50px; }
.tentang-text { flex: 1; }
.tentang-text h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; font-weight: 700; }
.tentang-text p { font-size: 1.1rem; color: #555; margin-bottom: 25px; }
.tentang-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.tentang-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--primary-color); }
.tentang-list i { color: var(--accent-color); font-style: normal; font-weight: bold; background: rgba(229, 62, 62, 0.1); width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.tentang-visual { flex: 1; display: flex; justify-content: center; }
.glass-card { background: linear-gradient(135deg, #f0f4f8, #e2e8f0); padding: 40px; border-radius: 20px; box-shadow: var(--shadow); position: relative; width: 100%; max-width: 400px; display: flex; justify-content: center; align-items: center; }

/* Keunggulan */
.keunggulan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: white; padding: 35px 30px; border-radius: 15px; box-shadow: var(--shadow); transition: var(--transition); text-align: center; border-bottom: 3px solid transparent; }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-bottom-color: var(--accent-color); }
.icon-wrapper { font-size: 3rem; margin-bottom: 20px; }
.card h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.25rem; font-weight: 600; }
.card p { color: #666; font-size: 0.95rem; }

/* Statistik */
.stat-section { background: var(--gradient); color: white; padding: 60px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item h2 { font-size: 3rem; display: inline-block; font-weight: 700; color: white; }
.stat-item span { font-size: 3rem; font-weight: 700; color: var(--accent-color); }
.stat-item p { font-size: 1.1rem; opacity: 0.9; margin-top: 5px; font-weight: 500; }

/* Galeri */
.galeri-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.galeri-item { position: relative; border-radius: 15px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.galeri-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.5s ease; }
/* Simulated images with techy gradients */
.bg-img-1 { background: linear-gradient(45deg, #1e3c72, #2a5298); }
.bg-img-2 { background: linear-gradient(45deg, #2b5876, #4e4376); }
.bg-img-3 { background: linear-gradient(45deg, #141e30, #243b55); }
.bg-img-4 { background: linear-gradient(45deg, #0f2027, #203a43, #2c5364); }
.bg-img-5 { background: linear-gradient(45deg, #232526, #414345); }
.galeri-item:hover .galeri-img { transform: scale(1.1); }
.galeri-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11, 28, 61, 0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.galeri-item:hover .galeri-overlay { opacity: 1; }
.galeri-overlay span { color: white; font-weight: 600; font-size: 1.1rem; transform: translateY(20px); transition: var(--transition); }
.galeri-item:hover .galeri-overlay span { transform: translateY(0); }

/* Materi */
.materi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.materi-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.materi-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.materi-img { width: 100%; height: 160px; background-size: cover; background-position: center; background-color: #f1f5f9; }
.materi-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.materi-content h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-color); }
.materi-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; flex: 1; }
.materi-content .btn { text-align: center; width: 100%; }

/* Karier */
.karier-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    max-width: 1100px; 
    margin: 0 auto 30px auto; 
}
.karier-card { 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px);
    padding: 30px; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border: 1px solid rgba(255,255,255,0.5);
    border-top: 5px solid var(--accent-color); 
    transition: all 0.3s ease; 
    display: flex;
    flex-direction: column;
    text-align: left;
}
.karier-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
    border-top-color: var(--primary-color);
}
.karier-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.1), rgba(229, 62, 62, 0.05));
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 1px solid rgba(229, 62, 62, 0.2);
}
.karier-card h3 { 
    color: var(--primary-color); 
    font-size: 1.3rem; 
    margin-bottom: 12px; 
    font-weight: 700; 
}
.karier-card p { 
    color: #555; 
    line-height: 1.6;
}

/* Testimoni */
.testimoni-slider { 
    position: relative; 
    max-width: 900px; 
    margin: 0 auto; 
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimoni-slide { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 100%; 
    opacity: 0; 
    transform: translate(-50%, -40%) scale(0.9); 
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
    text-align: center; 
    pointer-events: none; 
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    box-sizing: border-box;
}
.testimoni-slide.active { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1); 
    pointer-events: auto; 
    z-index: 2;
}
.stars { color: #f5b041; font-size: 1.8rem; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(245, 176, 65, 0.3); }
.testimoni-slide p { font-size: 1.25rem; font-style: italic; margin-bottom: 25px; color: #333; line-height: 1.6; }
.testimoni-slide h4 { font-size: 1.2rem; color: var(--primary-color); font-weight: 700; margin-bottom: 5px; }
.testimoni-slide span { font-size: 0.95rem; color: #777; font-weight: 500; display: block; }
.slider-controls { display: flex; justify-content: center; gap: 20px; margin-top: 40px; position: relative; z-index: 5; }
.slide-btn { background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.05); width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.08); cursor: pointer; color: var(--primary-color); font-size: 1.2rem; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.slide-btn:hover { background: var(--primary-color); color: white; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

@media (max-width: 768px) {
    .testimoni-slider { min-height: 380px; }
    .testimoni-slide { padding: 30px 20px; width: 95%; }
    .testimoni-slide p { font-size: 1.1rem; }
}

/* FAQ */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { background: white; margin-bottom: 15px; border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.accordion-header { width: 100%; padding: 20px; text-align: left; background: none; border: none; font-size: 1.1rem; font-weight: 600; color: var(--primary-color); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.accordion-header .icon { font-size: 1.5rem; transition: var(--transition); color: var(--accent-color); font-weight: 300; }
.accordion-item.active .icon { transform: rotate(45deg); }
.accordion-content { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-item.active .accordion-content { padding-bottom: 20px; max-height: 200px; }
.accordion-content p { color: #555; line-height: 1.6; }

/* CTA Penutup */
.cta-section { background: var(--gradient); padding: 100px 0; text-align: center; color: white; position: relative; overflow: hidden; }
.cta-box { position: relative; z-index: 2; }
.cta-box h2 { font-size: 2.5rem; margin-bottom: 20px; font-weight: 700; line-height: 1.3; }
.cta-box p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; }

/* Footer */
.footer { background: #071226; color: rgba(255,255,255,0.7); padding: 80px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-col h3 { color: white; font-size: 1.5rem; margin-bottom: 20px; }
.footer-col h4 { color: white; font-size: 1.2rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--accent-color); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.social-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition); }
.social-links a:hover { color: var(--accent-color); }
.map-link { color: white; text-decoration: none; border-bottom: 1px solid var(--accent-color); padding-bottom: 2px; transition: var(--transition); }
.map-link:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 992px) {
  .hero-container, .tentang-container { flex-direction: column; text-align: center; }
  .hero-content h1 { font-size: 2.8rem; }
  .hero-content p { margin: 0 auto 30px; }
  .hero-buttons { justify-content: center; }
  .tentang-list { text-align: left; }
}
@media (max-width: 768px) {
  .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: var(--primary-color); flex-direction: column; gap: 0; text-align: center; max-height: 0; overflow: hidden; transition: var(--transition); }
  .nav-links.active { max-height: 400px; padding: 20px 0; }
  .nav-links li { padding: 15px 0; }
  .navbar .cta-btn { display: none; }
  .hamburger { display: block; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-content h1 { font-size: 2.2rem; }
  .section { padding: 60px 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.show {
  display: block;
  opacity: 1;
}
.lightbox-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1000px;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  object-fit: contain;
  max-height: 70vh;
}
.lightbox.show .lightbox-content {
  transform: scale(1);
}
#lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  text-align: center;
  color: #ccc;
  padding: 20px 0;
  font-size: 1.3rem;
  font-weight: 500;
}
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 40px;
  color: #f1f1f1;
  font-size: 45px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}
.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--accent-color);
  text-decoration: none;
  cursor: pointer;
}

/* =========================================
   Hero Carousel Slider
   ========================================= */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 600px; /* Default desktop height */
  overflow: hidden;
  background-color: #0f172a;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Gelap transparan */
  z-index: 2;
}

.carousel-content {
  position: relative;
  z-index: 3;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  text-align: left;
}

.carousel-slide .slide-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease-out 0.3s;
}

.carousel-slide .slide-desc {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 600px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease-out 0.5s;
}

.carousel-slide .btn {
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease-out 0.7s;
  display: inline-block;
}

/* Animasi Text Aktif */
.carousel-slide.active .slide-title,
.carousel-slide.active .slide-desc,
.carousel-slide.active .btn {
  transform: translateY(0);
  opacity: 1;
}

/* Custom Buttons CTA */
.btn-slider-primary {
  background-color: #2563eb;
  color: white;
  padding: 15px 30px;
  border-radius: 8px; /* Border radius modern */
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}
.btn-slider-primary:hover {
  background-color: #1e40af;
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.6);
  color: white;
}

.btn-slider-secondary {
  background-color: transparent;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid white;
  cursor: pointer;
  margin-left: 10px;
}
.btn-slider-secondary:hover {
  background-color: white;
  color: #0f172a;
}

/* Navigasi Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-control:hover {
  background: rgba(255, 255, 255, 0.4);
}
.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.carousel-indicators .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-indicators .dot.active {
  background: #2563eb;
  width: 30px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-carousel {
    height: 100vh; /* Full screen on mobile */
    min-height: 500px;
  }
  .carousel-slide .slide-title { font-size: 2.2rem; }
  .carousel-slide .slide-desc { font-size: 1rem; }
  .btn-slider-secondary { margin-left: 0; margin-top: 15px; }
  .carousel-slide .btn { width: 100%; text-align: center; }
  .carousel-content { padding-top: 60px; text-align: center; }
  
  .carousel-control { width: 40px; height: 40px; font-size: 18px; }
  .carousel-control.prev { left: 10px; }
  .carousel-control.next { right: 10px; }
}
