/* ═══════════════════════════════════════
   M Aziz – Personal Branding | style.css
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #FAF7F2;
  --dark: #1A1A1A;
  --accent: #C8956C;
  --accent2: #8B6F5E;
  --muted: #6B6B6B;
  --border: #E8E0D5;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ─── CUSTOM CURSOR ─── */
*, *::before, *::after { cursor: none !important; }

#cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
  transition: transform .1s;
}
#cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(200,149,108,.5);
  border-radius: 50%; pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, border-color .3s;
}
body.cursor-hover #cursor { transform: translate(-50%,-50%) scale(2.5); opacity: .5; }
body.cursor-hover #cursor-ring { width: 52px; height: 52px; border-color: var(--accent); }

/* ─── NAVBAR ─── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 1.25rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.06); }

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--dark); text-decoration: none; letter-spacing: .5px;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: .9rem; font-weight: 500;
  color: var(--muted); letter-spacing: .3px;
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--accent); transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  padding: 8rem 5% 4rem;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; right: -10%; top: 10%;
  width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,149,108,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-text { max-width: 540px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem;
}
.hero-tag::before { content: ''; display: block; width: 28px; height: 1.5px; background: var(--accent); }

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.12; color: var(--dark); margin-bottom: 1.5rem;
}
.hero-text h1 em { color: var(--accent); font-style: italic; }

.typewriter { border-right: 2px solid var(--accent); padding-right: 4px; }

.hero-text > p {
  font-size: 1.05rem; line-height: 1.8;
  color: var(--muted); margin-bottom: 2.5rem; max-width: 460px;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  padding: .85rem 2rem; border-radius: 2px;
  background: var(--dark); color: var(--white);
  font-size: .9rem; font-weight: 500; letter-spacing: .5px;
  text-decoration: none; border: 2px solid var(--dark);
  transition: background .3s, color .3s;
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }

.btn-secondary {
  padding: .85rem 2rem; border-radius: 2px;
  background: transparent; color: var(--dark);
  font-size: .9rem; font-weight: 500; letter-spacing: .5px;
  text-decoration: none; border: 2px solid var(--border);
  transition: border-color .3s, color .3s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-visual { display: flex; flex-direction: column; align-items: flex-end; gap: 1.5rem; }

.hero-img-wrap { position: relative; width: 100%; max-width: 420px; }
.hero-img-wrap img {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover; object-position: center top;
  border-radius: 4px; display: block; transition: transform .4s ease;
}
.hero-img-wrap img:hover { transform: scale(1.03); }
.hero-img-wrap::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  z-index: 1; pointer-events: none;
}

.hero-badge {
  position: absolute; bottom: -1.2rem; left: -1.2rem;
  background: var(--white); border: 1px solid var(--border);
  padding: .9rem 1.2rem; border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 2;
}
.hero-badge p { font-size: .75rem; color: var(--muted); }
.hero-badge strong { font-size: 1.1rem; color: var(--dark); display: block; }

.hero-stats { display: flex; gap: 2rem; }
.stat { text-align: center; }
.stat strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--dark); display: block;
}
.stat span { font-size: .78rem; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }

/* ─── SECTION BASE ─── */
section { padding: 6rem 5%; }

.section-label {
  font-size: .75rem; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
}
.section-label::after { content: ''; display: block; height: 1px; width: 40px; background: var(--accent); opacity: .5; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2; color: var(--dark); margin-bottom: 1.2rem;
}
.section-divider { width: 48px; height: 2px; background: var(--accent); margin-bottom: 2rem; }

/* ─── TENTANG ─── */
#tentang {
  background: var(--white);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-text p { font-size: 1rem; line-height: 1.9; color: var(--muted); margin-bottom: 1.2rem; }
.about-skills { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.skill-tag {
  padding: .4rem 1rem; border: 1px solid var(--border);
  border-radius: 2px; font-size: .8rem; color: var(--accent2);
  font-weight: 500; background: var(--cream);
  transition: background .3s, border-color .3s, color .3s;
}
.skill-tag:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

.about-cards { display: flex; flex-direction: column; gap: 1.2rem; }
.about-card {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: box-shadow .3s, transform .3s, opacity .5s, translate .5s;
  opacity: 0; translate: 0 20px;
}
.about-card.visible { opacity: 1; translate: 0 0; }
.about-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.06); transform: translateY(-2px); }
.about-card-icon {
  font-size: 1.5rem; flex-shrink: 0; width: 48px; height: 48px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 2px; display: flex; align-items: center; justify-content: center;
}
.about-card h4 { font-size: .95rem; font-weight: 600; margin-bottom: .3rem; }
.about-card p { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ─── TOOLS ─── */
#tool { background: var(--cream); }
.tools-intro { max-width: 600px; margin-bottom: 3rem; }
.tools-intro p { font-size: 1rem; color: var(--muted); line-height: 1.8; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.tool-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 4px; padding: 2rem;
  transition: box-shadow .3s, transform .3s, opacity .5s, translate .5s;
  display: flex; flex-direction: column; gap: 1rem;
  opacity: 0; translate: 0 20px;
}
.tool-card.visible { opacity: 1; translate: 0 0; }
.tool-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); transform: translateY(-4px); }

.tool-card-head { display: flex; align-items: center; gap: .8rem; }
.tool-icon {
  width: 48px; height: 48px; border-radius: 2px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.tool-card h3 { font-size: 1.05rem; font-weight: 600; }
.tool-card > p { font-size: .875rem; color: var(--muted); line-height: 1.7; flex: 1; }

.tool-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 20px; padding: .3rem .8rem;
  font-size: .75rem; font-weight: 600; color: #16a34a; width: fit-content;
}
.tool-badge::before { content: '●'; font-size: .5rem; }

.tool-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600; color: var(--white);
  text-decoration: none; background: var(--dark);
  padding: .65rem 1.3rem; border-radius: 2px;
  transition: background .3s; width: fit-content; margin-top: .5rem;
}
.tool-link:hover { background: var(--accent); }
.tool-link::after { content: '↗'; }

.tool-url {
  font-size: .78rem; color: var(--accent2); font-family: monospace;
  background: var(--cream); padding: .3rem .7rem;
  border-radius: 2px; border: 1px solid var(--border); width: fit-content;
}

/* ─── CONTACT ─── */
#contact { background: var(--dark); color: var(--white); }
#contact .section-label { color: var(--accent); }
#contact .section-title { color: var(--white); }
#contact .section-divider { background: var(--accent); }

.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 1rem; }
.contact-info > p { font-size: 1rem; line-height: 1.9; color: rgba(255,255,255,.65); margin-bottom: 2rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; font-size: .9rem; color: rgba(255,255,255,.75); }
.contact-list .c-icon {
  width: 40px; height: 40px; border-radius: 2px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .8rem; font-weight: 500; letter-spacing: .5px; color: rgba(255,255,255,.6); text-transform: uppercase; }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px; padding: .85rem 1rem;
  color: var(--white); font-size: .9rem; font-family: inherit;
  outline: none; resize: none; transition: border-color .3s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.25); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.btn-send {
  padding: .9rem 2.2rem; background: var(--accent);
  color: var(--white); border: none; border-radius: 2px;
  font-size: .9rem; font-weight: 600; letter-spacing: .5px;
  transition: background .3s; align-self: flex-start;
}
.btn-send:hover { background: #b47d57; }

/* ─── BACK TO TOP ─── */
#back-top {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 998;
  width: 42px; height: 42px; border-radius: 2px;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,.1);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s, background .3s;
  transform: translateY(10px); text-decoration: none; color: var(--dark);
}
#back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-top:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ─── MUSIC PLAYER ─── */
#music-player {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  display: flex; align-items: center; gap: .85rem;
  background: #121212; border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px; padding: .6rem .6rem .6rem 1.1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transition: max-width .4s ease, padding .4s ease, opacity .3s;
  overflow: hidden; max-width: 56px; opacity: .85;
}
#music-player:hover { opacity: 1; max-width: 340px; padding: .6rem 1rem .6rem 1.1rem; }
#music-player.playing { max-width: 340px; padding: .6rem 1rem .6rem 1.1rem; opacity: 1; }

.mp-btn {
  width: 36px; height: 36px; flex-shrink: 0;
  background: #1DB954; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; border: none; outline: none; transition: transform .2s;
}
.mp-btn:hover { transform: scale(1.1); }

.mp-info {
  display: flex; flex-direction: column;
  overflow: hidden; flex: 1; min-width: 0;
  opacity: 0; transition: opacity .3s;
}
#music-player.playing .mp-info,
#music-player:hover .mp-info { opacity: 1; }

.mp-title { font-size: .8rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-sub { font-size: .7rem; color: rgba(255,255,255,.5); white-space: nowrap; }

.mp-bars { display: flex; align-items: flex-end; gap: 2px; height: 18px; flex-shrink: 0; }
.mp-bars span { display: block; width: 3px; border-radius: 2px; background: #1DB954; }
.mp-bars span:nth-child(1) { height: 8px; }
.mp-bars span:nth-child(2) { height: 14px; }
.mp-bars span:nth-child(3) { height: 10px; }
.mp-bars span:nth-child(4) { height: 16px; }
.mp-bars span:nth-child(5) { height: 6px; }

@keyframes eq {
  0%,100% { transform: scaleY(1); }
  50% { transform: scaleY(.25); }
}
#music-player.playing .mp-bars span:nth-child(1) { animation: eq .8s ease-in-out infinite 0s; }
#music-player.playing .mp-bars span:nth-child(2) { animation: eq .8s ease-in-out infinite .15s; }
#music-player.playing .mp-bars span:nth-child(3) { animation: eq .8s ease-in-out infinite .3s; }
#music-player.playing .mp-bars span:nth-child(4) { animation: eq .8s ease-in-out infinite .1s; }
#music-player.playing .mp-bars span:nth-child(5) { animation: eq .8s ease-in-out infinite .4s; }

.mp-progress-wrap {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,.1);
  border-radius: 0 0 50px 50px; overflow: hidden;
}
.mp-progress { height: 100%; width: 0%; background: #1DB954; transition: width .5s linear; }

/* ─── FOOTER ─── */
footer {
  background: #111; color: rgba(255,255,255,.4);
  padding: 1.8rem 5%; text-align: center;
  font-size: .8rem; border-top: 1px solid rgba(255,255,255,.05);
}
footer a { color: var(--accent); text-decoration: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 7rem; }
  .hero-visual { align-items: center; }
  .hero-img-wrap { max-width: 340px; }
  #tentang { grid-template-columns: 1fr; gap: 3rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border); gap: 1.2rem;
  }
  .hamburger { display: flex; }
  .hero-stats { gap: 1.2rem; }
  section { padding: 4rem 5%; }
}

/* ─── BLOG SECTION ─── */
#blog { background: var(--white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.blog-card {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.8rem;
  display: flex; flex-direction: column; gap: .8rem;
  text-decoration: none; color: inherit;
  transition: box-shadow .3s, transform .3s;
  opacity: 0; translate: 0 20px;
}
.blog-card.visible { opacity: 1; translate: 0 0; }
.blog-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); transform: translateY(-4px); }

.blog-card-top { display: flex; align-items: center; justify-content: space-between; }
.blog-emoji { font-size: 1.8rem; }
.blog-tag {
  font-size: .7rem; font-weight: 600; letter-spacing: .5px;
  background: var(--accent); color: var(--white);
  padding: .2rem .7rem; border-radius: 20px;
}
.blog-card h3 { font-size: 1rem; font-weight: 600; color: var(--dark); line-height: 1.4; }
.blog-card p { font-size: .85rem; color: var(--muted); line-height: 1.7; flex: 1; }
.blog-meta {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; color: var(--muted);
  padding-top: .8rem; border-top: 1px solid var(--border);
}
.blog-meta span { opacity: .5; }
.blog-read {
  margin-left: auto; font-size: .78rem; font-weight: 600;
  color: var(--accent);
}
