/* ================================================
   styles.css — Portfolio Priscianus Mikael Kia Mado
   ================================================ */

/* ---- RESET & VARIABLES ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #FF6B35;
  --secondary:  #004E89;
  --accent:     #1B998B;
  --light-bg:   #F5F3FF;
  --text-dark:  #1a1a1a;
  --text-light: #666666;
  --border:     #EAE7F2;
  --overlay:    rgba(17, 17, 17, .45);
  --drawer-w:   320px;
  --header-h:   68px;
  --side-pad:   1.25rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, var(--light-bg) 0%, #FFF5E6 100%);
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

/* ---- HEADER ---- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  width: 100%;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
  color: var(--text-dark); text-decoration: none;
  font-weight: 600; font-size: .95rem; position: relative;
}
.nav-links a::before {
  content: ""; position: absolute; left: 0; bottom: -6px;
  height: 2px; width: 0; background: var(--primary); transition: .25s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::before { width: 100%; }

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px; border: 1.5px solid var(--border);
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
  transition: .2s ease; padding: 0; flex-shrink: 0;
}
.hamburger:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.hamburger .bar,
.hamburger .bar::before,
.hamburger .bar::after {
  content: ""; display: block;
  width: 20px; height: 2px;
  background: #111; border-radius: 2px;
  position: relative; transition: .25s ease;
}
.hamburger .bar::before { position: absolute; top: -6px; left: 0; }
.hamburger .bar::after  { position: absolute; top:  6px; left: 0; }
.hamburger[aria-expanded="true"] .bar             { background: transparent; }
.hamburger[aria-expanded="true"] .bar::before     { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] .bar::after      { transform: translateY(-6px) rotate(-45deg); }

/* ---- MOBILE DRAWER ---- */
.backdrop {
  position: fixed; inset: 0;
  background: var(--overlay);
  z-index: 998; opacity: 0; pointer-events: none; transition: .25s ease;
}
.backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed; top: 0; right: 0;
  height: 100dvh; width: min(90vw, var(--drawer-w));
  background: #fff; border-left: 1px solid var(--border);
  z-index: 999; transform: translateX(100%); transition: transform .28s ease;
  display: flex; flex-direction: column; padding: 1rem 1rem 1.5rem;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-head {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 .3rem .3rem; border-bottom: 1px solid var(--border);
}
.mobile-title { font-weight: 800; color: #111; font-size: 1rem; }

.mobile-links { list-style: none; display: flex; flex-direction: column; gap: .2rem; padding: .8rem 0; }
.mobile-links a {
  display: block; padding: .85rem .9rem;
  text-decoration: none; color: #111; font-weight: 700; border-radius: 10px;
}
.mobile-links a:hover { background: #FFF4EE; color: var(--primary); }

.mobile-footer {
  margin-top: auto; border-top: 1px dashed var(--border);
  padding-top: 1rem; display: flex; gap: .6rem; flex-wrap: wrap;
}
.chip {
  background: #F6F3FF; color: var(--secondary);
  font-weight: 800; font-size: .75rem;
  padding: .32rem .65rem; border-radius: 999px;
}

/* ---- LAYOUT ---- */
main { position: relative; z-index: 1; padding-top: var(--header-h); width: 100%; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--side-pad); width: 100%; }
section { padding: 4rem 0; }

/* ---- BUTTONS ---- */
.btn {
  appearance: none; border: none; cursor: pointer;
  padding: .85rem 1.4rem; border-radius: 10px; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  font-size: .95rem; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(255,107,53,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,107,53,.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---- HERO ---- */
.hero { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 2rem 0; }
.hero-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; width: 100%; }

.hero-tag {
  display: inline-block; background: var(--primary); color: #fff;
  padding: .5rem 1rem; border-radius: 999px;
  font-weight: 700; font-size: .85rem; margin-bottom: 1.2rem;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.12; letter-spacing: -.8px;
  margin-bottom: 1rem; color: var(--text-dark); font-weight: 700;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: glow 4s ease-in-out infinite alternate;
}

.hero p { color: var(--text-light); max-width: 640px; margin-bottom: 1.6rem; }
.cta    { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.8rem; }

/* ---- STATS ---- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem; margin-top: 1.6rem;
  padding-top: 1.8rem; border-top: 1px dashed var(--border);
}
.stat .n { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat .l { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-light); margin-top: .2rem; }

.stat--visitors .n { position: relative; display: inline-flex; align-items: center; gap: .4rem; }
.stat--visitors .n::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.4); animation: pulse-dot 2s infinite; flex-shrink: 0;
}
.stat--visitors { position: relative; cursor: default; }
.stat--visitors:hover .gc-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.gc-tooltip {
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #111; color: #fff; font-size: .7rem; white-space: nowrap;
  padding: .3rem .6rem; border-radius: 6px;
  opacity: 0; visibility: hidden; transition: .2s ease; pointer-events: none; z-index: 10;
}
.gc-tooltip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #111;
}

.stat-skeleton {
  display: inline-block; width: 48px; height: 1.7rem; border-radius: 6px;
  background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}

.visitor-banner {
  display: none; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: .35rem .9rem; font-size: .82rem; color: var(--text-light);
  width: fit-content; margin: .8rem 0 0;
}
.visitor-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse-dot 2s infinite; flex-shrink: 0; }
.visitor-banner strong { color: #111; }

/* ---- PROFILE BOX ---- */
.profile-box {
  width: min(340px, 90%); justify-self: center;
  border: 3px solid #111; border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 48px rgba(0,0,0,.12); transition: transform .25s ease-out;
}
.profile-box img { width: 100%; display: block; object-fit: cover; }

/* ---- ABOUT ---- */
.about-card { background: #fff; padding: 3rem 2.4rem; border-radius: 20px; box-shadow: 0 14px 40px rgba(0,0,0,.06); border: 1px solid var(--border); }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; color: var(--text-dark); margin-bottom: .4rem; }
.section-subtitle { color: var(--text-light); margin-bottom: 2rem; max-width: 640px; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
.about-text p { color: var(--text-light); margin-bottom: 1.1rem; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: .5rem; }
.skill { background: #F6F3FF; border-left: 4px solid var(--primary); border-radius: 14px; padding: 1.1rem; transition: .25s ease; }
.skill:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.08); border-left-color: var(--accent); }
.skill h4 { color: var(--primary); font-weight: 800; margin-bottom: .3rem; font-size: .95rem; }
.skill p  { color: var(--text-light); font-size: .9rem; }

/* ---- PROJECTS ---- */
.filter-menu { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.1rem 0 1.5rem; }
.filter-btn  { padding: .5rem .95rem; border-radius: 999px; font-weight: 800; font-size: .83rem; }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.project { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: .25s ease; cursor: pointer; transform-style: preserve-3d; }
.project:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(0,0,0,.08); border-color: var(--primary); }
.project-thumb { height: 180px; display: grid; place-items: center; background: linear-gradient(135deg, var(--light-bg), #E8F4F8); font-size: 2.4rem; }
.project:hover .project-thumb { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.project-body  { padding: 1.3rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.tag           { align-self: flex-start; background: #F6F3FF; color: var(--primary); font-weight: 800; font-size: .7rem; letter-spacing: .5px; padding: .28rem .65rem; border-radius: 999px; text-transform: uppercase; }
.project-title { font-family: 'Cormorant Garamond', serif; font-weight: 700; color: #111; font-size: 1.18rem; line-height: 1.25; }
.project-desc  { color: var(--text-light); font-size: .92rem; }
.techs         { display: flex; flex-wrap: wrap; gap: .4rem; }
.tech          { background: #F6F3FF; color: var(--secondary); font-weight: 700; font-size: .72rem; padding: .25rem .6rem; border-radius: 999px; }
.project-links { display: flex; gap: 1rem; margin-top: .1rem; }
.project-links a { text-decoration: none; color: var(--primary); font-weight: 800; }
.project-links a::after { content: "→"; margin-left: .3rem; transition: .2s; }
.project-links a:hover::after { margin-left: .6rem; }

/* ---- TIMELINE ---- */
.timeline { position: relative; padding-left: 1.2rem; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--primary), var(--accent), transparent); }
.t-item { position: relative; padding-left: 1.3rem; margin-bottom: 1.3rem; }
.t-dot  { position: absolute; left: -8px; top: .4rem; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #111; }
.t-card { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--primary); padding: 1.1rem; border-radius: 12px; transition: .25s ease; box-shadow: 0 6px 18px rgba(0,0,0,.04); }
.t-card:hover { transform: translateX(6px); box-shadow: 0 12px 26px rgba(0,0,0,.08); }
.t-date  { color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .5px; margin-bottom: .25rem; text-transform: uppercase; }
.t-title { font-family: 'Cormorant Garamond', serif; font-weight: 700; color: #111; margin-bottom: .25rem; font-size: 1.1rem; }
.t-card p { color: var(--text-light); font-size: .93rem; }

/* ---- CERTIFICATIONS ---- */
.certs-wrap { margin-top: 1rem; }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.cert { display: flex; flex-direction: column; gap: .65rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem; transition: .25s ease; }
.cert:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); border-color: var(--primary); }
.cert-head   { display: flex; align-items: center; gap: .8rem; }
.cert-icon   { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; background: #FFF3EE; border: 1px solid #FFD6C7; flex-shrink: 0; }
.cert-title  { font-weight: 800; color: #111; line-height: 1.2; font-size: .95rem; }
.cert-meta   { font-size: .85rem; color: var(--text-light); }
.cert-footer { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .2rem; }
.badge-soft  { background: #F6F3FF; color: var(--secondary); font-weight: 800; font-size: .7rem; padding: .25rem .55rem; border-radius: 999px; text-transform: uppercase; }
.btn-mini    { border: 2px solid var(--primary); color: var(--primary); background: #fff; padding: .4rem .65rem; border-radius: 8px; font-weight: 800; font-size: .8rem; text-decoration: none; transition: .2s ease; }
.btn-mini:hover { background: var(--primary); color: #fff; }
.subsection-title { font-weight: 800; color: #111; font-size: 1.1rem; letter-spacing: .2px; margin: 1.5rem 0 .5rem; }
.subsection-desc  { color: var(--text-light); font-size: .92rem; margin-bottom: .7rem; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; margin-top: .7rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.1rem; }
.info { display: flex; gap: .9rem; align-items: flex-start; }
.icon { width: 46px; height: 46px; border: 2px solid var(--primary); border-radius: 50%; display: grid; place-items: center; background: #FDF8F6; font-size: 1.1rem; flex-shrink: 0; }
.info h3 { color: #111; font-weight: 800; margin-bottom: .1rem; font-size: .95rem; }
.info p  { color: var(--text-light); font-size: .9rem; }

.form { background: #fff; padding: 1.7rem; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.06); border: 1px solid var(--border); display: flex; flex-direction: column; gap: .9rem; }
.fg { display: flex; flex-direction: column; gap: .4rem; }
.fg label { font-weight: 700; color: #111; font-size: .92rem; }
.fg input,
.fg textarea {
  padding: .85rem 1rem; border: 1px solid var(--border);
  background: #F8F7FF; color: #111; border-radius: 10px;
  font: inherit; font-size: 16px; /* cegah auto-zoom Android/iOS */
  transition: .2s ease; outline: none; width: 100%;
}
.fg input:focus,
.fg textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(255,107,53,.1); }
textarea { min-height: 130px; resize: vertical; }

/* ---- FOOTER ---- */
footer { background: #fff; border-top: 1px solid var(--border); padding: 2.2rem 0; }
.footer-wrap { max-width: 1200px; margin: auto; padding: 0 var(--side-pad); text-align: center; }
.social { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--primary); display: grid; place-items: center; color: var(--primary); text-decoration: none; font-weight: 800; font-size: .85rem; transition: .2s; }
.social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.foot-note { color: var(--text-light); font-size: .9rem; }
.gc-powered { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; color: var(--text-light); text-decoration: none; margin-top: .5rem; opacity: .6; transition: .2s; }
.gc-powered:hover { opacity: 1; }

/* ---- MODAL ---- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 1rem; }
.modal.open { display: flex; }
.modal-content { background: #fff; padding: 1.5rem 1.3rem; border-radius: 12px; width: min(720px, 96%); animation: pop .22s ease; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.modal-header  { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.modal-title   { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; color: #111; }
.modal-close   { border: none; background: transparent; font-size: 1.2rem; cursor: pointer; color: #111; padding: .25rem; border-radius: 8px; }
.modal-close:hover { background: #F4F4F4; }
.modal-body    { color: var(--text-light); display: grid; gap: .8rem; }
.modal-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
.modal .techs .tech { background: #F0EDFF; }

/* ---- ANIMATIONS ---- */
[data-anim]              { opacity: 0; transform: translateY(18px); }
.in-view                 { opacity: 1 !important; transform: translateY(0) !important; transition: opacity .6s ease, transform .6s ease; }
[data-anim="fade-up"]    { opacity: 0; transform: translateY(28px);  transition: opacity .7s ease-out, transform .7s ease-out; }
[data-anim="fade-left"]  { opacity: 0; transform: translateX(-36px); transition: .7s ease-out; }
[data-anim="fade-right"] { opacity: 0; transform: translateX(36px);  transition: .7s ease-out; }

.reveal-text { position: relative; overflow: hidden; display: inline-block; }
.reveal-text span { display: inline-block; transform: translateY(110%); animation: textUp .6s ease forwards; }
.floating { animation: float 3.8s ease-in-out infinite; }

/* ---- KEYFRAMES ---- */
@keyframes textUp    { to { transform: translateY(0); } }
@keyframes glow      { from { filter: drop-shadow(0 0 2px rgba(255,107,53,.2)); } to { filter: drop-shadow(0 0 7px rgba(255,107,53,.4)); } }
@keyframes float     { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pop       { from { transform: scale(.95); opacity: .1; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse-dot { 0%  { box-shadow: 0 0 0 0   rgba(34,197,94,.4); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0   rgba(34,197,94,0); } }
@keyframes shimmer   { to { background-position: -200% 0; } }

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet ≤1000px */
@media (max-width: 1000px) {
  .hero-wrap  { grid-template-columns: 1fr; text-align: center; }
  .about-grid { grid-template-columns: 1fr; }
  .profile-box { order: -1; width: min(300px, 65%); margin: 0 auto; }
  .hero p  { margin-left: auto; margin-right: auto; }
  .cta     { justify-content: center; }
  .visitor-banner { margin: .8rem auto 0; }
  .stats   { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile ≤768px */
@media (max-width: 768px) {
  :root { --side-pad: 1rem; }

  .nav-links { display: none; }
  .hamburger { display: inline-flex; }

  section { padding: 2.8rem 0; }

  .hero { min-height: auto; padding: 1.5rem 0 2rem; text-align: center; }
  .hero-wrap { gap: 1.3rem; }
  .hero-tag  { font-size: .78rem; padding: .4rem .9rem; margin-bottom: .8rem; }
  h1         { font-size: clamp(1.7rem, 6vw, 2.3rem); margin-bottom: .8rem; }
  .hero p    { font-size: .93rem; margin-bottom: 1rem; }
  .cta       { flex-direction: column; align-items: stretch; gap: .6rem; margin-bottom: 1.1rem; }
  .btn       { width: 100%; padding: .8rem 1rem; font-size: .92rem; }

  .profile-box { width: min(220px, 58%); }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: .85rem; margin-top: 1rem; padding-top: 1.1rem;
  }
  .stat .n { font-size: 1.5rem; }
  .stat .l { font-size: .7rem; }

  .visitor-banner { margin: .65rem auto 0; font-size: .75rem; padding: .28rem .7rem; }

  .about-card    { padding: 1.5rem 1rem; }
  .section-title { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
  .section-subtitle { font-size: .87rem; margin-bottom: 1.2rem; }
  .skills-grid   { grid-template-columns: 1fr 1fr; gap: .75rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .filter-menu   { gap: .35rem; margin: .7rem 0 1rem; }
  .filter-btn    { padding: .36rem .72rem; font-size: .77rem; }

  .certs-grid    { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .form          { padding: 1.2rem .95rem; }
}

/* Small ≤480px */
@media (max-width: 480px) {
  :root { --side-pad: .9rem; }
  h1             { font-size: clamp(1.5rem, 7vw, 2rem); }
  .profile-box   { width: min(190px, 55%); }
  .project-thumb { height: 145px; font-size: 2rem; }
  .project-body  { padding: .9rem; }
  .stat .n       { font-size: 1.35rem; }
  .skills-grid   { grid-template-columns: 1fr; }
  .about-card    { padding: 1.2rem .85rem; }
}

/* Very small ≤360px (Galaxy A14) */
@media (max-width: 360px) {
  :root         { --side-pad: .75rem; }
  .logo         { font-size: 1.05rem; }
  .hamburger    { width: 36px; height: 36px; }
  .stats        { gap: .65rem; }
  .stat .n      { font-size: 1.2rem; }
  .cert-footer  { flex-direction: column; gap: .45rem; }
  .filter-btn   { padding: .3rem .6rem; font-size: .73rem; }
  .project-thumb { height: 130px; }
}