/* ============================================================
   Vinu Kevin Diesel — Portfolio
   Modern dark theme · self-contained · responsive
   ============================================================ */

:root {
  --bg:        #0a0a0c;
  --bg-alt:    #100f12;
  --surface:   #171519;
  --surface-2: #211d23;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(207, 92, 116, 0.22);

  --text:      #ececee;
  --text-dim:  #a6a3a8;
  --text-mute: #6f6a70;

  --accent:    #971d3a;   /* deep burgundy */
  --accent-2:  #cf5c74;   /* rose */
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);

  --radius:  16px;
  --radius-s: 10px;
  --maxw: 1080px;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 11, 16, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .5px;
}
.nav__logo span { color: var(--accent-2); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s;
  position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width .25s ease;
}
.nav__links a:not(.nav__cta):hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text) !important;
}
.nav__cta:hover { border-color: var(--accent-2); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero__glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(170,40,70,.34), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 50px;
  align-items: center;
}
.hero__eyebrow { color: var(--accent-2); font-weight: 500; margin-bottom: 14px; }
.hero__name {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero__role {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.rotator {
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 700;
  border-right: 2px solid var(--accent-2);
  padding-right: 3px;
  white-space: nowrap;
}
.hero__pitch { color: var(--text-dim); max-width: 560px; font-size: 1.05rem; margin-bottom: 32px; }
.hero__pitch strong { color: var(--text); }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: .96rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s;
  border: 1px solid transparent;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 26px -8px rgba(151,29,58,.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(207,92,116,.5); }
.btn--ghost { background: var(--surface); border-color: var(--border-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent-2); transform: translateY(-2px); }

.hero__socials { display: flex; gap: 16px; }
.hero__socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  transition: .22s;
}
.hero__socials a:hover { color: var(--text); border-color: var(--accent-2); transform: translateY(-3px); }
.hero__socials svg { width: 19px; height: 19px; }

/* hero photo */
.hero__photo {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  justify-self: center;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
}
.photo-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: 5rem; font-weight: 700;
  color: rgba(255,255,255,.85);
  background: var(--grad);
  letter-spacing: 2px;
}
.photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; z-index: 1; }
.photo-ring {
  position: absolute; inset: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px var(--border-2);
  z-index: 2;
}
.photo-badge {
  position: absolute; z-index: 3;
  left: 50%; bottom: 14px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  color: var(--text);
  background: rgba(10, 11, 16, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: 999px;
}
.photo-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.6)} 70%{box-shadow:0 0 0 8px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }

.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border-2);
  border-radius: 999px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--accent-2);
  border-radius: 2px;
  animation: scroll 1.6s infinite;
}
@keyframes scroll { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 100%{opacity:0;transform:translateY(14px)} }

/* ===================== SECTIONS ===================== */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }

/* ---- per-section vibes: same palette, distinct texture/glow ---- */
.section--grid, .section--warm, .section--closer { position: relative; overflow: hidden; }
.section--grid > .container,
.section--warm > .container,
.section--closer > .container { position: relative; z-index: 1; }

/* Projects — subtle "lab" dot grid */
.section--grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 58% at 50% 32%, #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 58% at 50% 32%, #000 12%, transparent 72%);
  pointer-events: none;
}

/* Beyond the Code — warm, cinematic glow */
.section--warm::before {
  content: ""; position: absolute; top: -12%; right: -8%; z-index: 0;
  width: 620px; height: 620px; max-width: 85%;
  background: radial-gradient(circle, rgba(206,96,112,.13), transparent 62%);
  pointer-events: none;
}

/* Contact — dramatic red closer */
.section--closer::before {
  content: ""; position: absolute; bottom: -45%; left: 50%; transform: translateX(-50%); z-index: 0;
  width: 950px; height: 640px; max-width: 100%;
  background: radial-gradient(ellipse, rgba(168,40,70,.28), transparent 60%);
  pointer-events: none;
}
.section__eyebrow {
  font-family: var(--font-head);
  color: var(--accent-2);
  font-weight: 500;
  letter-spacing: 1px;
  font-size: .85rem;
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 44px;
}

/* ===================== ABOUT ===================== */
.about { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 48px; align-items: center; }
.about__media { position: relative; }
.about__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.9);
}
.about__text p { color: var(--text-dim); margin-bottom: 18px; font-size: 1.05rem; }
.about__text strong { color: var(--text); }
.about__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.about__stats li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 22px 18px;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 700;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
}
.stat__label { display: block; font-size: .82rem; color: var(--text-mute); margin-top: 4px; }

/* ===================== QUOTE BAND ===================== */
.quote-band {
  padding: 92px 0;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 640px; height: 300px; max-width: 90%;
  background: radial-gradient(ellipse, rgba(207,92,116,.16), transparent 70%);
  pointer-events: none;
}
.quote-band .container { position: relative; max-width: 840px; }
.quote-mark {
  display: block;
  font-family: var(--font-head);
  font-size: 5rem; line-height: .5;
  color: var(--accent); opacity: .55;
  margin-bottom: 14px;
}
.quote-band blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.4vw, 2.15rem);
  font-weight: 500; line-height: 1.36;
  letter-spacing: -.5px;
  color: var(--text);
  margin: 0 0 20px;
}
.quote-band cite {
  font-style: normal;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  font-weight: 600; font-size: 1rem; letter-spacing: .5px;
}
.quote-band cite::before { content: "— "; }

/* ===================== TIMELINE ===================== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--accent), var(--accent-2));
}
.tl__item { position: relative; margin-bottom: 44px; }
.tl__item::before {
  content: ""; position: absolute; left: -28px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--accent-2); box-shadow: 0 0 10px rgba(207,92,116,.5);
}
.tl__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.tl__head h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; }
.tl__date { color: var(--accent-2); font-size: .88rem; font-weight: 500; }
.tl__org { color: var(--text-mute); font-size: .95rem; margin-bottom: 12px; }
.tl__org a, .hero__pitch a {
  color: inherit;
  border-bottom: 1px solid var(--border-2);
  transition: color .2s ease, border-color .2s ease;
}
.tl__org a:hover, .hero__pitch a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.tl__item ul { display: flex; flex-direction: column; gap: 8px; }
.tl__item li { position: relative; padding-left: 20px; color: var(--text-dim); font-size: .98rem; }
.tl__item li::before { content: "▹"; position: absolute; left: 0; color: var(--accent-2); }

/* ===================== PROJECTS ===================== */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card__icon { font-size: 1.8rem; }
.card__link { color: var(--text-mute); transition: color .2s; }
.card__link:hover { color: var(--accent-2); }
.card__link svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--font-head); font-size: 1.18rem; font-weight: 600; margin-bottom: 12px; line-height: 1.3; }
.card p { color: var(--text-dim); font-size: .95rem; margin-bottom: 18px; flex-grow: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card__tags li {
  font-size: .78rem; font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ===================== SKILLS ===================== */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.skill-group h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; margin-bottom: 16px; color: var(--accent-2); }
.skill-group ul { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-group li {
  font-size: .85rem; font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: .2s;
}
.skill-group li:hover { color: var(--text); border-color: var(--accent-2); transform: translateY(-2px); }

/* ===================== EDUCATION ===================== */
.edu { display: grid; gap: 20px; }
.edu__item {
  display: flex; gap: 20px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.edu__mark { font-size: 2rem; }
.edu__item h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.edu__school { color: var(--text-dim); }
.edu__meta { color: var(--accent-2); font-size: .88rem; font-weight: 500; margin-top: 2px; }

/* ===================== CONTACT ===================== */
.contact { text-align: center; }
.contact .section__title { margin-bottom: 20px; }
.contact__lead { color: var(--text-dim); max-width: 540px; margin: 0 auto 32px; font-size: 1.08rem; }
.contact__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.contact__socials { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; color: var(--text-mute); font-size: .95rem; }
.contact__socials a { color: var(--text-dim); transition: color .2s; }
.contact__socials a:hover { color: var(--accent-2); }

/* ===================== FOOTER ===================== */
.footer { padding: 34px 24px; text-align: center; color: var(--text-mute); font-size: .88rem; border-top: 1px solid var(--border); }

/* ===================== SECTION LEAD ===================== */
.section__lead { color: var(--text-dim); font-size: 1.08rem; max-width: 620px; margin: -28px 0 42px; }
.section__lead a { color: var(--accent-2); border-bottom: 1px solid transparent; transition: border-color .2s; }
.section__lead a:hover { border-color: var(--accent-2); }

/* ===================== BEYOND — INTERESTS ===================== */
.interests { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 40px; }
.interest {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.interest:hover { transform: translateY(-5px); border-color: var(--border-2); }
.interest__icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.interest h3 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
.interest p { color: var(--text-dim); font-size: .93rem; }

/* ===================== BEYOND — GALLERY ===================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gallery__item {
  position: relative; margin: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 10px;
  font-size: .82rem; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}

/* ===================== PROJECT CARD — MULTI LINKS ===================== */
.card__links { display: flex; gap: 12px; align-items: center; }

/* ===================== MORE REPOS ===================== */
.more-repos { margin-top: 32px; }
.more-repos summary {
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  color: var(--text-dim); list-style: none; padding: 10px 0;
}
.more-repos summary::-webkit-details-marker { display: none; }
.more-repos summary::before { content: "▸"; color: var(--accent-2); transition: transform .2s; display: inline-block; }
.more-repos[open] summary::before { transform: rotate(90deg); }
.more-repos summary:hover { color: var(--text); }
.more-repos__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.more-repos__grid a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--text-dim); font-size: .92rem; transition: .2s;
}
.more-repos__grid a:hover { color: var(--text); border-color: var(--accent-2); transform: translateY(-2px); }
.more-repos__grid em { font-style: normal; font-size: .78rem; color: var(--text-mute); }

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10,11,16,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0 22px;
    transform: translateY(-140%);
    transition: transform .35s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 24px; width: 100%; }
  .nav__cta { margin: 10px 24px 0; text-align: center; }
  .nav__toggle { display: flex; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__photo { order: -1; width: min(240px, 62vw); }
  .hero__actions, .hero__socials { justify-content: center; }
  .hero__pitch { margin-left: auto; margin-right: auto; }

  .about { grid-template-columns: 1fr; gap: 30px; }
  .about__media { max-width: 320px; margin: 0 auto; }
  .about__stats { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item--wide { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 520px) {
  .section { padding: 72px 0; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .tl__head { flex-direction: column; }
  .gallery { grid-auto-rows: 130px; }
}
