/* ============================================================
   RIZQI ANGGARA — PORTFOLIO
   Skema warna: Merah #F62440 + Putih + Hitam
   Default: Dark Mode | body.light-mode: Light Mode (putih)
   ============================================================ */

:root {
  --red: #F62440;
  --red-dark: #D91F38;
  --red-soft: rgba(246, 36, 64, 0.12);
  --red-softer: rgba(246, 36, 64, 0.08);

  /* Dark palette (default) */
  --bg: #121212;
  --surface: #1B1B1B;
  --surface-2: #262626;
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

  --sidebar-w: 272px;
  --topbar-h: 64px;
}

body.light-mode {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F5F5F5;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.68);
  --border: rgba(0, 0, 0, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

::selection { background: var(--red); color: #FFFFFF; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

/* ============================ TOPBAR ============================ */

#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: left 0.3s ease, background-color 0.3s ease;
}

.topbar-side { display: flex; align-items: center; gap: 12px; min-width: 0; }

.page-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

@media (min-width: 1024px) {
  #topbar { left: var(--sidebar-w); padding: 0 28px; }
}

.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
}
.icon-btn:hover { background: var(--red-soft); color: var(--red); border-color: var(--red); }

/* Theme switch */
.switch { display: inline-flex; align-items: center; cursor: pointer; }
.switch .track {
  width: 44px; height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center;
  padding: 2px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.switch .thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #000000;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  transform: translateX(0);
  transition: transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.switch input:checked ~ .track { background: var(--red); border-color: var(--red); }
.switch input:checked ~ .track .thumb { transform: translateX(20px); }

/* Language select */
#lang-toggle {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 26px 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23F62440'%3E%3Cpath d='M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 14px;
  transition: all 0.25s ease;
}
#lang-toggle:hover { border-color: var(--red); }

/* Profile dropdown */
.profile-wrap { position: relative; display: none; }
.avatar-btn {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.avatar-btn:hover { transform: scale(1.06); box-shadow: 0 0 0 4px var(--red-soft); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
}
.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.pd-label {
  margin: 6px 10px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}
.profile-dropdown a i {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.profile-dropdown a:hover { background: var(--red); color: #FFFFFF; }
.profile-dropdown a:hover i { background: rgba(255, 255, 255, 0.2); color: #FFFFFF; }

/* ============================ SIDEBAR ============================ */

#backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.sidebar-open #backdrop { opacity: 1; visibility: visible; }

#sidebar {
  position: fixed;
  top: 0; bottom: 0; right: 0;
  width: min(var(--sidebar-w), 85vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 80;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease, background-color 0.3s ease, width 0.3s ease;
}
body.sidebar-open #sidebar { transform: translateX(0); }

.sidebar-head {
  height: var(--topbar-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

  @media (max-width: 767px) {
      .desktop-title {
        display: none !important;
      }
      .mobile-title {
        display: block !important;
      }
    }

.brand { display: flex; align-items: center; min-width: 0; }
.brand-text {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 12px 24px; }
.side-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.side-link i { font-size: 1rem; width: 22px; text-align: center; color: var(--red); transition: color 0.2s ease; }
.side-link:hover { background: var(--red-soft); color: var(--red); }

.side-link.active {
  background: var(--red);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(246, 36, 64, 0.35);
}
.side-link.active i, .side-link:hover i { color: inherit; }

/* Toggle tema di dasar sidebar (khusus mobile) */
.sidebar-theme {
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}
.st-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
@media (max-width: 1023px) {
  .sidebar-theme { display: flex; }
}

/* Desktop states */
@media (min-width: 1024px) {
  #sidebar {
    left: 0; right: auto;
    width: var(--sidebar-w);
    border-left: none;
    border-right: 1px solid var(--border);
    transform: none;
  }
  #backdrop { display: none; }
  .profile-wrap { display: block; }
}

main.content {
  padding: calc(var(--topbar-h) + 28px) 20px 56px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}
@media (min-width: 1024px) {
  main.content { margin-left: var(--sidebar-w); padding-left: 36px; padding-right: 36px; }
}
.content-inner { max-width: 1200px; margin: 0 auto; }

main.content section { margin-bottom: 64px; }
main.content section:last-child { margin-bottom: 0; }
section[id] { scroll-margin-top: calc(var(--topbar-h) + 20px); }

/* Desktop: beranda menampilkan hero + tentang, sisanya halaman terpisah */
@media (min-width: 1024px) {
  body[data-page="home"] main.content section:not(.hero-section):not(#tentang) { display: none; }
}

/* ============================ KOMPONEN ============================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.3s ease;
}
.card.hover-lift:hover { transform: translateY(-4px); border-color: var(--red); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(246, 36, 64, 0.35); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--red);
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-outline:hover { background: var(--red); color: #FFFFFF; transform: translateY(-2px); }

.badge {
  display: inline-block;
  background: var(--red);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.tag {
  display: inline-block;
  background: var(--red);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s ease;
}
.link-arrow:hover { gap: 10px; text-decoration: underline; }

/* Page heading */
.page-heading { margin-bottom: 30px; }
.page-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}
.title-bar { width: 64px; height: 5px; border-radius: 999px; background: var(--red); margin-top: 12px; }
.text-accent { color: var(--red); }
.page-sub { margin: 14px 0 0; color: var(--muted); font-size: 0.95rem; max-width: 640px; }

/* Card header */
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.card-head i {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--red);
  color: #FFFFFF;
  font-size: 1rem;
  flex-shrink: 0;
}
.card-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.card-body { padding: 20px 22px; }

/* ============================ HERO (Beranda) ============================ */

.hero-card {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 36px;
  text-align: center;
  padding: clamp(28px, 5vw, 56px);
}
.hero-text { display: flex; flex-direction: column; align-items: center; }
.hero-hello { margin: 0 0 6px; font-size: 1.05rem; font-weight: 500; color: var(--muted); }
.hero-name {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--red);
}
.hero-role { margin: 0 0 14px; font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-weight: 600; }
.hero-desc { margin: 0 0 26px; max-width: 520px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero-avatar { flex-shrink: 0; }
.hero-avatar img {
  width: clamp(180px, 28vw, 280px);
  height: clamp(180px, 28vw, 280px);
  border-radius: 18px;
  object-fit: cover;
  border: 5px solid var(--red);
}

/* Mobile: hero tanpa style card, rata kiri sejajar section lain */
@media (max-width: 899px) {
  .hero-card { background: transparent; border: none; border-radius: 0; box-shadow: none; padding: 0; text-align: left; align-items: flex-start; }
  .hero-text { align-items: flex-start; }
  .hero-actions { justify-content: flex-start; }
}

@media (min-width: 900px) {
  .hero-card { flex-direction: row; justify-content: space-between; text-align: left; }
  .hero-text { align-items: flex-start; }
}

/* ============================ TENTANG ============================ */

.about-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .about-grid { grid-template-columns: 5fr 6fr; } }

.about-bio p { margin: 0 0 16px; line-height: 1.8; font-size: 0.94rem; color: var(--muted); }
.about-bio p:last-of-type { margin-bottom: 20px; }
.about-bio .hl { color: var(--red); font-weight: 600; font-style: normal; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 10px;
}
@media (min-width: 480px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) { .tech-grid { grid-template-columns: repeat(5, 1fr); } }

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: transform 0.2s ease, color 0.2s ease;
  color: var(--text);
}
.tech-item i, .tech-item svg { font-size: 30px; width: 30px; height: 30px; transition: inherit; }
.tech-item span { font-size: 0.72rem; color: var(--muted); }
.tech-item:hover { transform: translateY(-4px); color: var(--red); }
.tech-item:hover span { color: var(--red); }

/* Light mode: ikon tech stack memakai warna brand aslinya */
body.light-mode .tech-item i,
body.light-mode .tech-item svg { color: var(--brand, var(--red)); }
body.light-mode .tech-item:hover i,
body.light-mode .tech-item:hover svg { color: var(--red); }

.hobby-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
@media (min-width: 560px) { .hobby-grid { grid-template-columns: repeat(4, 1fr); } }
.hobby-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; color: var(--text);
  transition: transform 0.2s ease;
}
.hobby-item i {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 1.3rem;
  transition: all 0.2s ease;
}
.hobby-item span { font-size: 0.74rem; color: var(--muted); }
.hobby-item:hover { transform: translateY(-4px); }
.hobby-item:hover i { background: var(--red); color: #FFFFFF; }

/* ============================ TIMELINE ============================ */

.timeline {
  list-style: none;
  margin: 0;
  padding: 6px 0 6px 26px;
  border-left: 2px solid rgba(246, 36, 64, 0.4);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -33px; top: 26px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--bg);
  transition: transform 0.2s ease;
}
.timeline li:hover::before { transform: scale(1.25); }

.t-card { padding: 18px 22px; }
.t-card h4 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 700; }
.t-date {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 6px;
}
.t-desc { margin: 0; font-size: 0.9rem; color: var(--muted); }
.t-award {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--red);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
}

.two-col { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ============================ PROYEK & SERTIFIKAT ============================ */

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .cards-grid.grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1150px) { .cards-grid.grid-4 { grid-template-columns: repeat(4, 1fr); } }

.project-card, .cert-card { display: flex; flex-direction: column; overflow: hidden; }

.thumb {
  position: relative;
  height: 170px;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.thumb iframe {
  position: absolute;
  top: 0; left: 0;
  width: 400%; height: 400%;
  transform-origin: top left;
  transform: scale(0.25);
  border: none;
  pointer-events: none;
}
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}
.project-card:hover .thumb-overlay, .cert-card:hover .thumb-overlay { background: transparent; }

.cert-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cert-card:hover .cert-thumb img { transform: scale(1.1); }

.cert-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
  font-size: 1.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cert-card:hover .cert-zoom { opacity: 1; }

.project-body, .cert-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.project-body h3, .cert-body h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; }
.project-body p, .cert-body p { margin: 0 0 14px; font-size: 0.87rem; line-height: 1.65; color: var(--muted); flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--muted);
}

/* Floating certificate preview */
#certificate-floating-preview {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  width: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Lightbox */
#certificate-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#certificate-lightbox.open { opacity: 1; pointer-events: auto; }
#close-lightbox {
  position: absolute;
  top: 20px; right: 24px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
#close-lightbox:hover { color: #FFFFFF; transform: rotate(90deg); }
.lightbox-inner {
  max-width: min(90vw, 900px);
  max-height: 88vh;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
#certificate-lightbox.open .lightbox-inner { transform: scale(1); }
#lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================ KONTAK ============================ */

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-card { text-align: center; padding: 34px 26px; }
.icon-circle {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
  font-size: 1.4rem;
}
.contact-card h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; }
.contact-card p { margin: 0 0 20px; font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

.social-row { display: flex; justify-content: center; gap: 14px; }
.social-row a {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-size: 1.15rem;
  transition: all 0.25s ease;
}
.social-row a:hover { background: var(--red); color: #FFFFFF; transform: translateY(-4px); }

/* ============================ ANIMASI REVEAL ============================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d-1 { transition-delay: 0.08s; }
.d-2 { transition-delay: 0.16s; }
.d-3 { transition-delay: 0.24s; }
.d-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================ VISIBILITAS RESPONSIF ============================ */
/* Di akhir file agar menang atas display dari .switch, .icon-btn, dll */
.only-mobile { display: inline-flex; }
.only-desktop { display: none; }
@media (min-width: 1024px) {
  .only-mobile { display: none; }
  .only-desktop { display: inline-flex; }
}
