/* Cikgu Rooben - Static HTML styles */
/* Works when opening index.html directly (file or any server) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0f172a;
  color: #fff;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 700; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #22d3ee; color: #0f172a; font-weight: 600; padding: 0.75rem 1.5rem;
  border-radius: 0.5rem; border: none; cursor: pointer; text-decoration: none;
  transition: all 0.3s;
}
.btn-primary:hover { background: #67e8f9; box-shadow: 0 10px 40px rgba(34, 211, 238, 0.4); transform: scale(1.02); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: transparent; color: #22d3ee; font-weight: 600; padding: 0.75rem 1.5rem;
  border-radius: 0.5rem; border: 2px solid #22d3ee; cursor: pointer; text-decoration: none;
  transition: all 0.3s;
}
.btn-secondary:hover { background: rgba(34, 211, 238, 0.1); box-shadow: 0 10px 30px rgba(34, 211, 238, 0.2); }

.card-elevated {
  background: rgba(30, 41, 59, 0.5); border: 1px solid #334155; border-radius: 0.5rem;
  padding: 1.5rem; transition: all 0.3s;
}
.card-elevated:hover { box-shadow: 0 20px 40px rgba(34, 211, 238, 0.1); }

.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 5rem 1rem 2rem;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.2;
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.1;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(0, 217, 255, 0.05) 25%, rgba(0, 217, 255, 0.05) 26%, transparent 27%),
    linear-gradient(90deg, transparent 24%, rgba(0, 217, 255, 0.05) 25%, rgba(0, 217, 255, 0.05) 26%, transparent 27%);
  background-size: 50px 50px;
}
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 56rem; margin: 0 auto; }
.hero-logo { width: 11rem; height: 11rem; border-radius: 50%; object-fit: cover; margin: 0 auto 2rem; display: block; box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.5), 0 15px 40px rgba(34, 211, 238, 0.25); }
@media (min-width: 768px) { .hero-logo { width: 14rem; height: 14rem; margin-bottom: 2.5rem; } }
@media (min-width: 1024px) { .hero-logo { width: 16rem; height: 16rem; } }
.hero .accent-line { width: 4px; height: 4rem; background: linear-gradient(to bottom, #22d3ee, transparent); margin: 0 auto 2rem; }
.btn-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.hidden { display: none !important; }
.hero h1 { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.2; }
@media (min-width: 768px) { .hero h1 { font-size: 4.5rem; } }
.hero .tagline { font-size: 1.25rem; color: #22d3ee; font-weight: 600; margin-bottom: 2rem; }
@media (min-width: 768px) { .hero .tagline { font-size: 1.5rem; } }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; }
.scroll-hint .dot { width: 6px; height: 10px; border: 2px solid #22d3ee; border-radius: 999px; margin: 0 auto; animation: bounce 2s infinite; }

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Sections common */
.section-title { font-size: 2.25rem; text-align: center; margin-bottom: 1rem; }
@media (min-width: 768px) { .section-title { font-size: 3rem; } }
.section-desc { color: #94a3b8; text-align: center; max-width: 42rem; margin: 0 auto 4rem; }

/* Tech animated background */
.tech-section { position: relative; overflow: hidden; }
.tech-bg-animated {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(0, 217, 255, 0.03) 25%, rgba(0, 217, 255, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 217, 255, 0.03) 75%, rgba(0, 217, 255, 0.03) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(0, 217, 255, 0.03) 25%, rgba(0, 217, 255, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 217, 255, 0.03) 75%, rgba(0, 217, 255, 0.03) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  animation: tech-grid-drift 20s linear infinite;
  opacity: 0.3;
}
.bg-slate-8 .tech-bg-animated { opacity: 0.2; }
.relative-z { position: relative; z-index: 10; }
@keyframes tech-grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Produk grid */
.produk-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .produk-grid { grid-template-columns: repeat(3, 1fr); } }
.produk-card { display: flex; flex-direction: column; }
.produk-img-wrap { aspect-ratio: 1; width: 100%; border-radius: 0.5rem; overflow: hidden; background: #1e293b; border: 1px solid #334155; margin-bottom: 1rem; position: relative; }
.produk-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.produk-img-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(30, 41, 59, 0.9); color: #22d3ee; }
.fallback-icon { width: 3rem; height: 3rem; opacity: 0.6; }
.produk-card h3 { color: #22d3ee; font-size: 1.25rem; margin-bottom: 0.75rem; }
.produk-card p { color: #94a3b8; flex: 1; margin-bottom: 1.5rem; }
.produk-card .btn-primary { width: 100%; }

/* Inovasi grid */
.inovasi-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .inovasi-grid { grid-template-columns: repeat(2, 1fr); } }
.inovasi-card .icon-box { width: 3rem; height: 3rem; border-radius: 0.5rem; background: rgba(34, 211, 238, 0.2); border: 1px solid #22d3ee; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: #22d3ee; }
.icon-svg { width: 1.5rem; height: 1.5rem; }
.inovasi-card .status { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #334155; font-size: 0.875rem; color: #22d3ee; font-weight: 600; }

/* Stats grid */
.stats-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { text-align: center; }
.stat-card .num { font-size: 2rem; font-weight: 700; color: #22d3ee; margin-bottom: 0.5rem; }
.stat-card .label { color: #94a3b8; }

/* Latihan grid */
.latihan-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .latihan-grid { grid-template-columns: repeat(3, 1fr); } }
.latihan-card { text-align: center; }
.latihan-card .icon-wrap { width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 0.5rem; background: rgba(34, 211, 238, 0.2); border: 1px solid #22d3ee; display: flex; align-items: center; justify-content: center; color: #22d3ee; }
.icon-svg-lg { width: 2rem; height: 2rem; }
.tentang-text .pillar .icon-box .icon-svg-sm { width: 1rem; height: 1rem; }
.icon-svg-sm { width: 1rem; height: 1rem; }

/* Tentang Saya */
.tentang-wrap { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .tentang-wrap { grid-template-columns: 1fr 1fr; } }
.tentang-text .text-block { color: #cbd5e1; margin-bottom: 1.5rem; }
.tentang-text .pillar { display: flex; gap: 1rem; margin-bottom: 1rem; }
.tentang-text .pillar .icon-box { width: 2rem; height: 2rem; flex-shrink: 0; border-radius: 0.5rem; background: rgba(34, 211, 238, 0.2); border: 1px solid #22d3ee; display: flex; align-items: center; justify-content: center; }
.tentang-visual { position: relative; }
.tentang-visual .box { background: rgba(51, 65, 85, 0.5); border: 1px solid #475569; border-radius: 0.5rem; padding: 2rem; }
.tentang-visual .row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.tentang-visual .row .n { font-size: 1.5rem; font-weight: 700; color: #22d3ee; }
.tentang-visual .row .d { font-size: 0.875rem; color: #94a3b8; }
.tentang-visual hr { border: none; height: 1px; background: #475569; margin: 1rem 0; }

/* Hubungi */
.hubungi { background: linear-gradient(to bottom, #0f172a, #020617); position: relative; }
.hubungi .content { position: relative; z-index: 10; text-align: center; }

/* Footer */
footer { background: #020617; border-top: 1px solid #1e293b; padding: 2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
footer .brand { font-size: 1.25rem; font-weight: 700; color: #22d3ee; }
footer .copy { color: #64748b; font-size: 0.875rem; }

.bg-slate-9 { background: #0f172a; }
.bg-slate-8 { background: #1e293b; }

/* Popup card – top right, fades in/out */
.popup-card {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 50;
  max-width: 320px; padding: 0.75rem 1rem;
  background: rgba(30, 41, 59, 0.95); border: 1px solid #475569;
  border-radius: 0.5rem; box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  pointer-events: none;
  opacity: 0; transform: translateX(1rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.popup-card.popup-visible { opacity: 1; transform: translateX(0); }
.popup-label { font-size: 0.875rem; color: #22d3ee; margin: 0; }
.popup-text { margin: 0.25rem 0 0; font-weight: 500; color: #fff; }
.popup-product { color: #67e8f9; }
@media (min-width: 768px) { .popup-card { top: 2rem; right: 2rem; } }
