/* ===== Tema gelap & elegan — digital.edujohor.com ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0e13;
  --bg-card: #12161f;
  --text: #e8eaf0;
  --text-dim: #9aa3b5;
  --accent: #7fb4e8;
  --line: rgba(255, 255, 255, 0.08);
}

html, body {
  min-height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(127, 180, 232, 0.16), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(30, 41, 59, 0.5), transparent 70%),
    var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

/* --- Latar animasi digital --- */
#network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.2rem 2.5rem;
  text-align: left;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.info {
  flex: 1;
  min-width: 0;
}

.welcome {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* --- Gambar profil --- */
.photo-ring {
  position: relative;
  flex-shrink: 0;
  width: 235px;
  height: 300px;
  margin: 0;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(160deg, var(--accent), transparent 55%, rgba(127, 180, 232, 0.5));
  box-shadow: 0 0 50px rgba(127, 180, 232, 0.22), 0 18px 40px rgba(0, 0, 0, 0.5);
}

.photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  object-fit: cover;
  object-position: top;
  display: block;
  background: var(--bg-card);
}

.photo-ring .initials {
  display: none;
}

/* Placeholder jika gambar belum dimuatkan */
.photo-ring.no-photo img {
  display: none;
}

.photo-ring.no-photo .initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 19px;
  background: var(--bg-card);
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* --- Nama & jawatan --- */
h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 span {
  color: var(--text-dim);
  font-weight: 400;
  text-transform: lowercase;
}

.role {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--accent);
}

.unit {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* --- Jam digital --- */
.clock {
  margin: 1.2rem 0 0;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#time {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text);
  text-shadow: 0 0 30px rgba(127, 180, 232, 0.35);
}

#time span {
  font-size: 0.35em;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.15em;
  vertical-align: middle;
}

#date {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* --- Bio --- */
.bio {
  margin-top: 1rem;
}

.bio p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0;
}

/* --- Hubungi --- */
.contact {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  background: rgba(127, 180, 232, 0.12);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn.whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.4);
  color: #4be07e;
}

.btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: #25d366;
}

/* --- Footer --- */
footer {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* --- Mudah alih / skrin sempit --- */
@media (max-width: 720px) {
  body {
    padding: 0.8rem 1rem;
  }
  .card {
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.3rem 1.2rem;
    text-align: center;
  }
  .photo-ring {
    width: 140px;
    height: 180px;
  }
  .welcome {
    margin-bottom: 0.4rem;
  }
  .clock {
    margin-top: 0.9rem;
    padding: 0.7rem 0;
  }
  .bio {
    margin-top: 0.8rem;
  }
  .bio p {
    margin: 0 auto;
  }
  .contact {
    margin-top: 0.9rem;
    justify-content: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 1rem;
  }
  footer {
    margin-top: 0.7rem;
  }
}
