/* =============================================
   ROOT VARIABLES
   ============================================= */
:root {
  --main:    #5fc3e4;
  --bg-soft: #f7fcff;
  --bg-sky:  #eaf6fb;
}

body {
  background-color: var(--bg-soft) !important;
  overflow-x: hidden;
}

/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
.section {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(60px);
  transition: all 0.9s ease;
}

.section.show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* =============================================
   1. HERO — Welcome + Box SiConnect
   ============================================= */
.hero-section {
  padding: 100px 5% 80px 5%;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-sky));
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.hero-top {
  width: 100%;
  max-width: 1200px;
  text-align: left;
}

.hero-top h1 {
  margin-bottom: 40px;
}

/* Wrapper supaya box + logo bisa berdampingan */
.siconnect-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  width: 100%;
  max-width: 1200px;
}

/* Box putih Apa itu SiConnect */
.siconnect-box {
  flex: 1;
  background: #ffffff;
  padding: 60px;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.siconnect-text h2 {
  color: var(--main);
  margin-bottom: 20px;
  font-size: 32px;
}

/* Logo di sebelah kanan box (inline, bukan absolute) */
.siconnect-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.siconnect-image img {
  width: 250px;
  height: auto;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.20));
  pointer-events: none;
}

/* =============================================
   2. APA ITU SIJA + VISI MISI + VIDEO
   ============================================= */
.container {
  display: flex;
  gap: 60px;
  padding: 100px 5%;
  background: linear-gradient(180deg, var(--bg-sky), var(--bg-soft));
  max-width: 100%;
  justify-content: center;
}

/* Kolom kiri */
.content-left {
  flex: 1;
  max-width: 700px;
}

.content-left h2 { margin-top: 0; margin-bottom: 16px; }

/* Kolom kanan (video) */
.content-right {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.box { width: 100%; }

.box iframe {
  width: 100%;
  height: 250px;
  border-radius: 18px;
  border: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

/* Visi & Misi */
.visi-misi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.visi,
.misi {
  background: #ffffff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.visi h2,
.misi h2 {
  color: var(--main);
  margin-bottom: 12px;
}

.misi ol {
  padding-left: 20px;
  line-height: 1.8;
}

/* =============================================
   TYPOGRAPHY — PARAGRAF UMUM
   ============================================= */
.content-left p,
.visi p,
.misi li,
.siconnect-text p {
  text-align: justify;
  line-height: 1.8;
  color: #333;
  font-size: 18px;
}

.mapel-desc {
  line-height: 1.8;
  color: #333;
  font-size: 18px;
}

/* =============================================
   3. MAPEL KEJURUAN
   ============================================= */
.mapel-section {
  padding: 100px 5%;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-sky));
  text-align: center;
}

.mapel-section h2 { margin-bottom: 16px; }

.mapel-desc {
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mapel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.mapel-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border-left: 6px solid var(--main);
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
}

.mapel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
}

/* =============================================
   5. TEAM / SISWA
   ============================================= */
.siswa-section {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 100px 5%;
  background: #ffffff;
  overflow: hidden;
}

.siswa-card {
  position: relative;
  z-index: 1;
  width: 220px;
  padding: 26px;
  text-align: center;
  background: linear-gradient(180deg, #f9fdff, #eaf6fb);
  border-radius: 18px;
  border: 1px solid rgba(31, 111, 178, 0.25);
  box-shadow: 0 12px 28px rgba(31, 111, 178, 0.15);

  opacity: 0;
  filter: blur(8px);
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.siswa-card.show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.siswa-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 36px rgba(31, 111, 178, 0.25);
}

.siswa-card h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.siswa-card .kelas {
  font-size: 1rem;
  color: var(--primary);
}

/* Foto parallelogram */
.foto-wrapper {
  width: 160px;
  height: 220px;
  margin: 0 auto 18px;
  background: #eaf6fb;
  transform: skew(-12deg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.foto-jajang {
  width: 100%;
  height: 100%;
  transform: skew(12deg) scale(1.12);
}

.foto-jajang img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* =============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .siconnect-image img {
    width: 260px;
  }

  .content-right {
    width: 340px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================= */
@media (max-width: 768px) {
  /* Hero */
  .hero-section {
    padding: 80px 16px 60px 16px;
    align-items: flex-start;
  }

  .hero-top h1 {
    font-size: 1.8rem;
  }

  /* Box + logo stack vertikal */
  .siconnect-wrapper {
    flex-direction: column;
    gap: 28px;
  }

  .siconnect-box {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .siconnect-text h2 {
    font-size: 22px;
  }

  .siconnect-text p {
    font-size: 15px;
  }

  .siconnect-image img {
    width: 200px;
  }

  /* SIJA section */
  .container {
    flex-direction: column;
    padding: 60px 16px;
    gap: 36px;
    align-items: stretch;
  }

  .content-left {
    max-width: 100%;
  }

  .content-right {
    width: 100%;
  }

  .box iframe {
    height: 200px;
  }

  .visi-misi {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  /* Mapel */
  .mapel-section {
    padding: 60px 16px;
  }

  .mapel-grid {
    grid-template-columns: 1fr;
  }

  /* Siswa */
  .siswa-section {
    flex-direction: column;
    align-items: center;
    padding: 60px 16px;
    gap: 24px;
  }

  .siswa-card {
    width: 100%;
    max-width: 300px;
  }

  /* Typography */
  .content-left p,
  .visi p,
  .misi li,
  .siconnect-text p,
  .mapel-desc {
    font-size: 15px;
  }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
  .hero-top h1 {
    font-size: 1.5rem;
  }

  .siconnect-box {
    padding: 22px 16px;
  }

  .mapel-card {
    font-size: 14px;
    padding: 18px;
  }
}