/* ============================================================
   ABHISHEK PATI — CV WEBSITE
   Nothing Phone Aesthetic · B&W Minimalist
   ============================================================ */

:root {
  --bg:       #0d0d0d;
  --fg:       #f0f0f0;
  --muted:    #666666;
  --border:   #2a2a2a;
  --card:     #111111;
  --dot:      rgba(255,255,255,0.06);
}
[data-theme="light"] {
  --bg:     #f5f5f5;
  --fg:     #0d0d0d;
  --muted:  #888888;
  --border: #dedede;
  --card:   #eeeeee;
  --dot:    rgba(0,0,0,0.05);
}

/* ---- RESET ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; scroll-behavior:smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  transition: background .3s, color .3s;
}
a { color: inherit; }

/* ---- DOT GRID ---- */
.dot-bg {
  position: fixed; inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* ---- THEME TOGGLE ---- */
.theme-toggle {
  position: fixed; top: 20px; right: 20px; z-index: 200;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: .15em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.toggle-dot { font-size: 13px; }

/* ---- BACK BUTTON ---- */
.back-btn {
  position: fixed; top: 24px; left: 24px; z-index: 200;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 10px 18px;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .15em;
  display: flex; align-items: center; gap: 8px;
  transition: background .2s, color .2s;
}
.back-btn:hover { background: var(--fg); color: var(--bg); }

/* =============================================================
   LANDING PAGE
   ============================================================= */
.landing {
  min-height: 100vh;
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 24px;
  gap: 56px;
}

.hero-content { text-align: center; }
.hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: .3em;
  color: var(--muted); margin-bottom: 20px;
}
.hero-name {
  font-size: clamp(54px, 12vw, 120px);
  font-weight: 700; line-height: .95;
  letter-spacing: -.02em; margin-bottom: 20px;
}
.hero-location {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: .2em; color: var(--muted);
}

/* Choice cards */
.choices {
  display: flex; flex-direction: column; gap: 2px;
  width: 100%; max-width: 560px;
}
.choice-card {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 28px;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none; color: var(--fg);
  transition: background .2s, color .2s, border-color .2s;
}
.choice-card:hover {
  background: var(--fg); color: var(--bg); border-color: var(--fg);
}
.choice-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--muted); min-width: 24px;
}
.choice-card:hover .choice-num { color: var(--bg); }
.choice-title {
  font-family: 'Space Mono', monospace;
  font-size: 12px; letter-spacing: .2em; flex: 1;
}
.choice-arrow { font-size: 18px; transition: transform .2s; }
.choice-card:hover .choice-arrow { transform: translateX(5px); }

/* =============================================================
   CV PAGE
   ============================================================= */
.cv-page {
  max-width: 880px; margin: 0 auto;
  padding: 100px 32px 80px;
  position: relative; z-index: 1;
}

/* Profile */
.profile-section {
  display: flex; align-items: flex-start; gap: 40px;
  margin-bottom: 72px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.profile-photo {
  width: 110px; height: 110px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 9px; color: var(--muted); text-align: center;
  flex-shrink: 0; overflow: hidden; line-height: 1.6;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-info h1 {
  font-size: 34px; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 6px;
}
.profile-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: .2em;
  color: var(--muted); margin-bottom: 14px;
}
.profile-bio {
  font-size: 14px; line-height: 1.75; color: var(--muted); max-width: 540px;
  margin-bottom: 18px;
}
.contact-links { display: flex; gap: 20px; flex-wrap: wrap; }
.contact-link {
  font-family: 'Space Mono', monospace;
  font-size: 11px; text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px; letter-spacing: .05em;
  transition: border-color .2s;
}
.contact-link:hover { border-color: var(--fg); }

/* Section header */
.cv-section { margin-bottom: 60px; }
.section-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
}
.section-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--muted); letter-spacing: .2em;
}
.section-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: .25em;
}
.section-line { flex: 1; height: 1px; background: var(--border); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 36px; }
.timeline-item { display: grid; grid-template-columns: 170px 1fr; gap: 24px; }
.timeline-meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: var(--muted);
  line-height: 1.7; padding-top: 3px;
}
.timeline-content h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.timeline-company {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px;
}
.timeline-desc { font-size: 13px; line-height: 1.75; color: var(--muted); }

/* Skills */
.skills-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.skills-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: .15em; color: var(--muted); margin-bottom: 10px;
}
.skill-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px; padding: 7px 14px;
  border: 1px solid var(--border);
  letter-spacing: .05em;
  transition: background .2s, color .2s;
  cursor: default;
}
.skill-tag:hover { background: var(--fg); color: var(--bg); }

/* Languages */
.lang-list { display: flex; gap: 32px; flex-wrap: wrap; }
.lang-item { display: flex; flex-direction: column; gap: 4px; }
.lang-name { font-size: 14px; font-weight: 500; }
.lang-level {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--muted); letter-spacing: .1em;
}

/* Certifications */
.cert-list { display: flex; flex-direction: column; gap: 14px; }
.cert-item {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 20px; border: 1px solid var(--border);
}
.cert-badge {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 9px; color: var(--muted); flex-shrink: 0;
}
.cert-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.cert-info p {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--muted); letter-spacing: .05em;
}

/* Education */
.edu-list { display: flex; flex-direction: column; gap: 28px; }
.edu-item { display: grid; grid-template-columns: 170px 1fr; gap: 24px; }
.edu-meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: var(--muted); line-height: 1.7; padding-top: 3px;
}
.edu-content h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.edu-inst {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: var(--muted); letter-spacing: .08em;
}

/* =============================================================
   CONTACT PAGE
   ============================================================= */
.contact-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 32px;
  position: relative; z-index: 1;
}
.contact-container { width: 100%; max-width: 560px; }
.contact-container h1 {
  font-size: 48px; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 8px;
}
.contact-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: .2em; color: var(--muted); margin-bottom: 48px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: .2em; color: var(--muted);
}
.form-group input,
.form-group textarea {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 14px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; outline: none; resize: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--fg); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-note {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--muted); letter-spacing: .05em;
}
.submit-btn {
  background: var(--fg); color: var(--bg);
  border: none; padding: 16px 32px;
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: .2em;
  cursor: pointer; align-self: flex-start;
  transition: opacity .2s;
}
.submit-btn:hover { opacity: .75; }
.direct-contact {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.direct-contact-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--muted); letter-spacing: .15em; margin-bottom: 18px;
}
.direct-links { display: flex; flex-direction: column; gap: 14px; }
.direct-link {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; font-size: 14px;
  transition: opacity .2s;
}
.direct-link:hover { opacity: .6; }
.direct-link-type {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--muted); min-width: 52px;
}

/* =============================================================
   GAME PAGE
   ============================================================= */
.game-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 70px 16px 24px;
  position: relative; z-index: 1;
  gap: 12px;
}
.game-title {
  font-family: 'Space Mono', monospace;
  font-size: 18px; letter-spacing: .2em; text-align: center;
}
.game-sub {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: .15em; color: var(--muted); text-align: center;
}
.game-wrapper {
  border: 1px solid var(--border);
  position: relative;
  line-height: 0;
  width: 100%;
  max-width: 1200px;
}
#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.game-hint {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--muted); letter-spacing: .1em; text-align: center;
}

/* Mobile warning overlay */
.mobile-warning {
  display: none;
  position: fixed; inset: 0;
  background: var(--bg); z-index: 1000;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 48px; text-align: center; gap: 24px;
}
.mobile-warning.show { display: flex; }
.mobile-warning h2 {
  font-family: 'Space Mono', monospace;
  font-size: 20px; letter-spacing: .1em; line-height: 1.6;
}
.mobile-warning p {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: var(--muted); letter-spacing: .1em;
  line-height: 1.9; max-width: 380px;
}
.mobile-warning-icon { font-size: 48px; line-height: 1; }
.warning-back {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: .2em; color: var(--fg); text-decoration: none;
  border: 1px solid var(--border); padding: 12px 28px;
  transition: background .2s, color .2s;
}
.warning-back:hover { background: var(--fg); color: var(--bg); }

/* =============================================================
   WIP — AWS AUTOMATIONS SECTION
   ============================================================= */

/* Caution tape strip — B&W diagonal stripes, full width */
.wip-tape {
  position: relative;
  height: 32px;
  width: 100%;
  overflow: hidden;
  background: repeating-linear-gradient(
    -45deg,
    #000000 0px,  #000000 18px,
    #f5f5f5 18px, #f5f5f5 36px
  );
  display: flex; align-items: center; justify-content: center;
  margin: 28px 0;
}
[data-theme="light"] .wip-tape {
  background: repeating-linear-gradient(
    -45deg,
    #000000 0px,  #000000 18px,
    #ffffff 18px, #ffffff 36px
  );
}
.wip-tape-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: .3em;
  padding: 4px 18px;
  background: #000000; color: #f5f5f5;
  position: relative; z-index: 1;
  white-space: nowrap;
}
[data-theme="light"] .wip-tape-label { background: #000000; color: #ffffff; }

/* WIP tools list */
.wip-tools { display: flex; flex-direction: column; gap: 14px; }

.wip-tool {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  background: var(--card);
  position: relative; overflow: hidden;
}
/* Subtle diagonal stripe watermark on each card */
.wip-tool::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px,   transparent 18px,
    rgba(128,128,128,0.04) 18px, rgba(128,128,128,0.04) 20px
  );
}
.wip-tool-icon {
  font-size: 20px; flex-shrink: 0; margin-top: 2px; line-height: 1;
}
.wip-tool-body { flex: 1; }
.wip-tool-body h4 { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.wip-tool-body p {
  font-size: 13px; line-height: 1.7; color: var(--muted);
}
.wip-badge {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: .18em;
  padding: 5px 10px;
  border: 1px solid var(--border);
  color: var(--muted); white-space: nowrap; flex-shrink: 0;
  align-self: flex-start;
  /* Tiny diagonal stripe inside badge */
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 4px,
    rgba(128,128,128,0.08) 4px, rgba(128,128,128,0.08) 5px
  );
}

/* =============================================================
   GET AS PDF — SUCCESS STATE
   ============================================================= */
.pdf-success {
  text-align: center;
  padding: 48px 0;
}
.pdf-success-icon {
  font-size: 48px;
  font-weight: 300;
  color: var(--fg);
  margin-bottom: 24px;
  font-family: 'Space Mono', monospace;
  border: 1px solid var(--border);
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px;
}
.pdf-success h2 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
  .profile-section { flex-direction: column; }
  .timeline-item,
  .edu-item { grid-template-columns: 1fr; gap: 6px; }
  .timeline-meta, .edu-meta { padding-top: 0; }
  .hero-name { font-size: clamp(50px, 15vw, 90px); }
  .cv-page { padding: 80px 20px 60px; }
}
@media (max-width: 480px) {
  .choices { gap: 1px; }
  .choice-card { padding: 18px 20px; }
}
