/* ============================================================
   VJAY DHYANI — Portfolio
   Full-page white · yellow/purple accents · black ink
   ============================================================ */

:root {
  --black: #000000;
  --white: #ffffff;
  --ink: #111111;
  --yellow: #ffd21a;
  --purple: #6255f5;
  --purple-dark: #4337d5;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--white); }

body {
  font-family: "Space Grotesk", "DM Sans", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--yellow); }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

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

/* ============ PAGE ============ */

.page {
  width: 100%;
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 48px;
}

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--black);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.logo-word {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}

.nav-link:hover { opacity: 0.55; }

.resume-btn {
  height: 28px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  background: var(--yellow);
  border: 2px solid var(--black);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--black);
  transition: transform 0.12s, box-shadow 0.12s;
}

.resume-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--black);
}
.resume-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--black);
}

/* ============ HERO ============ */

.hero {
  position: relative;
  padding: 68px 0 40px;
}

.hero-copy { max-width: 520px; }

.hero-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink);
  opacity: 0.7;
}

.hero-heading {
  margin-top: 14px;
  font-size: clamp(40px, 4.8vw, 56px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -2.5px;
}

.hero-desc {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink);
  max-width: 420px;
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.btn {
  height: 44px;
  padding: 0 22px;
  border: 2px solid var(--black);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--black);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--black);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--black);
}

.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: #FFFBE6; }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-dark); }
.btn-ghost { background: var(--white); color: var(--black); }
.btn-ghost:hover { background: #F3F3F3; }

.hero-art {
  position: absolute;
  top: 108px;
  right: 0;
  width: min(420px, 42vw);
  pointer-events: none;
}

.hero-art svg { width: 100%; height: auto; }

.stat-row {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.stat {
  flex: 1;
  max-width: 195px;
  border: 2px solid var(--black);
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: 6px 6px 0 var(--black);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--black);
}

.stat strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink);
  opacity: 0.8;
}

.stat-yellow { background: var(--yellow); }
.stat-purple { background: var(--purple); color: var(--white); }
.stat-purple span { color: var(--white); opacity: 0.9; }

/* ============ TICKER ============ */

.ticker {
  margin-top: 64px;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  background: var(--yellow);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 32px;
  width: max-content;
  padding: 11px 0;
  animation: ticker-scroll 24s linear infinite;
}

.ticker-item {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-item::after {
  content: "\2726";
  margin-left: 32px;
  font-size: 10px;
  opacity: 0.6;
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */

.section { margin-top: 96px; }

.sec-head { margin-bottom: 36px; }

.sec-label {
  display: inline-block;
  border: 2px solid var(--black);
  border-radius: 4px;
  background: var(--yellow);
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--black);
}

.sec-head h2 {
  margin-top: 18px;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: -1px;
}

/* ============ EXPERIENCE ============ */

.xp-list { list-style: none; }

.xp-row {
  display: grid;
  grid-template-columns: 175px 250px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 2px solid var(--black);
  align-items: start;
  transition: background 0.15s;
}

.xp-row:last-child { border-bottom: 2px solid var(--black); }
.xp-row:hover { background: #FFFDF0; }

.xp-when {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border: 2px solid var(--black);
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
}

.xp-now { background: var(--yellow); }

.xp-who h3 { font-size: 16px; font-weight: 700; }
.xp-who p { font-size: 12.5px; color: #555; margin-top: 2px; }
.xp-what { font-size: 13px; line-height: 1.55; color: var(--ink); }

/* ============ PROJECT ============ */

.project-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
  border: 2px solid var(--black);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 10px 10px 0 var(--black);
  transition: box-shadow 0.15s, transform 0.15s;
}

.project-card:hover {
  box-shadow: 12px 12px 0 var(--black);
  transform: translateY(-2px);
}

.featured-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}

.project-info h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.project-info p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-size: 10.5px;
  font-weight: 600;
  border: 1.5px solid var(--black);
  border-radius: 4px;
  padding: 3px 9px;
}

.proj-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.proj-link {
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--black);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.proj-link:hover {
  color: var(--purple);
  border-color: var(--purple);
  opacity: 1;
}

/* --- Browser mockup --- */

.browser {
  border: 2px solid var(--black);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--black);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  border-bottom: 2px solid var(--black);
  padding: 8px 10px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--black);
  background: var(--white);
}

.dot-y { background: var(--yellow); }
.dot-p { background: var(--purple); border-color: var(--purple); }

.url-pill {
  margin-left: 8px;
  flex: 1;
  border: 1.5px solid var(--black);
  border-radius: 99px;
  font-size: 9px;
  padding: 3px 12px;
  color: var(--ink);
  background: var(--white);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-body { display: flex; min-height: 200px; }

.b-side {
  width: 88px;
  border-right: 2px solid var(--black);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.b-item {
  font-size: 9px;
  font-weight: 500;
  padding: 5px 7px;
  border-radius: 4px;
  color: var(--ink);
}

.b-active { background: var(--purple); color: var(--white); }

.b-main {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.b-head strong { font-size: 11px; }

.b-btn {
  font-size: 8.5px;
  font-weight: 600;
  border: 1.5px solid var(--black);
  border-radius: 4px;
  padding: 3px 8px;
  background: var(--yellow);
  cursor: default;
}

.b-table { display: flex; flex-direction: column; gap: 0; }

.b-tr {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr 1fr;
  gap: 6px;
  font-size: 9px;
  padding: 5px 0;
  border-bottom: 1px solid #E5E5E5;
  align-items: center;
}

.b-th { font-weight: 700; text-transform: uppercase; font-size: 8px; letter-spacing: 0.5px; color: #888; }

.b-tag {
  font-size: 8px;
  font-weight: 600;
  border: 1.5px solid var(--black);
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-block;
  width: fit-content;
}

.b-ok { background: var(--yellow); }

.b-ticket {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--yellow);
  border: 2px solid var(--black);
  border-radius: 5px;
  padding: 7px 10px;
}

.b-ticket-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.5px; }

.b-stamp {
  font-size: 9px;
  font-weight: 700;
  border: 2px solid var(--black);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transform: rotate(-12deg);
}

/* --- Cert cards --- */

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.cert-card {
  border: 2px solid var(--black);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 8px 8px 0 var(--black);
  transition: box-shadow 0.15s, transform 0.15s;
}

.cert-card:hover { box-shadow: 10px 10px 0 var(--black); transform: translateY(-2px); }

.cert-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cert-badge {
  width: 34px;
  height: 34px;
  border: 2px solid var(--black);
  border-radius: 5px;
  box-shadow: 3px 3px 0 var(--black);
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-badge-purple { background: var(--purple); }

.cert-meta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #666;
}

.cert-card h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }

.cert-card p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
}

.cert-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}

.cert-link:hover { opacity: 0.55; }

/* ============ SKILLS ============ */

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  border: 2px solid var(--black);
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  box-shadow: 2.5px 2.5px 0 var(--black);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  user-select: none;
}

.chip:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--black);
}

.chip-yellow { background: var(--yellow); }
.chip-purple { background: var(--purple); color: var(--white); }

/* ============ ABOUT ============ */

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.bio p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}

.bio p + p { margin-top: 16px; }

.edu-card {
  border: 2px solid var(--black);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 8px 8px 0 var(--black);
  background: var(--white);
}

.edu-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }

.edu-item {
  display: flex;
  gap: 14px;
  align-items: start;
}

.edu-item + .edu-item { margin-top: 18px; padding-top: 18px; border-top: 1px solid #E5E5E5; }

.edu-year {
  flex: none;
  width: 50px;
  height: 30px;
  background: var(--yellow);
  border: 2px solid var(--black);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-item strong { font-size: 13.5px; font-weight: 700; }
.edu-item p { font-size: 12px; color: #555; margin-top: 2px; }

/* ============ CONTACT ============ */

.contact-section {
  margin-top: 96px;
  margin-bottom: 96px;
}

.contact-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.contact-copy { max-width: 520px; }

.contact-copy h2 {
  margin-top: 16px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.05;
}

.contact-copy p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}

.contact-btns {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
  align-items: center;
}

.contact-btn-email { font-size: 13.5px; }

.contact-art { width: 190px; flex: none; }

.contact-art svg { width: 100%; height: auto; }

/* ============ FOOTER ============ */

.site-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  padding: 24px 0 36px;
  gap: 20px;
  border-top: 2px solid var(--black);
}

.social-row { display: flex; gap: 10px; align-items: center; }

.social-link {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--black);
  border-radius: 5px;
  background: var(--white);
  box-shadow: 2px 2px 0 var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.social-link:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--black);
  opacity: 1;
}

.social-link:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--black);
}

.footer-nav { display: flex; gap: 18px; margin-left: 8px; align-items: center; }

.footer-link {
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s, opacity 0.15s;
}

.footer-link:hover {
  border-color: var(--black);
  opacity: 1;
}

.copyright {
  margin-left: auto;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1140px) {
  .hero-art { width: min(360px, 38vw); }
}

@media (max-width: 980px) {
  .page { padding: 0 30px; }

  .hero-art {
    position: static;
    width: min(400px, 100%);
    margin: 36px auto 0;
  }

  .xp-row {
    grid-template-columns: 140px 1fr;
    gap: 16px;
  }

  .xp-what { grid-column: 1 / -1; }

  .project-card {
    grid-template-columns: 1fr;
  }

  .contact-art { display: none; }
}

@media (max-width: 640px) {
  .page { padding: 0 20px; }

  .site-header { padding: 18px 0; }

  .main-nav .nav-link { display: none; }

  .hero { padding: 48px 0 28px; }

  .hero-heading { letter-spacing: -1.5px; }

  .stat-row { flex-direction: column; gap: 10px; }
  .stat { max-width: 100%; }

  .xp-row { grid-template-columns: 1fr; gap: 10px; }

  .cert-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }

  .contact-section { margin-top: 64px; margin-bottom: 64px; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .contact-btns { flex-direction: column; align-items: stretch; width: 100%; }
  .contact-btns .btn { width: 100%; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0 36px;
  }

  .social-row { width: 100%; }
  .footer-nav { margin-left: 0; flex-wrap: wrap; gap: 14px; }
  .copyright { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
