/* =========================================================
   TechyCK — Personal Brand
   Dark · Glassmorphism · Cyan/Blue/Purple
   ========================================================= */

:root {
  /* palette */
  --bg:        #060710;
  --bg-2:      #090b1a;
  --ink:       #eef0fa;
  --muted:     #9094ad;
  --muted-2:   #6a6f8c;
  --cyan:      #22d3ee;
  --blue:      #5b8cff;
  --indigo:    #818cf8;
  --purple:    #c084fc;
  --line:      rgba(255,255,255,.08);
  --glass:     rgba(255,255,255,.04);
  --glass-2:   rgba(255,255,255,.06);
  --grad:      linear-gradient(110deg, var(--cyan), var(--indigo) 50%, var(--purple));
  /* type */
  --display: "Clash Display", "Sora", system-ui, sans-serif;
  --body:    "Satoshi", -apple-system, system-ui, sans-serif;
  /* layout */
  --container: 1180px;
  --radius: 22px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--indigo); color: #060710; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; gap: 26px;
  background: var(--bg);
  transition: opacity .7s ease, visibility .7s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: .08em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; text-align: center;
  animation: pulseGlow 1.6s ease-in-out infinite;
}
.loader__bar { width: min(240px, 60vw); height: 3px; border-radius: 4px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; border-radius: 4px; background: var(--grad); animation: load 1.2s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
@keyframes pulseGlow { 50% { filter: drop-shadow(0 0 18px rgba(129,140,248,.5)); } }

/* =========================================================
   BACKGROUND LAYERS
   ========================================================= */
.bg-aurora {
  position: fixed; inset: -20%; z-index: -3; pointer-events: none;
  background:
    radial-gradient(40% 40% at 20% 20%, rgba(91,140,255,.20), transparent 60%),
    radial-gradient(45% 45% at 80% 25%, rgba(192,132,252,.18), transparent 60%),
    radial-gradient(50% 50% at 60% 80%, rgba(34,211,238,.14), transparent 60%);
  filter: blur(20px);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
.bg-particles { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 54px);
  transition: padding .3s ease, background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: rgba(8,9,18,.6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo {
  display: grid; place-content: center; width: 38px; height: 38px; border-radius: 11px;
  font-family: var(--display); font-weight: 700; font-size: .95rem; color: #060710;
  background: var(--grad); box-shadow: 0 0 22px rgba(129,140,248,.4);
}
.nav__name { font-family: var(--display); font-weight: 600; font-size: 1.18rem; letter-spacing: .02em; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: .92rem; color: var(--muted); transition: color .25s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: 9px 18px; border-radius: 999px; color: var(--ink) !important;
  border: 1px solid var(--line); background: var(--glass);
  transition: border-color .25s ease, box-shadow .25s ease !important;
}
.nav__cta:hover { border-color: var(--indigo); box-shadow: 0 0 22px rgba(129,140,248,.3); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.section {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 40px);
}
.section__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 54px; }
.section__index {
  font-family: var(--display); font-size: .9rem; font-weight: 600;
  color: var(--cyan); letter-spacing: .1em;
}
.section__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.01em;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh;
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  padding: 130px clamp(20px, 5vw, 40px) 80px;
}
.hero__spotlight {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(129,140,248,.16), transparent 65%);
  pointer-events: none; transform: translate(-50%, -50%); left: 30%; top: 40%;
  transition: left .15s ease, top .15s ease; z-index: -1;
}
.hero__eyebrow {
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3.6rem, 13vw, 8.5rem); line-height: .92; letter-spacing: -.02em;
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero__name {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.3rem, 3.4vw, 2rem); margin-top: 14px; color: var(--ink);
}
.hero__typed {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; font-size: clamp(1.05rem, 2.4vw, 1.4rem);
}
.hero__typed-label { color: var(--muted); }
.typed { font-weight: 700; color: var(--cyan); }
.caret { color: var(--indigo); font-weight: 300; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__statement {
  margin-top: 30px; max-width: 540px; font-size: 1.05rem;
  color: var(--muted); line-height: 1.7; border-left: 2px solid var(--indigo); padding-left: 18px;
}
.hero__actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  cursor: pointer; transition: transform .25s ease, box-shadow .3s ease, background .3s ease;
}
.btn--primary { color: #060710; background: var(--grad); box-shadow: 0 10px 36px rgba(91,140,255,.32); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 46px rgba(129,140,248,.5); }
.btn--primary svg { transition: transform .25s ease; }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { color: var(--ink); border: 1px solid var(--line); background: var(--glass); }
.btn--ghost:hover { border-color: var(--indigo); transform: translateY(-3px); }

/* hero avatar */
.hero__visual { display: grid; place-items: center; }
.avatar-frame { position: relative; width: min(420px, 80vw); aspect-ratio: 1; }
.avatar-frame__img {
  width: 100%; height: 100%; border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 40%, rgba(91,140,255,.10), transparent 70%);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.avatar-frame__glow {
  position: absolute; inset: -12%; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--indigo), var(--purple), var(--cyan));
  filter: blur(38px); opacity: .35; z-index: -1; animation: spin 14s linear infinite;
}
.avatar-frame__ring {
  position: absolute; inset: -4%; border-radius: 50%;
  border: 1px dashed rgba(129,140,248,.35); animation: spin 30s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-frame__chip {
  position: absolute; padding: 7px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: rgba(10,12,24,.7); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: bob 5s ease-in-out infinite;
}
.avatar-frame__chip--1 { top: 8%; left: -6%; color: var(--cyan); }
.avatar-frame__chip--2 { bottom: 16%; left: -10%; color: var(--purple); animation-delay: 1s; }
.avatar-frame__chip--3 { top: 22%; right: -12%; color: var(--indigo); animation-delay: 2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 14px;
  display: grid; justify-items: center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 8px; border-radius: 3px; background: var(--indigo); animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }
.about__lead { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 3vw, 1.85rem); line-height: 1.35; margin-bottom: 26px; }
.about__lead em { color: var(--cyan); font-style: normal; }
.about__text p { color: var(--muted); margin-bottom: 18px; max-width: 60ch; }
.about__panel {
  padding: 30px; border-radius: var(--radius); background: var(--glass);
  border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.about__facts { list-style: none; display: grid; gap: 18px; }
.about__facts li { display: grid; gap: 3px; font-weight: 500; }
.about__facts span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }

/* =========================================================
   CARDS (What Drives Me)
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease;
}
.card:hover { transform: translateY(-6px); background: var(--glass-2); }
.card:hover::before { opacity: 1; }
.card__emoji { font-size: 1.8rem; display: block; margin-bottom: 16px; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .94rem; }

/* =========================================================
   JOURNEY TIMELINE
   ========================================================= */
.timeline { list-style: none; position: relative; max-width: 700px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--cyan), var(--indigo), var(--purple));
  opacity: .5;
}
.timeline__item { position: relative; padding: 0 0 38px 50px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 3px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--indigo); box-shadow: 0 0 0 4px rgba(129,140,248,.12);
}
.timeline__dot--loop { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(192,132,252,.16), 0 0 22px rgba(192,132,252,.5); }
.timeline__body h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin-bottom: 4px; }
.timeline__body p { color: var(--muted); }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  position: relative; padding: clamp(90px, 14vw, 160px) clamp(20px, 5vw, 40px);
  text-align: center; overflow: hidden;
}
.manifesto::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, rgba(91,140,255,.10), transparent 70%);
}
.manifesto__inner { max-width: 900px; margin: 0 auto; }
.manifesto__tag { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 34px; }
.manifesto__lines { display: grid; gap: 6px; }
.manifesto__lines span {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.7rem, 6vw, 3.4rem); line-height: 1.1; letter-spacing: -.01em;
  color: var(--muted-2); transition: color .4s ease;
}
.manifesto__lines span.in { color: var(--ink); }
.manifesto__repeat { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

/* =========================================================
   CURRENT FOCUS
   ========================================================= */
.focus__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.focus__item {
  position: relative; padding: 28px 22px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line);
  font-family: var(--display); font-weight: 600; font-size: 1.08rem;
  display: flex; align-items: flex-end; min-height: 130px;
  transition: transform .3s ease, background .3s ease, color .3s ease;
  overflow: hidden;
}
.focus__item span {
  position: absolute; top: 16px; left: 22px; font-size: .78rem; color: var(--cyan); letter-spacing: .1em;
}
.focus__item:hover { transform: translateY(-5px); background: var(--grad); color: #060710; }
.focus__item:hover span { color: rgba(6,7,16,.7); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding-bottom: clamp(80px, 12vw, 150px); }
.contact__card {
  text-align: center; max-width: 760px; margin: 0 auto;
  padding: clamp(44px, 7vw, 72px) clamp(24px, 5vw, 56px);
  border-radius: 30px; background: var(--glass);
  border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  position: relative; overflow: hidden;
}
.contact__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 50% 0%, rgba(129,140,248,.16), transparent 70%);
}
.contact__tag { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.contact__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 4vw, 2.3rem); margin-bottom: 32px; line-height: 1.25; }
.contact__email {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 3.5vw, 1.7rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .25s ease;
}
.contact__email svg { color: var(--indigo); flex: none; }
.contact__email:hover { opacity: .8; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  text-align: center; padding: 60px 20px 70px;
  border-top: 1px solid var(--line); background: var(--bg-2);
}
.footer__quote { font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 3vw, 1.5rem); line-height: 1.7; color: var(--muted); margin-bottom: 28px; }
.footer__quote strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.footer__meta { font-size: .85rem; color: var(--muted-2); letter-spacing: .04em; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
  .hero__statement { margin-inline: auto; border-left: 0; padding-left: 0; border-top: 2px solid var(--indigo); padding-top: 16px; }
  .hero__typed, .hero__actions { justify-content: center; }
  .hero__visual { order: -1; margin-bottom: 10px; }
  .about__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .focus__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 100px 32px; background: rgba(8,9,18,.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; }
  .nav__toggle { display: flex; z-index: 101; }
}

@media (max-width: 560px) {
  .cards, .focus__grid { grid-template-columns: 1fr; }
  .avatar-frame__chip { font-size: .7rem; padding: 6px 11px; }
}
