@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Share+Tech+Mono&display=swap');

:root {
  --bg: #14070f;
  --panel: rgba(45, 20, 35, 0.82);
  --panel-strong: rgba(65, 25, 50, 0.95);
  --pink: #ff8fc7;
  --pink-soft: #ffc4e2;
  --text: #fff2fa;
  --muted: #e9aeca;
  --line: rgba(255, 143, 199, 0.25);
  --shadow: 0 0 35px rgba(255, 143, 199, 0.22);
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #5a2140 0%, var(--bg) 45%);
  overflow-x: hidden;
}

#matrixCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.35;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 143, 199, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 143, 199, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 78px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7%;
  background: rgba(20, 7, 15, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.4rem;
}

.logo span {
  color: var(--pink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--pink);
  text-shadow: 0 0 16px var(--pink);
}

.download-link {
  padding: 0.75rem 1rem;
  border: 1px solid var(--pink);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: var(--pink);
  font-size: 1.8rem;
  cursor: pointer;
}

main { padding-top: 78px; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  padding: 6rem 7%;
}

.eyebrow,
.section-heading p {
  color: var(--pink);
  font-family: "Share Tech Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

h1 {
  margin: 1rem 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h1 span {
  color: var(--pink);
  text-shadow: 0 0 26px rgba(255, 143, 199, 0.65);
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.btn {
  border-radius: 14px;
  padding: 0.95rem 1.25rem;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover { transform: translateY(-4px); }

.primary {
  background: var(--pink);
  color: #3d0d24;
  box-shadow: var(--shadow);
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.contact-card,
.terminal-card,
.timeline-item,
.project-card,
.cert-item {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.contact-card {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-card a {
  color: var(--pink-soft);
  font-weight: 700;
}

.terminal-card {
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  transform: perspective(900px) rotateY(-5deg);
}

.terminal-top {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--panel-strong);
  border-bottom: 1px solid var(--line);
}

.terminal-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink);
}

pre {
  padding: 1.5rem;
  color: var(--pink);
  font-family: "Share Tech Mono", monospace;
  white-space: pre-wrap;
  line-height: 1.7;
}

.section { padding: 6rem 7%; }

.section-heading { margin-bottom: 2rem; }

h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  letter-spacing: -0.06em;
}

.timeline,
.cert-list {
  display: grid;
  gap: 1.2rem;
}

.timeline-item,
.project-card,
.cert-item {
  padding: 1.5rem;
  border-radius: 22px;
  transition: 0.25s ease;
}

.timeline-item:hover,
.project-card:hover,
.cert-item:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
}

.request-btn {
    display: inline-block;
    margin-top: 15px; /* Space below the tags */
    padding: 10px 20px;
    background: #f5c6f2;
    color: rgb(0, 0, 0);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.request-btn:hover {
    background: #ffcef4;
}

.meta,
.timeline-item p,
.project-card p,
.cert-item p {
  color: var(--muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.project-card h3,
.timeline-item h3,
.cert-item h3 {
  margin-bottom: 0.65rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tags span {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pink-soft);
  font-size: 0.8rem;
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 46px;
  height: 46px;
  border: 1px solid var(--pink);
  border-radius: 50%;
  background: #2d1021;
  color: var(--pink);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

footer {
  padding: 2rem 7%;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }

  .nav {
    position: fixed;
    top: 78px;
    right: -100%;
    width: min(320px, 90vw);
    height: calc(100vh - 78px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    background: rgba(20, 7, 15, 0.96);
    border-left: 1px solid var(--line);
    transition: 0.3s ease;
  }

  .nav.open { right: 0; }

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

  .terminal-card { transform: none; }

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