:root {
  --bg: #050711;
  --bg-alt: #0f1220;
  --bg-soft: #15192b;
  --accent: #40b7ff;
  --accent-soft: rgba(64, 183, 255, 0.12);
  --text: #f5f6fb;
  --muted: #a9afc7;
  --border-subtle: #23263a;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --max-width: 1080px;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #151a33, #050711 55%);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
}

/* Layout helpers */
.section {
  padding: 4rem 1.5rem;
}

.section:nth-of-type(odd) {
  background: transparent;
}

.section:nth-of-type(even) {
  background: radial-gradient(circle at top right, #15192b, #050711 60%);
}

.section-header {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem auto;
}

.section-header h2 {
  margin: 0 0 0.4rem 0;
  font-size: 1.9rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* Header / Nav / Hero */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  background: linear-gradient(to bottom, rgba(5, 7, 17, 0.98), rgba(5, 7, 17, 0.9));
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
}

/* Mini hero text inside nav, hidden by default */
.nav-hero-mini {
  flex: 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-hero-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.nav-hero-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* When compact, show the mini hero text */
body.hero-compact .nav-hero-mini {
  opacity: 1;
  transform: translateY(0);
}

/* When compact, you *can* slightly tighten the nav padding too */
body.hero-compact .nav {
  padding-block: 0.55rem;
}


.logo {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  box-shadow:
    0 0 8px rgba(64,183,255,0.5),
    0 0 12px rgba(64,183,255,0.35),
    0 0 18px rgba(64,183,255,0.25);
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem 1.5rem;
  transition: padding 0.22s ease, background 0.22s ease;
}

.hero-content {
  max-width: 720px;
  transition: gap 0.22s ease, transform 0.22s ease;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.9rem;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  transition: font-size 0.22s ease, padding 0.22s ease, margin 0.22s ease;
}

.hero h1 {
  margin: 0 0 0.75rem 0;
  font-size: clamp(2.3rem, 4vw, 3rem);
  transition: font-size 0.22s ease, margin 0.22s ease;
}

.hero-subtitle {
  margin: 0 0 1.5rem 0;
  color: var(--muted);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #40b7ff, #5ad0ff);
  color: #050711;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(169, 175, 199, 0.5);
}

.btn.ghost:hover {
  border-color: var(--accent);
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

/* About */
.about {
  background: radial-gradient(circle at top left, #15192b, #050711 60%);
}

.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
}

.about-grid p {
  margin-top: 0;
}

.about-highlight {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.about-highlight h3 {
  margin-top: 0.3rem;
  margin-bottom: 0.6rem;
}

.about-highlight ul {
  padding-left: 1.1rem;
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.about-highlight li {
  margin-bottom: 0.4rem;
}

/* Skills */
.skills-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.skill-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border-subtle);
}

.skill-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.skill-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.skill-card li::before {
  content: "• ";
  color: var(--accent);
}

/* Projects */
.projects-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.project-tag {
  margin: 0 0 0.8rem 0;
  font-size: 0.85rem;
  color: var(--accent);
}

.project-card p {
  margin: 0 0 0.7rem 0;
}

.project-points {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

/* Experience */
.timeline {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.timeline-item {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border-subtle);
}

.timeline-item h3 {
  margin-top: 0;
  margin-bottom: 0.2rem;
}

.timeline-company {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-date {
  margin: 0.15rem 0 0.7rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Education */
.edu-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.edu-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border-subtle);
}

.edu-card h3 {
  margin: 0 0 0.3rem 0;
}

/* Contact */
.contact-content {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 1.8rem 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr);
  gap: 2rem;
  box-shadow: var(--shadow-soft);
}

.contact-details p {
  margin: 0.2rem 0;
}

.contact-details a {
  color: var(--accent);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-note {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.4rem 1.5rem 1.7rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 780px) {
  .nav {
    padding-inline: 1rem;
  }

  .nav-links {
    display: none; /* Simplest option for now – could add a burger menu later */
  }

  .hero {
    padding-inline: 1rem;
  }

  .about-grid,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .section {
    padding-inline: 1rem;
  }
}
