/* =========================================================
   ARSHIA CLONE — style.css
   Layout kartu/tab : sidebar kiri | kartu utama | strip kanan
   SEMUA WARNA UTAMA ADA DI :root DI BAWAH INI.
   ========================================================= */

:root {
  --accent: #00b894;
  --accent-2: #0984e3;
  --accent-3: #e17055;

  /* Light theme (default, seperti demo asli) */
  --bg: #eef1f6;
  --card: #ffffff;
  --card-2: #f5f7fa;
  --text: #2d3436;
  --muted: #8a94a6;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 20px 60px rgba(45, 52, 54, .12);
}

/* Dark theme (aktif via tombol gear) */
[data-theme="dark"] {
  --bg: #15171e;
  --card: #1e2129;
  --card-2: #262a35;
  --text: #e8eaf0;
  --muted: #9aa3b5;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow: hidden; /* scroll hanya di dalam kartu */
  transition: background .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---------- Background shapes beranimasi ---------- */
.bg-shapes { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.shape {
  position: absolute; opacity: .5;
  background: var(--accent);
  animation: drift 14s ease-in-out infinite;
}
.s1 { width: 120px; height: 120px; border-radius: 30%; top: 8%; left: 6%; opacity: .12; }
.s2 { width: 70px; height: 70px; border-radius: 50%; top: 60%; left: 3%; background: var(--accent-2); opacity: .15; animation-delay: 2s; }
.s3 { width: 90px; height: 90px; border-radius: 50%; top: 12%; right: 8%; background: var(--accent-3); opacity: .15; animation-delay: 4s; }
.s4 { width: 140px; height: 140px; border-radius: 30%; bottom: -30px; right: 22%; opacity: .1; animation-delay: 6s; }
.s5 { width: 60px; height: 60px; border-radius: 50%; top: 40%; right: 3%; background: var(--accent); opacity: .2; animation-delay: 1s; }
.s6 { width: 80px; height: 80px; border-radius: 30%; bottom: 10%; left: 38%; background: var(--accent-2); opacity: .1; animation-delay: 3s; }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-35px) rotate(25deg); }
}

/* ---------- Layout 3 kolom ---------- */
.layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 250px 1fr 110px;
  gap: 26px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px;
  height: 100vh;
}

/* ---------- Sidebar kiri ---------- */
.sidebar {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 18px; gap: 26px; overflow: hidden;
}
.profile { text-align: center; }
.profile img {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--accent); padding: 4px; margin-bottom: 12px;
}
.profile h2 { font-size: 1.05rem; font-weight: 700; }
.profile p { font-size: .8rem; color: var(--accent); }
.side-nav { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.side-nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 18px; border-radius: 12px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: background .3s, color .3s, padding .3s;
}
.side-nav a i { width: 20px; text-align: center; font-size: 1rem; }
.side-nav a:hover { color: var(--accent); padding-left: 24px; }
.side-nav a.active {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px rgba(0, 184, 148, .35);
}
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ---------- Kartu utama ---------- */
.main-card {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.main-card::-webkit-scrollbar { width: 6px; }
.main-card::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 6px; }
.main-card::-webkit-scrollbar-track { background: transparent; }

/* ---------- Page (tab) : hanya satu yang tampil ---------- */
.page { display: none; }
.page.active {
  display: block;
  animation: pageIn .55s cubic-bezier(.22, .8, .3, 1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(26px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.page-inner { padding: 46px 48px 56px; min-height: 100%; }

/* ---------- Home / Hero ---------- */
#home .page-inner {
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; min-height: 60vh;
}
.hero-hello { font-size: 1.1rem; color: var(--muted); }
.hero-hello strong { color: var(--accent); }
#home h1 { font-size: 2.6rem; font-weight: 800; margin: 8px 0; }
.hero-role { font-size: 1.5rem; font-weight: 600; margin-bottom: 18px; }
.hero-role #typed { color: var(--accent); }
.hero-desc { color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 40px;
  font-weight: 600; font-size: .92rem; border: none; cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(0, 184, 148, .35);
}
.btn-ghost {
  background: none; border: 2px solid var(--accent); color: var(--accent);
}
.btn:hover { transform: translateY(-3px); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  transition: opacity .6s, visibility .6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader {
  width: 48px; height: 48px; border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Section title & umum ---------- */
.section-title h2 { font-size: 1.55rem; font-weight: 700; text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-title h2 span { color: var(--accent); }
.sub-title { font-size: 1.05rem; font-weight: 600; margin: 26px 0 16px; display: flex; align-items: center; gap: 10px; }
.sub-title i { color: var(--accent); }
.lead { color: var(--muted); margin-bottom: 18px; }

/* ---------- About ---------- */
.about-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; margin-bottom: 46px; }
.about-text > p { color: var(--muted); margin-bottom: 22px; }
.about-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-bottom: 26px; font-size: .9rem; }
.about-info span { font-weight: 600; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: center; }
.counter-box {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 14px; text-align: center; transition: transform .3s;
}
.counter-box:hover { transform: translateY(-5px); }
.counter-box h3 { font-size: 1.7rem; font-weight: 800; color: var(--accent); }
.counter-box p { font-size: .8rem; color: var(--muted); }
.skills-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-bottom: 40px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 30px;
  padding: 6px 16px; font-size: .8rem; color: var(--muted);
}
.skill { margin-bottom: 16px; }
.skill-head { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 500; margin-bottom: 7px; }
.skill-val { color: var(--accent); }
.skill-track { height: 8px; background: var(--card-2); border-radius: 6px; overflow: hidden; }
.skill-fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.4s ease; }
.lang-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.lang-list em { color: var(--muted); font-style: normal; }

/* ---------- Testimonial slider ---------- */
.testimonial-slider {
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 30px; text-align: center; max-width: 700px; margin: 0 auto;
}
.t-item { display: none; }
.t-item.active { display: block; animation: pageIn .5s ease; }
.t-item p { font-size: .98rem; font-style: italic; margin-bottom: 18px; }
.t-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.t-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.t-author h4 { font-size: .95rem; text-align: left; }
.t-author span { font-size: .78rem; color: var(--muted); }
.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.t-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; transition: background .3s, transform .3s; }
.t-dots button.active { background: var(--accent); transform: scale(1.25); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.service-card {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 22px; transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card i {
  width: 50px; height: 50px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 14px;
}
.service-card h3 { font-size: 1rem; margin-bottom: 8px; }
.service-card p { font-size: .85rem; color: var(--muted); }

/* ---------- Resume timeline ---------- */
.timeline-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.tl-item { position: relative; padding: 0 0 24px 26px; border-left: 2px solid var(--border); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -8px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--accent);
}
.tl-date {
  display: inline-block; background: var(--card-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 2px 14px; font-size: .74rem; color: var(--accent);
  margin-bottom: 8px;
}
.tl-item h4 { font-size: .98rem; }
.tl-item p { font-size: .85rem; color: var(--muted); }

/* ---------- Portfolio ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter {
  background: var(--card-2); border: 1px solid var(--border); color: var(--text);
  padding: 8px 22px; border-radius: 30px; font-size: .85rem; cursor: pointer;
  transition: background .3s, color .3s;
}
.filter.active, .filter:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
}
.work-card.hidden { display: none; }
.work-card img { width: 100%; height: 200px; object-fit: cover; transition: transform .5s; }
.work-card:hover img { transform: scale(1.08); }
.work-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-overlay h4 { color: #fff; font-size: .95rem; }
.work-overlay span { color: var(--accent); font-size: .78rem; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.blog-card {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.blog-img { position: relative; }
.blog-img img { width: 100%; height: 170px; object-fit: cover; }
.blog-date {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--accent); color: #fff; font-size: .72rem;
  padding: 4px 12px; border-radius: 20px;
}
.blog-body { padding: 18px; }
.blog-body h3 { font-size: .98rem; margin-bottom: 10px; line-height: 1.45; }
.blog-body p { color: var(--muted); font-size: .85rem; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.c-item { display: flex; gap: 16px; margin-bottom: 26px; }
.c-item i {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.c-item h4 { font-size: 1rem; }
.c-item p { color: var(--muted); font-size: .9rem; }
.contact-form {
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
}
.contact-form h3 { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 14px;
  color: var(--text); font-family: inherit; font-size: .9rem; outline: none;
  transition: border-color .3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }

/* ---------- Strip kanan ---------- */
.right-strip {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 14px; gap: 22px;
}
.date-badge { text-align: center; }
.date-badge span { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.date-badge strong { font-size: 1.7rem; color: var(--accent); line-height: 1.2; }
.follow-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.strip-socials { display: flex; flex-direction: column; gap: 12px; }
.strip-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
  transition: background .3s, color .3s, transform .3s;
}
.strip-socials a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.strip-arrows { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.strip-arrows button {
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: .85rem;
  transition: transform .25s, opacity .25s;
}
.strip-arrows button:hover { transform: scale(1.1); }

/* ---------- Gear tema ---------- */
.theme-toggle {
  position: fixed; right: 24px; bottom: 24px; z-index: 1500;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--card); color: var(--accent); font-size: 1.15rem;
  box-shadow: var(--shadow); transition: transform .5s;
}
.theme-toggle:hover { transform: rotate(120deg); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90%; max-height: 85%; border-radius: 10px; }
.lb-close {
  position: absolute; top: 20px; right: 30px; background: none; border: none;
  color: #fff; font-size: 2.4rem; cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 210px 1fr; height: auto; min-height: 100vh; }
  .right-strip { display: none; }
  body { overflow: auto; }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .sidebar {
    flex-direction: row; justify-content: space-between;
    border-radius: 0; padding: 14px 18px; position: sticky; top: 0; z-index: 500;
  }
  .profile { display: flex; align-items: center; gap: 12px; text-align: left; }
  .profile img { width: 44px; height: 44px; margin: 0; }
  .hamburger { display: block; }
  .side-nav {
    position: fixed; top: 0; left: -100%; height: 100vh; width: 250px;
    flex-direction: column; justify-content: center; padding: 20px;
    background: var(--card); box-shadow: 10px 0 40px rgba(0,0,0,.2);
    transition: left .4s; z-index: 900; gap: 10px;
  }
  .side-nav.open { left: 0; }
  .main-card { border-radius: 0; }
  .page-inner { padding: 30px 22px 44px; }
  .about-wrap, .skills-wrap, .timeline-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .services-grid, .works-grid { grid-template-columns: repeat(2, 1fr); }
  #home h1 { font-size: 1.9rem; }
  .hero-role { font-size: 1.2rem; }
}
@media (max-width: 560px) {
  .services-grid, .works-grid, .blog-grid, .counters, .about-info, .form-row { grid-template-columns: 1fr; }
}