/* ==============================
   EDIT WARNA WEBSITE DI SINI
================================ */
:root {
  --bg: #070b14;
  --bg-soft: #0d1321;
  --card: #101827;
  --text: #f5f7fb;
  --muted: #9aa7bb;
  --primary: #60a5fa;
  --primary-2: #38bdf8;
  --border: rgba(148, 163, 184, .16);
  --shadow: 0 20px 60px rgba(0,0,0,.28);
  --nav: rgba(7, 11, 20, .78);
}

[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-soft: #eef3fa;
  --card: #ffffff;
  --text: #101827;
  --muted: #5d6879;
  --primary: #2563eb;
  --primary-2: #0284c7;
  --border: rgba(15, 23, 42, .1);
  --shadow: 0 20px 60px rgba(30, 41, 59, .1);
  --nav: rgba(246, 248, 252, .82);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.section { padding: 110px 7%; position: relative; }
.alt { background: var(--bg-soft); }
.navbar {
  position: fixed; z-index: 1000; top: 0; width: 100%;
  min-height: 72px; padding: 0 7%; display: flex; align-items: center;
  justify-content: space-between; background: var(--nav); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo { font: 800 28px Poppins, sans-serif; letter-spacing: -2px; }
.logo span, h1 span, .eyebrow, .project-link { color: var(--primary); }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 13px; font-weight: 600; transition: .25s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.theme-toggle, .menu-toggle {
  width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%;
  background: var(--card); color: var(--text);
}
.menu-toggle { display: none; }
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: 60px; padding-top: 150px;
  background: radial-gradient(circle at 75% 45%, rgba(37,99,235,.12), transparent 32%);
}
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 2px; margin-bottom: 15px; }
h1, h2, h3 { font-family: Poppins, sans-serif; line-height: 1.2; }
h1 { font-size: clamp(42px, 6vw, 78px); letter-spacing: -3px; max-width: 850px; }
.hero h2 { font-size: clamp(20px, 3vw, 30px); margin: 20px 0; color: var(--muted); }
.hero h2 span { color: var(--primary); }
.cursor { animation: blink .8s infinite; color: var(--primary) !important; }
@keyframes blink { 50% { opacity: 0; } }
.hero-description { max-width: 650px; color: var(--muted); font-size: 16px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 20px; border-radius: 12px; font-weight: 700; border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn.primary { background: var(--primary); color: #07111f; border-color: transparent; }
.btn.secondary { background: var(--card); }
.social-mini { display: flex; gap: 18px; color: var(--muted); font-size: 20px; }
.social-mini a:hover { color: var(--primary); }
.hero-visual { display: grid; place-items: center; }
.profile-wrap { width: min(410px, 80vw); aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.profile-ring {
  position: absolute; inset: 3%; border-radius: 50%;
  border: 1px solid rgba(96,165,250,.45); box-shadow: 0 0 80px rgba(37,99,235,.16);
  animation: float 5s ease-in-out infinite;
}
.profile-photo {
  width: 75%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 8px solid var(--card); box-shadow: var(--shadow); z-index: 2;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.floating-card {
  position: absolute; z-index: 3; background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow); border-radius: 14px; padding: 12px 15px;
  display: flex; gap: 9px; align-items: center; font-weight: 700; font-size: 13px;
  animation: float 4s ease-in-out infinite;
}
.floating-card i { color: var(--primary); }
.card-one { top: 12%; right: 0; }
.card-two { bottom: 13%; left: 0; animation-delay: 1s; }
@keyframes float { 50% { transform: translateY(-12px); } }
.section-heading { max-width: 750px; margin-bottom: 45px; }
.section-heading h2 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -1.5px; }
.about-grid { display: grid; grid-template-columns: 1.5fr .7fr; gap: 25px; }
.about-card, .about-stats, .bio-item, .skill-card, .project-card, .contact-info, .contact-form {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow);
}
.about-card { padding: 35px; }
.about-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(96,165,250,.1); color: var(--primary); font-size: 22px; margin-bottom: 20px;
}
.about-card h3 { font-size: 25px; margin-bottom: 15px; }
.about-card p { color: var(--muted); margin-bottom: 12px; }
.about-stats { display: grid; padding: 10px; }
.stat { display: flex; flex-direction: column; justify-content: center; padding: 20px; border-bottom: 1px solid var(--border); }
.stat:last-child { border-bottom: 0; }
.stat strong { color: var(--primary); font-size: 28px; }
.stat span { color: var(--muted); font-size: 13px; }
.bio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bio-item { padding: 20px 22px; display: flex; justify-content: space-between; gap: 20px; }
.bio-item span { color: var(--muted); font-size: 13px; }
.bio-item strong { text-align: right; font-size: 14px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-card { padding: 24px; position: relative; }
.skill-top { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-bottom: 20px; }
.skill-top i { color: var(--primary); font-size: 25px; width: 28px; }
.progress { height: 7px; background: var(--bg-soft); border-radius: 20px; overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--level); background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: inherit; }
.skill-card small { color: var(--muted); display: block; text-align: right; margin-top: 8px; }
.timeline { max-width: 850px; border-left: 2px solid var(--border); padding-left: 35px; margin-left: 10px; }
.timeline-item { position: relative; padding-bottom: 45px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; left: -43px; top: 7px; box-shadow: 0 0 0 6px var(--bg-soft); }
.timeline-item span { color: var(--primary); font-size: 12px; font-weight: 800; }
.timeline-item h3 { margin: 6px 0; font-size: 21px; }
.timeline-item p { color: var(--muted); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card { overflow: hidden; transition: transform .3s; }
.project-card:hover { transform: translateY(-8px); }
.project-image { aspect-ratio: 16/10; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-body { padding: 24px; }
.tag { font-size: 11px; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.project-body h3 { margin: 8px 0; font-size: 22px; }
.project-body p { color: var(--muted); font-size: 14px; }
.tech { color: var(--muted); font-size: 12px; margin: 15px 0; }
.project-link { font-weight: 700; font-size: 13px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; }
.contact-info, .contact-form { padding: 32px; }
.contact-info h3 { font-size: 27px; margin-bottom: 12px; }
.contact-info > p { color: var(--muted); margin-bottom: 25px; }
.contact-row { display: flex; align-items: center; gap: 15px; padding: 14px 0; border-top: 1px solid var(--border); }
.contact-row > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-soft); color: var(--primary); }
.contact-row span { display: flex; flex-direction: column; font-size: 14px; }
.contact-row small { color: var(--muted); font-size: 11px; }
.contact-form { display: grid; gap: 13px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); outline: none; background: var(--bg-soft);
  color: var(--text); border-radius: 12px; padding: 14px 16px; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.form-note { color: var(--primary); font-size: 13px; min-height: 20px; }
footer { padding: 25px 7%; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
footer a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--card); color: var(--primary); }
.back-top {
  position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border: 0;
  border-radius: 50%; background: var(--primary); color: #07111f; opacity: 0; pointer-events: none;
  transition: .3s; z-index: 900;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .nav-links { gap: 15px; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-visual { order: -1; }
  .profile-wrap { width: 300px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .skills-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; padding: 20px 7%;
    background: var(--nav); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    display: none; flex-direction: column; align-items: flex-start;
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
}
@media (max-width: 600px) {
  .section { padding: 85px 5%; }
  .navbar { padding: 0 5%; }
  h1 { letter-spacing: -2px; }
  .bio-grid, .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .bio-item { flex-direction: column; gap: 4px; }
  .bio-item strong { text-align: left; }
  footer { padding: 20px 5%; gap: 15px; }
}
