/* ============================================================
   tya.my.id — Personal Branding
   Kusumaningrum Prasetyani, S.Pd., M.Pd.
   ============================================================ */

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --secondary: #ec4899;
  --accent: #f59e0b;
  --dark: #1e1b2e;
  --dark-2: #2a2540;
  --text: #3f3a56;
  --text-light: #6b6584;
  --bg: #fdfcff;
  --bg-alt: #f6f3fc;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --gradient-soft: linear-gradient(135deg, rgba(124,58,237,.08), rgba(236,72,153,.08));
  --shadow: 0 10px 40px rgba(124, 58, 237, 0.12);
  --shadow-lg: 0 20px 60px rgba(124, 58, 237, 0.18);
  --radius: 20px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-top: 14px; }

.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(124,58,237,.1);
  padding: 6px 18px;
  border-radius: 100px;
}
.section-tag.light { color: #fff; background: rgba(255,255,255,.15); }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(253,252,255,.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.navbar.scrolled {
  background: rgba(253,252,255,.92);
  border-bottom-color: rgba(124,58,237,.1);
  box-shadow: 0 4px 24px rgba(124,58,237,.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-badge {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--gradient);
  color: #fff; font-weight: 800; font-size: .95rem;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
.brand-name { font-weight: 800; font-size: 1.15rem; color: var(--dark); }
.brand-name .accent { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none; color: var(--text-light);
  font-weight: 600; font-size: .92rem;
  padding: 8px 16px; border-radius: 100px;
  transition: all .25s ease;
}
.nav-links a:hover { color: var(--primary); background: rgba(124,58,237,.08); }
.nav-links a.active { color: var(--primary); }
.nav-links a.nav-cta {
  background: var(--gradient); color: #fff; margin-left: 8px;
  box-shadow: 0 4px 14px rgba(124,58,237,.3);
}
.nav-links a.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(124,58,237,.4); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  width: 26px; height: 3px; border-radius: 3px;
  background: var(--dark); transition: all .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
  animation: floatBlob 12s ease-in-out infinite alternate;
}
.blob-1 { width: 480px; height: 480px; background: rgba(124,58,237,.25); top: -120px; right: -80px; }
.blob-2 { width: 380px; height: 380px; background: rgba(236,72,153,.18); bottom: -60px; left: -100px; animation-delay: -4s; }
.blob-3 { width: 260px; height: 260px; background: rgba(245,158,11,.15); top: 40%; left: 45%; animation-delay: -8s; }
@keyframes floatBlob {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,-30px) scale(1.08); }
}

.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 48px; align-items: center; width: 100%;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600; color: var(--primary);
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.15);
  padding: 7px 18px; border-radius: 100px; margin-bottom: 22px;
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800; letter-spacing: -1px; margin-bottom: 16px;
}
.hero-title { font-size: clamp(1rem, 2.2vw, 1.2rem); font-weight: 600; color: var(--dark); margin-bottom: 16px; }
.hero-title strong { color: var(--primary); }
.hero-desc { color: var(--text-light); font-size: 1.05rem; max-width: 520px; margin-bottom: 32px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 100px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: all .25s ease;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 8px 24px rgba(124,58,237,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(124,58,237,.45); }
.btn-primary .arrow { transition: transform .25s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  color: var(--dark); background: var(--white);
  border: 2px solid rgba(124,58,237,.2);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-num, .stat-plus { font-size: 1.9rem; font-weight: 800; color: var(--dark); }
.stat-plus { color: var(--secondary); }
.stat-label { display: block; font-size: .82rem; color: var(--text-light); font-weight: 600; }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.avatar-ring {
  position: relative;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7c3aed, #ec4899, #f59e0b, #7c3aed);
  padding: 8px;
  animation: spinRing 10s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
.avatar {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(145deg, #f5f0ff, #fdeef7);
  display: grid; place-items: center;
  animation: spinRing 10s linear infinite reverse;
}
.avatar span {
  font-family: 'Playfair Display', serif;
  font-size: 5.5rem; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.orbit {
  position: absolute; font-size: 1.8rem;
  background: #fff; border-radius: 16px; padding: 10px;
  box-shadow: var(--shadow);
  animation: bob 3.5s ease-in-out infinite;
}
.orbit-1 { top: -8px; right: 10px; }
.orbit-2 { bottom: 20px; left: -24px; animation-delay: -1.2s; }
.orbit-3 { top: 45%; right: -30px; animation-delay: -2.4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border: 1px solid rgba(124,58,237,.12);
  border-radius: 16px; padding: 12px 18px;
  box-shadow: var(--shadow);
  animation: bob 4s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .88rem; color: var(--dark); line-height: 1.3; }
.float-card small { font-size: .75rem; color: var(--text-light); }
.fc-icon { font-size: 1.6rem; }
.card-1 { top: 6%; left: -12%; animation-delay: -.8s; }
.card-2 { bottom: 4%; right: -10%; animation-delay: -2s; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
}
.mouse {
  display: block; width: 26px; height: 42px;
  border: 2px solid var(--text-light); border-radius: 14px;
  position: relative;
}
.wheel {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--primary);
  animation: wheelDrop 1.6s ease-in-out infinite;
}
@keyframes wheelDrop {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 24px; }
}

/* ============ MARQUEE ============ */
.marquee {
  background: var(--gradient);
  padding: 16px 0; overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 48px;
  animation: marquee 24s linear infinite;
}
.marquee-track span {
  color: rgba(255,255,255,.92); font-weight: 700; font-size: .95rem;
  letter-spacing: .5px;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ TENTANG ============ */
.about-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 56px; align-items: center;
}
.about-text .lead { font-size: 1.2rem; color: var(--dark); font-weight: 500; margin-bottom: 18px; }
.about-text p { margin-bottom: 16px; color: var(--text-light); }
.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li {
  position: relative; padding-left: 34px; font-weight: 600; color: var(--dark);
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  font-size: .75rem; display: grid; place-items: center;
}

.about-cards { display: grid; gap: 22px; }
.mini-card {
  background: var(--white); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  border: 1px solid rgba(124,58,237,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.mini-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mini-icon { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.mini-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.mini-card p { color: var(--text-light); font-size: .95rem; font-style: italic; }
.mini-card p:last-child { font-style: normal; }

/* ============ DEDIKASI CARDS ============ */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 30px;
  border: 1px solid rgba(124,58,237,.08);
  box-shadow: 0 4px 20px rgba(124,58,237,.06);
  transition: all .3s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 62px; height: 62px; border-radius: 18px;
  background: var(--gradient-soft);
  display: grid; place-items: center; font-size: 1.8rem;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: .94rem; }

/* ============ TIMELINE ============ */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 27px; top: 8px; bottom: 8px;
  width: 3px; background: linear-gradient(to bottom, #7c3aed, #ec4899, #f59e0b);
  border-radius: 3px;
}
.tl-item {
  position: relative; padding-left: 84px; margin-bottom: 42px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-marker {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--primary);
  display: grid; place-items: center; font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(124,58,237,.2);
}
.tl-content {
  background: var(--white); border-radius: var(--radius);
  padding: 26px 30px;
  border: 1px solid rgba(124,58,237,.08);
  box-shadow: 0 4px 20px rgba(124,58,237,.06);
  transition: all .3s ease;
}
.tl-content:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.tl-badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--secondary); background: rgba(236,72,153,.1);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 10px;
}
.tl-content h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tl-content p { color: var(--text-light); font-size: .95rem; }

/* ============ GALERI ============ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.g-item {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background: linear-gradient(145deg, #f5f0ff, #fdeef7);
  border: 2px dashed rgba(124,58,237,.2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  transition: all .3s ease; cursor: pointer;
}
.g-item span { font-size: 2.6rem; transition: transform .3s ease; }
.g-item p { font-weight: 700; color: var(--dark); font-size: .95rem; }
.g-item:hover {
  border-style: solid; border-color: var(--primary);
  background: var(--white); box-shadow: var(--shadow);
  transform: translateY(-6px);
}
.g-item:hover span { transform: scale(1.2) rotate(-6deg); }
.gallery-note { text-align: center; margin-top: 32px; color: var(--text-light); font-size: .9rem; }

/* ============ KONTAK ============ */
.contact-box {
  background: var(--gradient);
  border-radius: 28px;
  padding: 64px 56px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  box-shadow: 0 24px 64px rgba(124,58,237,.3);
  position: relative; overflow: hidden;
}
.contact-box::before {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -120px; right: -80px;
}
.contact-text h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 14px 0 12px; }
.contact-text p { color: rgba(255,255,255,.85); }

.contact-links { display: grid; gap: 16px; position: relative; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border-radius: 16px; padding: 16px 22px;
  text-decoration: none; transition: all .25s ease;
}
a.contact-item:hover { background: rgba(255,255,255,.22); transform: translateX(6px); }
.ci-icon { font-size: 1.6rem; }
.contact-item strong { display: block; color: #fff; font-size: .95rem; }
.contact-item small { color: rgba(255,255,255,.8); font-size: .85rem; }

/* ============ FOOTER ============ */
.footer {
  background: var(--dark); padding: 48px 0 32px;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 20px; text-align: left;
}
.footer-brand strong { color: #fff; display: block; font-size: 1rem; }
.footer-brand small { color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-quote {
  color: rgba(255,255,255,.75); font-style: italic;
  margin-bottom: 14px;
}
.footer-copy { color: rgba(255,255,255,.45); font-size: .82rem; }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  border: none; font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 8px 24px rgba(124,58,237,.4);
  opacity: 0; pointer-events: none; transform: translateY(16px);
  transition: all .3s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 60px; }
  .hero-desc { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .avatar-ring { width: 240px; height: 240px; }
  .avatar span { font-size: 4rem; }
  .card-1 { left: 0; }
  .card-2 { right: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-box { grid-template-columns: 1fr; padding: 48px 32px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(253,252,255,.98);
    backdrop-filter: blur(16px);
    padding: 20px 24px 28px;
    border-bottom: 1px solid rgba(124,58,237,.1);
    box-shadow: 0 20px 40px rgba(124,58,237,.1);
    transform: translateY(-130%); opacity: 0;
    transition: all .35s ease; z-index: -1;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; z-index: 99; }
  .nav-links a { padding: 12px 16px; border-radius: 12px; text-align: center; }
  .nav-links a.nav-cta { margin-left: 0; margin-top: 8px; }
  .hamburger { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 23px; }
  .tl-item { padding-left: 68px; }
  .tl-marker { width: 48px; height: 48px; font-size: 1.2rem; }
  .hero-stats { gap: 24px; }
  .orbit-3 { right: -8px; }
  .scroll-hint { display: none; }
}
