/* ========================================================
   FARIZ PORTFOLIO — style.css
   Colors: Primary #2563EB | Secondary #0F172A | Accent #38BDF8
   Background #F8FAFC | Text #1E293B
   Font: Poppins (heading), Inter (body)
   ======================================================== */

/* ── CSS Custom Properties ── */
:root {
  --primary:      #2563EB;
  --primary-dark: #1d4ed8;
  --primary-light:#dbeafe;
  --secondary:    #0F172A;
  --accent:       #38BDF8;
  --accent-dark:  #0ea5e9;
  --bg:           #F8FAFC;
  --bg-card:      #ffffff;
  --bg-alt:       #f1f5f9;
  --text:         #1E293B;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --border:       #e2e8f0;
  --shadow:       0 4px 24px rgba(37,99,235,.08);
  --shadow-lg:    0 12px 40px rgba(37,99,235,.14);
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   0.3s ease;
  --navbar-h:     68px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg:        #0f172a;
  --bg-card:   #1e293b;
  --bg-alt:    #1e293b;
  --text:      #f1f5f9;
  --text-muted:#94a3b8;
  --text-light:#64748b;
  --border:    #334155;
  --shadow:    0 4px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.45);
  --primary-light: #1e3a8a;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--navbar-h);
}

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ── Utility ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-label {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .5rem;
  background: var(--primary-light);
  padding: .3rem 1rem;
  border-radius: 50px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.4);
}
.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }
.w-full { width: 100%; justify-content: center; }

/* ── Scroll Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay { transition-delay: .15s; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  min-width: 0;
}
.nav-logo span { color: var(--primary); }

.nav-menu { display: flex; }
.nav-list { display: flex; gap: .25rem; }
.nav-link {
  padding: .5rem .9rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition);
}
.theme-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-alt);
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-h);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.shape-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -150px; right: -100px;
}
.shape-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  opacity: .2;
}
.shape-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: 50%; left: 40%;
  opacity: .12;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: .75rem;
}
.hero-name span { color: var(--primary); }

.hero-role {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
}
.cursor {
  display: inline-block;
  animation: blink .7s infinite;
  color: var(--accent);
  margin-left: 2px;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Avatar */
.hero-avatar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}
.hero-avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed var(--primary);
  opacity: .4;
  animation: rotate 20s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

.hero-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 8px var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.avatar-placeholder {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  color: var(--text-light);
  background: var(--bg-alt);
  z-index: 0;
}
.hero-avatar img ~ .avatar-placeholder { display: none; }
.hero-avatar.no-img .avatar-placeholder { z-index: 1; }

.hero-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .45rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  display: flex; align-items: center; gap: .4rem;
  box-shadow: var(--shadow);
  color: var(--text);
  white-space: nowrap;
}
.badge-1 { top: 20px; left: -20px; color: var(--primary); border-color: var(--primary-light); }
.badge-2 { bottom: 30px; right: -20px; color: #f59e0b; border-color: #fef3c7; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  color: var(--text-light);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── ABOUT ── */
.about { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
}
.about-img-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(37,99,235,.3) 100%);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem .75rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-num {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label { font-size: .78rem; color: var(--text-muted); }

.about-subtitle {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.about-text {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-info-list {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.about-info-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-muted);
  font-size: .95rem;
}
.about-info-list li i {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── SKILLS ── */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.skill-category-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.skill-category-header i {
  font-size: 1.4rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: .5rem;
  border-radius: 8px;
}
.skill-category-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.skill-cards { display: flex; flex-direction: column; gap: .75rem; }

.skill-card {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.skill-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light);
  border-radius: 8px;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}
.skill-card span {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  min-width: 110px;
}
.skill-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-alt);
  border-radius: 6px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 6px;
  transition: width 1.2s ease;
}

/* Tools badges */
.tools-cards { flex-direction: row; flex-wrap: wrap; gap: .6rem; }
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.tool-badge:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.tool-badge i { color: var(--primary); transition: color var(--transition); }
.tool-badge:hover i { color: #fff; }

/* ── PROJECTS ── */
.projects { background: var(--bg-alt); }

.project-filters {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .5rem 1.4rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-card.hidden { display: none; }

.project-img-wrap {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-alt));
  overflow: hidden;
}
.project-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.project-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary);
  opacity: .35;
}
.no-img-wrap .project-img-fallback { opacity: .6; }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(37,99,235,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }

.project-links { display: flex; gap: .75rem; }
.project-link-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform var(--transition);
}
.project-link-btn:hover { transform: scale(1.1); }

.project-body { padding: 1.5rem; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .85rem;
}
.tag {
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 50px;
}
.tag-laravel  { background: #fef2f2; color: #ef4444; }
.tag-mysql    { background: #f0fdf4; color: #16a34a; }
.tag-bootstrap{ background: #f5f3ff; color: #7c3aed; }
.tag-nginx    { background: #f0fdf4; color: #059669; }
.tag-ci4      { background: #fff7ed; color: #ea580c; }
.tag-php      { background: #eff6ff; color: #3b82f6; }
.tag-html     { background: #fff7ed; color: #f97316; }
.tag-css      { background: #eff6ff; color: #3b82f6; }
.tag-js       { background: #fefce8; color: #ca8a04; }
.tag-tailwind { background: #f0fdfa; color: #0d9488; }
.tag-rn       { background: #eff6ff; color: #2563eb; }
.tag-kotlin   { background: #f5f3ff; color: #7c3aed; }
.tag-api      { background: #f0fdf4; color: #16a34a; }

.project-title {
  font-size: 1.1rem;
  margin-bottom: .5rem;
  color: var(--text);
}
.project-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.project-footer { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── EDUCATION ── */
.education { background: var(--bg); }
.education-layout { max-width: 800px; margin: 0 auto; }

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
}
.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.edu-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  flex-shrink: 0;
}

.edu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}
.edu-degree { font-size: 1.4rem; color: var(--text); }
.edu-gpa {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
}
.edu-school,
.edu-period {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.edu-school i, .edu-period i { color: var(--primary); }

.edu-courses { margin-top: 1.25rem; }
.courses-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .65rem;
}
.course-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.course-badge {
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37,99,235,.15);
}

/* ── CONTACT ── */
.contact { background: var(--bg-alt); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.75;
}

.contact-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-icon-wa { background: #dcfce7; color: #16a34a; }
.contact-icon-gh { background: #f3f4f6; color: #111827; }
.contact-icon-gl { background: #fff7ed; color: #ea580c; }
[data-theme="dark"] .contact-icon-gh { background: #1f2937; color: #f9fafb; }

.contact-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: .15rem;
}
.contact-value {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
.contact-value:hover { color: var(--primary); }

.contact-cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: .78rem;
  color: var(--text-light);
  text-align: center;
}

/* ── FOOTER ── */
.footer {
  background: var(--secondary);
  color: #94a3b8;
  padding: 2.5rem 0 1.5rem;
}
[data-theme="dark"] .footer { background: #020617; }

.footer-container { display: flex; flex-direction: column; gap: 1.75rem; }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.footer-logo span { color: var(--accent); }

.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a {
  font-size: .88rem;
  color: #94a3b8;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }

.footer-socials { display: flex; gap: .75rem; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #94a3b8;
  transition: all var(--transition);
}
.footer-socials a:hover {
  background: var(--accent);
  color: var(--secondary);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  text-align: center;
  font-size: .85rem;
}

/* ── SCROLL TOP ── */
.scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-container      { gap: 2rem; }
  .about-grid          { gap: 2.5rem; }
  .skills-categories   { grid-template-columns: 1fr; }
  .contact-grid        { gap: 2.5rem; }
}

@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
    min-height: 100vh;
    height: auto;           /* biarkan expand jika konten lebih tinggi */
    overflow: visible;      /* jangan potong konten */
    padding-top: var(--navbar-h);
    padding-bottom: 4rem;
    align-items: center;
    justify-content: center;
  }
  .hero-bg-shapes { overflow: hidden; } /* shapes tetap terpotong */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 0 1rem;
    gap: 0;
  }
  .hero-image          { display: none; }
  .hero-desc           { margin: 0 auto 2rem; max-width: 480px; }
  .hero-btns           { justify-content: center; }
  .about-grid          { grid-template-columns: 1fr; }
  .contact-grid        { grid-template-columns: 1fr; }
  .contact-cta-btns    { justify-content: center; }
  .contact-intro       { text-align: center; }
  .hero-scroll-hint    { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }

  /* Hero override: jangan biarkan .section padding override hero */
  .hero {
    padding-top: var(--navbar-h);
    padding-bottom: 3rem;
    display: flex;
    align-items: center;
    height: auto;
    overflow: visible;
  }
  .hero .container.hero-container {
    width: 100%;
  }

  .hero-name    { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .hero-greeting{ font-size: 1rem; }
  .hero-desc    { font-size: .95rem; }
  .hero-role    { font-size: 1.1rem; justify-content: center; }

  /* Navbar mobile */
  .navbar {
    background: var(--bg-card);
    box-shadow: var(--shadow);
  }
  .nav-container {
    gap: .5rem;
    padding: 0 1rem;
  }
  .nav-logo {
    font-size: 1.3rem;
  }
  .nav-menu {
    display: none;                 /* sembunyikan di mobile secara default */
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem 1.5rem;
    z-index: 999;
  }
  .nav-menu.open {
    display: flex;                 /* tampil saat hamburger diklik */
    flex-direction: column;
  }
  .nav-list       { flex-direction: column; gap: .25rem; }
  .nav-hamburger  { display: flex; }

  .skills-categories { grid-template-columns: 1fr; }

  .edu-card { flex-direction: column; gap: 1.25rem; padding: 1.5rem; }
  .edu-header { flex-direction: column; align-items: flex-start; }

  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 500px) {
  .container { padding: 0 1.25rem; }

  .hero {
    min-height: 100svh;
    min-height: 100vh;
    height: auto;          /* expand jika konten lebih tinggi dari viewport */
    overflow: visible;     /* PENTING: jangan potong konten */
    padding-top: var(--navbar-h);
    padding-bottom: 3.5rem;
  }
  .hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 2rem 0;
  }
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }
  .hero-greeting {
    margin-bottom: .5rem;
  }
  .hero-name {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
    margin-bottom: .6rem;
    line-height: 1.2;
  }
  .hero-role {
    font-size: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
  }
  .hero-desc {
    font-size: .9rem;
    margin-bottom: 1.75rem;
    padding: 0 .5rem;
    text-align: center;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: .75rem;
  }
  .hero-btns .btn {
    justify-content: center;
    width: 100%;
    padding: .85rem 1.5rem;
    font-size: .95rem;
  }
  .about-stats     { grid-template-columns: repeat(3,1fr); }
  .projects-grid   { grid-template-columns: 1fr; }

  .hero-scroll-hint { bottom: 1rem; }
}

/* ── Selection colour ── */
::selection { background: var(--primary); color: #fff; }
