/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --bg:          #0b1120;
  --bg2:         #111827;
  --bg3:         #1a2438;
  --cyan:        #64ffda;
  --cyan-dim:    rgba(100,255,218,0.1);
  --cyan-border: rgba(100,255,218,0.2);
  --text:        #ccd6f6;
  --text-dim:    #8892b0;
  --text-bright: #e6f1ff;
  --font:        'Outfit', sans-serif;
  --mono:        'JetBrains Mono', monospace;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  cursor: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── Cursor ────────────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  pointer-events: none;
  z-index: 9998;
  opacity: 0.4;
  transition: all 0.15s ease;
}

/* ── Spotlight ─────────────────────────────────────────────────── */
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(100,255,218,0.04), transparent 80%);
}

/* ── Layout ────────────────────────────────────────────────────── */
.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

/* ── Left (Sticky) ─────────────────────────────────────────────── */
.left {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px 0;
}

.greeting { margin-bottom: 16px; }

.left h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
  animation: fadeUp 0.7s 0.1s both;
}

.subtitle {
  font-size: 1.1rem;
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.2s both;
}

.tagline {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 300px;
  line-height: 1.8;
  animation: fadeUp 0.7s 0.3s both;
}

/* ── Nav ───────────────────────────────────────────────────────── */
nav {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeUp 0.7s 0.4s both;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.25s;
  cursor: none;
}

.nav-line {
  width: 32px;
  height: 1px;
  background: var(--text-dim);
  transition: width 0.3s ease, background 0.25s;
  flex-shrink: 0;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-bright);
}

.nav-item:hover .nav-line,
.nav-item.active .nav-line {
  width: 64px;
  background: var(--cyan);
}

/* ── Socials ───────────────────────────────────────────────────── */
.socials {
  display: flex;
  gap: 20px;
  align-items: center;
  animation: fadeUp 0.7s 0.5s both;
}

.social-link {
  color: var(--text-dim);
  text-decoration: none;
  display: flex;
  transition: color 0.25s, transform 0.25s;
  cursor: none;
}

.social-link:hover {
  color: var(--cyan);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ── Right (Scrollable) ────────────────────────────────────────── */
.right { padding: 96px 0; }

/* ── Section ───────────────────────────────────────────────────── */
.section { margin-bottom: 100px; }

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cyan-border);
}

/* ── About ─────────────────────────────────────────────────────── */
.about-text {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.85;
}

.about-text strong { color: var(--cyan); font-weight: 500; }

.info-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.info-item { display: flex; flex-direction: column; gap: 4px; }

.info-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-value { font-size: 0.9rem; color: var(--text); }

.info-link {
  font-size: 0.9rem;
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.2s;
}

.info-link:hover { opacity: 0.75; }

/* ── Experience ────────────────────────────────────────────────── */
.exp-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 20px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
  margin-bottom: 4px;
  cursor: none;
}

.exp-item:hover {
  background: var(--bg3);
  border-color: var(--cyan-border);
}

.exp-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  padding-top: 4px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.exp-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
  transition: color 0.2s;
}

.exp-item:hover .exp-content h3 { color: var(--cyan); }

.exp-content .company {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-family: var(--mono);
}

.exp-content .company a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.exp-content .company a:hover { color: var(--cyan); }

.exp-content p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 12px;
}

/* ── Tags ──────────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border-radius: 100px;
  padding: 4px 12px;
  letter-spacing: 0.04em;
}

/* ── Skills ────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.skill-card {
  background: var(--bg2);
  border: 1px solid var(--cyan-border);
  border-radius: 8px;
  padding: 20px;
  transition: background 0.3s, border-color 0.3s, transform 0.25s;
  cursor: none;
}

.skill-card:hover {
  background: var(--bg3);
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.skill-card h4 {
  font-size: 0.78rem;
  color: var(--cyan);
  font-family: var(--mono);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}

.skill-list li {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.skill-list li::before {
  content: '▹';
  color: var(--cyan);
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* ── Projects ──────────────────────────────────────────────────── */
.project-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, transform 0.25s;
  cursor: none;
}

.project-card:hover {
  background: var(--bg3);
  border-color: var(--cyan-border);
  transform: translateX(6px);
}

.proj-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--cyan);
  opacity: 0.5;
  padding-top: 3px;
}

.project-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
  transition: color 0.2s;
}

.project-card:hover h3 { color: var(--cyan); }

.proj-type {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.proj-arrow {
  color: var(--text-dim);
  font-size: 1rem;
  padding-top: 2px;
  transition: color 0.2s, transform 0.2s;
}

.project-card:hover .proj-arrow {
  color: var(--cyan);
  transform: translate(3px, -3px);
}

.proj-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: none;
  margin-top: 10px;
  transition: color 0.2s;
}

.proj-github:hover { color: var(--cyan); }
.proj-github svg { fill: currentColor; }

/* ── Contact ───────────────────────────────────────────────────── */
.contact-section { text-align: center; padding: 40px 0; }

.contact-heading {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin: 20px 0;
  line-height: 1.1;
}

.contact-text {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.85;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-detail-item { display: flex; flex-direction: column; gap: 4px; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 4px;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.25s;
  cursor: none;
}

.btn:hover { background: var(--cyan-dim); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: gap 0.2s;
}

.link-arrow:hover { gap: 12px; }

/* ── Utilities ─────────────────────────────────────────────────── */
.mono { font-family: var(--mono); }
.cyan { color: var(--cyan); }
.small { font-size: 0.75rem; letter-spacing: 0.12em; }

.blink { animation: blink 1.4s infinite; }

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 40px 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  position: relative;
  z-index: 2;
}

footer a { color: var(--cyan); text-decoration: none; }

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-border); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }

  .layout {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .left {
    position: static;
    height: auto;
    padding: 60px 0 0;
  }

  nav {
    margin-top: 32px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-line { display: none; }

  .right { padding: 40px 0 60px; }

  .left h1 { font-size: 2.2rem; }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .contact-details { grid-template-columns: 1fr; }

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