/* ===============================
   KROMORA HOME - selaras DISKUSI
   file: public/css/home.css
   =============================== */

:root{
  --bg:#f6f7fb;
  --text:#0f172a;
  --muted:#64748b;
  --primary:#0d6efd;
  --primaryDark:#003a79;
  --primary2:#005bbb;
  --ring: rgba(13,110,253,.18);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow2: 0 16px 40px rgba(15, 23, 42, .12);
  --radius: 16px;
}

body{
  background: var(--bg);
  color: var(--text);
}

/* fade in content after loading */
#content{ opacity: 0; transition: opacity .35s ease; }

/* Loading */
#loading{
  position: fixed;
  inset: 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background: #fff;
  z-index: 9999;
  transition: opacity .35s ease;
}
#loading img{ width: 130px; height:auto; }
#loading h2{ margin-top:14px; font-weight:700; font-size:1.2rem; color: var(--dark); }


#loading img {
    width: 150px;
}

#welcomeText {
    margin-top: 20px;
    color: #003A79;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    border-right: .15em solid #003A79;
}

/* ===== NAVBAR (persis diskusi style) ===== */
header.bg-white{
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(15,23,42,.06);
}

.navbar .nav-link{
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: .6rem .9rem;
  border-radius: 12px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.navbar .nav-link:hover{
  background: rgba(13,110,253,.08);
  color: var(--primary);
  transform: translateY(-1px);
}
.navbar .nav-link.active{
  background: rgba(13,110,253,.12);
  color: var(--primary) !important;
}

/* dropdown selaras diskusi */
.dropdown-menu{
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: .6rem;
}
.dropdown-item{
  border-radius: 12px;
  padding: .55rem .8rem;
  transition: background .2s ease, transform .2s ease;
}
.dropdown-item:hover{
  background: rgba(13,110,253,.10);
  transform: translateX(2px);
}

/* ===== HERO ===== */
.home-hero{
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: linear-gradient(120deg, rgba(0,58,121,.10), rgba(0,91,187,.07));
}

.home-hero::before{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  border-radius:50%;
  background: rgba(0,91,187,.12);
  top:-260px;
  left:-260px;
  filter: blur(2px);
}
.home-hero::after{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  border-radius:50%;
  background: rgba(0,58,121,.12);
  bottom:-220px;
  right:-200px;
  filter: blur(2px);
}
.home-hero .container{
  position: relative;
  z-index: 1;
}

.tagline{
  display: inline-block;
  background: linear-gradient(135deg, var(--primary2), var(--primaryDark));
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 12px 22px rgba(0, 91, 187, .18);
}

.hero-text h1{
  color: var(--text);
  letter-spacing: .3px;
}
.hero-text p{
  color: var(--muted) !important;
  line-height: 1.7;
}

/* button selaras diskusi */
.btn.btn-primary{
  background: linear-gradient(135deg, var(--primary2), var(--primaryDark));
  border: none;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(0, 91, 187, .20);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 91, 187, .28);
  filter: brightness(1.02);
}
.btn.btn-primary:active{
  transform: translateY(0) scale(.99);
}

/* ===== Carousel image ===== */
.hero-orbit{
  display:flex;
  align-items:center;
  justify-content:center;
}

.rotating-img{
  width: 300px;
  height: 300px;
  object-fit: cover;
  animation: rotate 18s linear infinite;
  box-shadow: 0 16px 34px rgba(15,23,42,.14);
  border: 6px solid rgba(255,255,255,.85);
}

@keyframes rotate{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* ===== FOOTER (persis diskusi) ===== */
.kromora-footer{
  background: #003A79;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -10px 28px rgba(15,23,42,.06);
}

/* ===============================
   RESPONSIVE - TABLET
   =============================== */
@media (max-width: 992px){
  .home-hero{
    padding: 64px 0;
  }
  .hero-text{
    text-align: center;
  }
  .rotating-img{
    width: 240px;
    height: 240px;
  }
  .navbar .nav-link{
    padding: .55rem .75rem;
  }
}

/* ===============================
   RESPONSIVE - HP
   =============================== */
@media (max-width: 576px){
  .home-hero{
    padding: 52px 0;
  }
  .tagline{
    font-size: .9rem;
    padding: 7px 12px;
  }
  .hero-text h1{
    font-size: 1.45rem;
    line-height: 1.25;
  }
  .hero-text p{
    font-size: .95rem;
  }
  .rotating-img{
    width: 190px;
    height: 190px;
  }
  .dropdown-menu{
    width: 100%;
    min-width: unset;
  }
}
