/* Anak Agung Ngurah Krisna Artha Wibawa 240040075 BB244 */

:root {
  --p-primary: #003366;
  --p-dark: #020617;
  --p-gold: #fbbf24;
  --p-cyan: #06b6d4;
  --p-gray: #f1f5f9;
}

body {
  background-color: #fff;
  padding-top: 90px;
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-x: hidden;
}

/* --- 1. HERO SECTION --- */
.profile-hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: white;
  background-image: url("../src/hero-profil.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 900px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--p-gold);
  color: var(--p-gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  opacity: 0.7;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* --- 2. ANIMATED COUNTER (STATISTIK) --- */
.stats-section {
  background: var(--p-primary);
  color: white;
  padding: 60px 0;
  position: relative;
  z-index: 3;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.2);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
  box-sizing: border-box;
}

.stat-item {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}
.stat-item:last-child {
  border-right: none;
}

.counter-wrapper {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--p-gold);
  font-family: "Playfair Display", serif;
  line-height: 1.2;
  word-break: keep-all;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 968px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-item {
    border-right: none;
  }

  .counter-wrapper {
    font-size: 2.8rem;
  }
}

/* HP */
@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .counter-wrapper {
    font-size: 2.4rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }
}

/* --- 3. IDENTITY (VISI MISI) --- */
.identity-section {
  padding: 100px 20px;
  background: #fff;
}
.container-custom {
  max-width: 1200px;
  margin: 0 auto;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-tag {
  color: var(--p-primary);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
  font-size: 0.9rem;
}
.section-title {
  font-size: 2.8rem;
  color: var(--p-dark);
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: "Playfair Display", serif;
}
.section-desc {
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.vm-grid {
  display: grid;
  gap: 20px;
}
.vm-card {
  background: var(--p-gray);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--p-primary);
  transition: 0.3s;
}
.vm-card:hover {
  transform: translateX(10px);
  background: #e0f2fe;
}
.vm-card h4 {
  margin: 0 0 10px 0;
  color: var(--p-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.vm-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

.identity-img {
  position: relative;
}
.identity-img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 30px 30px 0 var(--p-gray);
}
.float-badge {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--p-primary);
  color: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 250px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* --- 4. RECTOR & LEADERSHIP --- */
.rector-section {
  background: var(--p-gray);
  padding: 100px 20px;
}
.rector-box {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
}
.rector-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rector-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote-icon {
  font-size: 3rem;
  color: var(--p-gold);
  margin-bottom: 20px;
}
.quote-text {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--p-dark);
  margin-bottom: 30px;
  line-height: 1.6;
  font-family: "Playfair Display", serif;
}
.rector-name h4 {
  font-size: 1.5rem;
  color: var(--p-primary);
  margin: 0;
}
.rector-name span {
  color: #666;
}

/* --- 5. FACILITIES (MASONRY GRID) --- */
.facilities-section {
  padding: 100px 20px;
}
.fac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 20px;
  margin-top: 50px;
}

.fac-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}
.fac-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.fac-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.fac-item.large {
  grid-column: span 2;
  grid-row: span 2;
}
.fac-item.tall {
  grid-row: span 2;
}

.fac-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: 0.3s;
}
.fac-item:hover .fac-overlay {
  transform: translateY(0);
  opacity: 1;
}
.fac-overlay h4 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--p-gold);
}

/* --- 6. CTA SECTION --- */
.cta-section {
  padding: 100px 20px;
  background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), url("../src/cta.jpg");
  background-size: cover;
  background-attachment: fixed;
  text-align: center;
  color: white;
}
.cta-content h2 {
  font-size: 3rem;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
}
.btn-gold {
  background: var(--p-gold);
  color: var(--p-primary);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: 0.3s;
  display: inline-block;
  margin-top: 30px;
}
.btn-gold:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(251, 191, 36, 0.4);
  background: white;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .hero-title {
    font-size: 3rem;
  }
  .stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .stat-item {
    border: none !important;
    border-right: none !important;
  }
  .split-layout {
    grid-template-columns: 1fr;
  }
  .identity-img {
    order: -1;
    margin-bottom: 50px;
  }
  .rector-box {
    grid-template-columns: 1fr;
  }
  .rector-img-col {
    height: 300px;
  }
  .fac-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .fac-item.large,
  .fac-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}
