*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f5f2ec;
  --ink: #0e0e0e;
  --accent: #4f46e5;
  --accent2: #a3e635;
  --muted: #888;
  --border: #d8d4cc;
  --card: #eeeae1;
  --ff-display: 'Bebas Neue', sans-serif;
  --ff-body: 'Syne', sans-serif;
  --ff-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 12px; height: 12px;
  background: var(--ink);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
}
body:has(a:hover) .cursor, body:has(button:hover) .cursor { width: 20px; height: 20px; background: var(--accent); }
body:has(a:hover) .cursor-ring, body:has(button:hover) .cursor-ring { width: 56px; height: 56px; border-color: var(--accent); opacity: 0.5; }

/* ── SIDE SOCIAL ── */
.side-social {
  position: fixed; left: 32px; bottom: 40px;
  display: flex; flex-direction: column; gap: 16px;
  z-index: 100;
}
.side-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.25s;
  background: var(--bg);
}
.side-social a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── NAV ── */
nav {
  position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px;
  background: var(--ink);
  border-radius: 100px;
  padding: 6px;
  z-index: 100;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
nav a {
  padding: 10px 22px;
  border-radius: 100px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.25s;
  white-space: nowrap;
}
nav a.active, nav a:hover {
  background: var(--accent2);
  color: var(--ink);
}

/* ── SAY HI BUTTON ── */
.say-hi {
  position: fixed; right: 32px; bottom: 36px;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: 100px;
  padding: 14px 26px;
  font-family: var(--ff-body);
  font-size: 14px; font-weight: 700;
  cursor: none; z-index: 100;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.25s;
}
.say-hi:hover { background: var(--accent); transform: translateY(-2px); }
.say-hi svg { transition: transform 0.25s; }
.say-hi:hover svg { transform: translateX(4px); }

/* ── SECTIONS ── */
section {
  min-height: 100vh;
  padding: 0 80px;
  position: relative;
}

/* ── HERO ── */
#home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  overflow: hidden;
}
.hero-tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.hero-tag::before {
  content: '';
  width: 32px; height: 1px; background: var(--muted);
}
.hero-headline {
  font-family: var(--ff-display);
  font-size: clamp(72px, 11vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-headline .highlight {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0 16px 4px;
  margin: 0 8px;
  transform: rotate(-0.5deg);
}
.hero-headline .highlight2 {
  display: inline-block;
  background: var(--accent2);
  color: var(--ink);
  padding: 0 16px 4px;
  margin: 0 4px;
  transform: rotate(0.3deg);
}
.hero-sub {
  margin-top: 48px;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}
.hero-desc {
  max-width: 380px;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}
.hero-stats {
  display: flex; gap: 48px;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--ff-display);
  font-size: 52px;
  line-height: 1;
  color: var(--ink);
}
.stat-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint {
  position: absolute; bottom: 100px; right: 80px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint::after {
  content: '';
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{opacity:1;transform:scaleY(1)} 50%{opacity:0.3;transform:scaleY(0.5)} }

/* ── MARQUEE STRIP ── */
.marquee-wrap {
  background: var(--ink);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 22s linear infinite;
}
.marquee-track span {
  font-family: var(--ff-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--bg);
  padding: 0 32px;
}
.marquee-track span.dot {
  color: var(--accent2);
  padding: 0 8px;
  font-size: 26px;
}
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ── ABOUT ── */
#about {
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 80px; padding-bottom: 120px;
}
.section-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--muted); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-headline {
  font-family: var(--ff-display);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
  color: var(--ink);
}
.about-headline em {
  font-style: normal;
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.about-right { display: flex; flex-direction: column; gap: 32px; }
.about-text { font-size: 16px; line-height: 1.8; color: #3a3a3a; }
.skills-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 8px;
}
.skill-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.skill-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.cert-badge {
  background: var(--ink);
  color: var(--bg);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  display: flex; align-items: center; gap: 12px;
}
.cert-badge svg { color: var(--accent2); flex-shrink: 0; }

/* ── PROJECTS ── */
#projects {
  padding-top: 80px; padding-bottom: 160px;
  min-height: auto;
}
.projects-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px;
  gap: 32px;
}
.projects-title {
  font-family: var(--ff-display);
  font-size: clamp(52px, 7vw, 112px);
  line-height: 0.92;
  color: var(--ink);
}
.projects-title span {
  display: block;
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.notion-btn {
  background: var(--accent2);
  color: var(--ink);
  border: none;
  border-radius: 100px;
  padding: 12px 24px;
  font-family: var(--ff-body);
  font-weight: 700; font-size: 13px;
  cursor: none; text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.25s;
}
.notion-btn:hover { transform: scale(1.04); background: var(--ink); color: var(--bg); }

/* Project cards grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex; flex-direction: column;
  gap: 16px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  z-index: 0;
}
.project-card:hover::before { transform: translateY(0); }
.project-card:hover { border-color: var(--accent); color: #fff; }
.project-card > * { position: relative; z-index: 1; }
.project-card:hover .project-tag { background: rgba(255,255,255,0.15); color: #fff; }
.project-card:hover .project-desc { color: rgba(255,255,255,0.8); }
.project-card:hover .project-arrow { background: #fff; color: var(--accent); }

.project-num {
  font-family: var(--ff-mono);
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.1em;
}
.project-card:hover .project-num { color: rgba(255,255,255,0.5); }
.project-name {
  font-family: var(--ff-display);
  font-size: 36px; line-height: 1;
  color: var(--ink);
}
.project-card:hover .project-name { color: #fff; }
.project-tag {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  align-self: flex-start;
  transition: all 0.3s;
}
.project-desc { font-size: 14px; color: #555; line-height: 1.65; transition: color 0.3s; }
.project-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  align-self: flex-end;
  margin-top: auto;
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}

/* Notion iframe section */
.notion-frame-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 24px;
}
.notion-frame-header {
  background: var(--ink);
  padding: 14px 24px;
  display: flex; align-items: center; gap: 10px;
}
.notion-frame-header span {
  font-family: var(--ff-mono);
  font-size: 12px; color: rgba(255,255,255,0.6);
}
.dot-row { display: flex; gap: 6px; }
.dot-row i { width: 10px; height: 10px; border-radius: 50%; }
.d1{background:#ff5f57} .d2{background:#febc2e} .d3{background:#28c840}
.notion-frame-wrap iframe {
  width: 100%; height: 620px;
  border: none; display: block;
  -webkit-user-select: none;
  user-select: none;
}
.notion-placeholder {
  width: 100%; height: 620px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  background: #f9f7f2;
}
.notion-placeholder svg { opacity: 0.2; }
.notion-placeholder p {
  font-family: var(--ff-mono);
  font-size: 13px; color: var(--muted);
  text-align: center; line-height: 1.7;
}
.notion-placeholder code {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 4px;
  font-size: 12px;
}

/* ── ARTICLES ── */
#articles {
  padding-top: 80px; padding-bottom: 160px;
  min-height: auto;
}

/* ── CONTACT ── */
#contact {
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 80px; padding-bottom: 140px;
  min-height: 90vh;
}
.contact-headline {
  font-family: var(--ff-display);
  font-size: clamp(64px, 10vw, 148px);
  line-height: 0.9;
  color: var(--ink);
}
.contact-headline .inv {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 64px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none; color: var(--ink);
  font-size: 15px;
  transition: all 0.25s;
}
.contact-item:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.contact-item:hover svg { color: var(--accent2); }
.contact-item svg { flex-shrink: 0; transition: color 0.25s; }
.contact-right {
  background: var(--ink);
  border-radius: 24px;
  padding: 48px;
  color: var(--bg);
  display: flex; flex-direction: column; gap: 24px;
}
.contact-right h3 {
  font-family: var(--ff-display);
  font-size: 42px; line-height: 1;
}
.contact-right p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.contact-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent2);
  color: var(--ink);
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  transition: all 0.25s; align-self: flex-start;
}
.contact-cta:hover { background: var(--accent); color: #fff; }
.available-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent2);
}
.available-badge::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 3px rgba(163,230,53,0.3);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 0 3px rgba(163,230,53,0.3)} 50%{box-shadow:0 0 0 8px rgba(163,230,53,0.1)} }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 32px 80px;
  display: flex; justify-content: space-between; align-items: center;
}
footer .logo {
  font-family: var(--ff-display);
  font-size: 28px; color: var(--bg);
  letter-spacing: 0.05em;
}
footer p {
  font-family: var(--ff-mono);
  font-size: 11px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}
footer .footer-links {
  display: flex; gap: 24px;
}
footer .footer-links a {
  font-family: var(--ff-mono);
  font-size: 11px; color: rgba(255,255,255,0.4);
  text-decoration: none; letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--accent2); }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── HERO ANIMATION ── */
.hero-headline { animation: heroIn 0.9s cubic-bezier(0.16,1,0.3,1) both; }
.hero-tag { animation: heroIn 0.7s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.1s; }
.hero-sub { animation: heroIn 0.9s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.25s; }
@keyframes heroIn { from { opacity:0; transform: translateY(30px) } to { opacity:1; transform: translateY(0) } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  section { padding: 60px 32px; }
  nav a { padding: 8px 14px; font-size: 11px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .side-social { display: none; }
  .projects-header { flex-direction: column; align-items: flex-start; }
  #projects { padding-top: 60px; padding-bottom: 120px; }
  footer { padding: 24px 32px; flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 768px) {
  section { padding: 40px 20px; }
  #projects { padding-top: 50px; padding-bottom: 80px; }
  .projects-header { margin-bottom: 40px; }
  .projects-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-card { padding: 24px; gap: 12px; }
  .project-card[style*="grid-column"] { grid-column: auto !important; }
  .project-name { font-size: 28px; }
  .project-desc { font-size: 13px; }
  .notion-frame-wrap iframe, .notion-placeholder { height: 480px; }
}
@media (max-width: 600px) {
  section { padding: 32px 16px; }
  #projects { padding-top: 40px; padding-bottom: 60px; }
  nav { bottom: 16px; }
  .say-hi { display: none; }
  .projects-title { font-size: clamp(36px, 9vw, 60px); margin-top: 16px; }
  .section-label { margin-bottom: 24px; font-size: 10px; }
  .projects-grid { gap: 12px; }
  .project-card { padding: 20px; }
  .project-name { font-size: 24px; }
  .project-desc { font-size: 13px; line-height: 1.5; }
  .project-arrow { width: 32px; height: 32px; }
  .notion-frame-wrap iframe, .notion-placeholder { height: 380px; }
}
