:root {
  --bg: #000000; /* pure black */
  --bg-2: #0a0a0a; /* slightly lighter black for alt sections */
  --card: #141414; /* card background */
  --text: #e7ecff; /* keep light text */
  --muted: #9fb0ff;
  --accent: #7aa2ff;
  --line: #222;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), #0b1126 40%, #0a0f22);
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}
.section {
  padding: 72px 0;
}
.section.alt {
  background: linear-gradient(180deg, var(--bg-2), #0c142d);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(8, 12, 28, 0.6);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 2px solid var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--text);
}
.site-header nav a {
  margin: 0 0.6rem;
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #081020;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--text);
}
.btn-sm {
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 48px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0.4rem 0 1rem;
}
.hero .lead {
  color: #cfe0ff;
  max-width: 60ch;
}
.cta {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.socials a {
  margin-right: 14px;
  color: #cfe0ff;
}
.hero-media {
  justify-self: end;
}
.hero-wave {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 80px;
  background: radial-gradient(
    60% 80% at 50% 120%,
    rgba(122, 162, 255, 0.35),
    transparent 70%
  );
}
.accent {
  color: var(--accent);
}

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card.highlight {
  outline: 2px dashed rgba(122, 162, 255, 0.35);
}
.hero-media img {
  border-radius: 16px; /* soft rounded corners */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); /* subtle depth */

  /* Blend edges */
  mask-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 100%
  );

  /* Optional: blend with background */
  mix-blend-mode: lighten; /* or try: screen, multiply, overlay */
}

/* Lists */
.ticks {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.ticks li {
  margin: 8px 0;
  padding-left: 24px;
  position: relative;
}
.ticks li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #9fe29f;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cfe0ff;
  padding-left: 16px;
}
.meta li {
  list-style: disc;
}

/* Timeline */
.timeline {
  border-left: 2px solid var(--line);
  margin-left: 10px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 32px; /* space between items */
}

.timeline .item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.timeline .when {
  min-width: 120px; /* consistent column for dates */
  text-align: right;
  font-weight: 600;
  color: var(--muted);
}

.timeline .content {
  flex: 1;
}

.timeline .content h3 {
  margin: 0 0 6px;
}

.timeline .content p {
  margin: 0;
  line-height: 1.5;
}

/* Skills */
.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.skill {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.skill .bar {
  height: 10px;
  background: linear-gradient(90deg, var(--accent), #9fd0ff);
  border-radius: 8px;
  margin-top: 8px;
  width: var(--p);
}

/* Form */
form.card label {
  display: block;
  margin-bottom: 10px;
}
form.card input,
form.card textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #2a355e;
  background: #0c1430;
  color: var(--text);
}
.form-note {
  color: #9fb0ff80;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  background: rgba(8, 12, 28, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
