/* ============================================================
   YAYASAN AR ROMLY — GAYA UTAMA + EFEK DIGITAL + RESPONSIF
   ============================================================ */

/* ======== FONT & BASE ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0a0f24;
  color: #f0f4ff;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ======== NAVBAR ======== */
nav {
  background: rgba(10, 15, 36, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 170, 255, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 45px;
  height: 45px;
  margin-right: 10px;
}

.brand-main {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 1px;
}

.brand-accent {
  font-weight: 700;
  color: #00bfff;
  font-size: 28px;
}

.nav-links a {
  margin-left: 25px;
  text-decoration: none;
  color: #d0d7ff;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover {
  color: #00bfff;
}

/* ======== HERO (HEADER) ======== */
header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #001f3f, #0074D9);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.highlight {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
  font-weight: 700;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 25px;
  color: #e0ecff;
}

/* ======== DIGITAL GLOW BACKGROUND ======== */
.digital-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.digital-line,
.digital-dot {
  position: absolute;
  background: rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  animation: moveGlow 8s linear infinite;
  filter: blur(2px);
}

.digital-line {
  width: 1px;
  height: 150px;
  background: linear-gradient(to bottom, transparent, rgba(0, 255, 255, 0.6), transparent);
  animation-duration: 10s;
}

.digital-dot {
  width: 6px;
  height: 6px;
  animation-duration: 6s;
}

@keyframes moveGlow {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateY(-50px) scale(1);
    opacity: 0.3;
  }
}

/* ======== CONTAINER & CARD ======== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 80px auto;
  position: relative;
  z-index: 1;
}

.card {
  background: #101935;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 170, 255, 0.1);
}

.card h2 {
  text-align: center;
  color: #00bfff;
  margin-bottom: 25px;
}

h3, h4 {
  color: #00bfff;
  margin-bottom: 10px;
}

/* ======== GRID UMUM ======== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.grid .card {
  background: #0f1a38;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 191, 255, 0.2);
}

.grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.3);
}

.btn-link {
  display: inline-block;
  margin-top: 10px;
  color: #00bfff;
  text-decoration: none;
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
}

/* ======== GALERI ======== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
  background: #101935;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ======== KONTAK ======== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info p {
  margin-bottom: 10px;
}

.social-links a {
  display: inline-block;
  margin: 5px 10px 0 0;
  text-decoration: none;
  color: #00bfff;
  font-weight: 500;
}

.social-links a:hover {
  text-decoration: underline;
}

/* ======== FOOTER ======== */
footer {
  background: #061022;
  text-align: center;
  color: #8fa3c7;
  padding: 20px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 191, 255, 0.2);
}

/* ======== MATRIX BACKGROUND (CANVAS) ======== */
#codeBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: transparent;
  pointer-events: none;
  opacity: 0.08;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 992px) {
  header {
    padding: 80px 20px;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  header h1 {
    font-size: 1.8rem;
  }
  .card {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .nav-links a {
    margin-left: 0;
    margin-top: 5px;
  }
}
