/* ═══════════════════════════════════════════════════════
   MOBILE.CSS — Footer + Full Responsive · Rizki Fauzan
   ═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  position: relative;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(11,16,32,0) 0%, rgba(5,8,20,0.95) 100%);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 55%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,217,255,0.45), transparent);
}
.site-footer::after {
  content: "";
  position: absolute;
  bottom: -60px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 200px;
  background: radial-gradient(ellipse, rgba(0,217,255,0.06), transparent 70%);
  pointer-events: none;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
  position: relative; z-index: 1;
}

/* Marquee */
.footer-marquee-wrap {
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 2rem;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.footer-marquee {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.footer-marquee span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0,217,255,0.18);
  letter-spacing: 1px;
  white-space: nowrap; flex-shrink: 0;
}
.footer-marquee span.accent { color: rgba(0,217,255,0.45); }
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Top row */
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700;
  color: var(--primary); letter-spacing: -0.5px;
  text-shadow: 0 0 20px rgba(0,217,255,0.4);
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 10px; color: rgba(255,255,255,0.22);
  letter-spacing: 2px; text-transform: uppercase; line-height: 1.6;
}
.footer-nav {
  display: flex; flex-direction: column;
  gap: 10px; align-items: center;
}
.footer-nav a {
  font-size: 12px; font-family: var(--font-mono);
  color: rgba(255,255,255,0.35); letter-spacing: 0.5px;
  transition: color 0.2s ease; white-space: nowrap;
}
.footer-nav a:hover { color: var(--primary); }
.footer-social {
  display: flex; gap: 10px;
  justify-content: flex-end; align-items: flex-start;
}
.footer-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 16px; color: rgba(255,255,255,0.4);
  transition: all 0.25s ease; text-decoration: none;
}
.footer-icon:hover {
  background: rgba(0,217,255,0.08);
  border-color: rgba(0,217,255,0.35);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,217,255,0.12);
}

/* Divider */
.footer-divider {
  margin: 2rem 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 20%, rgba(255,255,255,0.06) 80%, transparent);
}

/* Bottom row */
.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.2); letter-spacing: 0.3px;
}
.footer-cmd-hint {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(0,217,255,0.35); cursor: pointer;
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(0,217,255,0.1);
  transition: all 0.2s ease;
}
.footer-cmd-hint:hover {
  background: rgba(0,217,255,0.05);
  border-color: rgba(0,217,255,0.25);
  color: rgba(0,217,255,0.7);
}
.footer-cmd-hint kbd {
  background: rgba(0,217,255,0.08); border: 1px solid rgba(0,217,255,0.2);
  border-radius: 3px; padding: 0 5px;
  font-size: 10px; color: rgba(0,217,255,0.6);
  font-family: var(--font-mono);
}
.footer-status {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.25);
}
.footer-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 8px rgba(40,200,64,0.6);
  animation: statusPulse 2.5s ease-in-out infinite; flex-shrink: 0;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(40,200,64,0.6); }
  50%       { opacity: 0.6; box-shadow: 0 0 14px rgba(40,200,64,0.3); }
}

/* ═══════════════════════════════════════════════════════
   MOBILE  ≤768px
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .navbar nav { display: none; }
  .navbar { padding: 0.8rem 1.2rem; }

  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 998;
    background: rgba(11,16,32,0.97);
    border-top: 1px solid rgba(0,217,255,0.1);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 3px; padding: 6px 4px;
    color: rgba(255,255,255,0.3);
    font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.5px;
    text-decoration: none; transition: color 0.2s ease;
  }
  .mobile-nav a .m-icon { font-size: 16px; line-height: 1; }
  .mobile-nav a.active,
  .mobile-nav a:hover { color: var(--primary); }

  body { padding-bottom: 62px; }

  section { padding: 3rem 1.2rem; }

  .hero { padding: 2rem 1.2rem; min-height: auto; }
  .hero-container { flex-direction: column-reverse; text-align: center; gap: 1.5rem; }
  .hero-text { max-width: 100%; }
  .hero-tag { font-size: 9px; letter-spacing: 1.5px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .hero-desc { font-size: 0.92rem; max-width: 100%; }
  .hero-buttons { justify-content: center; flex-wrap: wrap; gap: 0.8rem; }
  .btn-primary, .btn-secondary { padding: 0.7rem 1.2rem; font-size: 0.88rem; }
  .image-frame { width: 150px; height: 150px; }
  .image-glow { width: 190px; height: 190px; }

  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: clamp(1.4rem, 6vw, 2rem); }

  .about-grid { grid-template-columns: 1fr; gap: 1rem; }
  .about-card { padding: 1.2rem; }

  .project-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-card { border-radius: 16px; }
  .project-content { padding: 12px; }
  .project-tech { gap: 0.5rem; }
  .project-tech span { font-size: 0.75rem; padding: 0.3rem 0.6rem; }

  .certification-grid { grid-template-columns: 1fr; gap: 1rem; }
  .certification-card { padding: 1.2rem; border-radius: 16px; }
  .certification-image img { height: 130px; }

  .achievement-grid { grid-template-columns: 1fr; gap: 1rem; }
  .achievement-card { padding: 1.2rem; border-radius: 16px; }
  .achievement-image img { height: 120px; }

  .contact-grid { grid-template-columns: 1fr; gap: 10px; }
  .contact-card { padding: 12px 14px; }

  /* Footer mobile */
  .site-footer { margin-bottom: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
  .footer-nav a { font-size: 11px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .footer-cmd-hint { display: none; }
  .footer-marquee-wrap { display: none; }

  /* UI overlays */
  #cmd-overlay { padding-top: 8vh; align-items: flex-start; }
  #cmd-box { margin: 0 12px; max-width: 100%; }
  #ctrlk-toast,
  #cmd-trigger-hint { display: none; }

  /* Terminal */
  #terminal-window { padding: 0 10px; }
  #terminal-body { font-size: 10.5px; padding: 14px 14px 18px; min-height: 200px; }
  #terminal-bar { padding: 8px 12px; }
  #terminal-title { font-size: 11px; }

  #scroll-progress { height: 3px; }

  #modalImg { max-width: 95vw; max-height: 75vh; }
  #modalClose { top: -10px; right: -10px; width: 30px; height: 30px; font-size: 13px; }
}

/* ── Tablet 769–1024px ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-nav { display: none; }
  section { padding: 4rem 2rem; }
  .image-frame { width: 220px; height: 220px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .certification-grid { grid-template-columns: repeat(3, 1fr); }
  .achievement-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr auto 1fr; }
}

/* ── Desktop ── */
@media (min-width: 769px) {
  .mobile-nav { display: none; }
}
