:root {
  --bg: #04060d;
  --surface: rgba(255, 255, 255, 0.06);
  --line: rgba(160, 190, 255, 0.16);
  --text: #f2f6ff;
  --muted: #9fabc4;
  --blue: #0a84ff;
  --blue-soft: rgba(10, 132, 255, 0.35);
  --swift: #ff6b3d;
  --radius: 26px;
  --display: "Space Grotesk", "SF Pro Display", -apple-system, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at 78% 6%, rgba(10, 132, 255, 0.20), transparent 34%),
    radial-gradient(circle at 12% 22%, rgba(255, 107, 61, 0.08), transparent 30%),
    var(--bg);
  overflow-x: hidden;
  line-height: 1.65;
}

/* faint grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.cursor-glow {
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 132, 255, .15), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  top: -500px;
  left: -500px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, calc(100% - 32px));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 14, 24, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 20px 80px rgba(0, 0, 0, .35);
}

.brand {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #8abfff);
  color: #04060d;
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: rgba(242, 246, 255, .82);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, .09);
  color: #fff;
}

.nav-links a.active {
  background: rgba(10, 132, 255, .2);
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, .18);
}

.nav-cta {
  border: 1px solid var(--line);
}

.menu-toggle {
  display: none;
}

/* ---------- Layout ---------- */
.section {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--swift);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  margin-top: 0;
}

h1 {
  font-size: clamp(52px, 7.5vw, 96px);
  line-height: .94;
  letter-spacing: -0.05em;
  margin: 26px 0 20px;
}

h1 strong {
  background: linear-gradient(100deg, #fff 30%, #7fb6ff 75%, var(--swift) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-title {
  font-size: clamp(30px, 4.6vw, 62px);
  white-space: nowrap;
}

h2.one-line {
  font-size: clamp(24px, 3.4vw, 44px);
  white-space: nowrap;
}

h2.stacked span {
  display: block;
  margin-bottom: 30px;
}

h2.stacked span:nth-child(2) {
  color: #9dc6ff;
}

h2.stacked span:nth-child(3) {
  margin-bottom: 0;
  color: var(--swift);
}

h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: start;
  padding-top: 150px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dfe9ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, .05);
  font-size: 13px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #31e981;
  border-radius: 99px;
  box-shadow: 0 0 16px #31e981;
}

.headline {
  font-size: 21px;
  color: #d5e2fa;
  margin: 0 0 18px;
  font-weight: 500;
}

.intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.btn.primary {
  background: linear-gradient(120deg, #1aa0ff, #0a5cff);
  color: #fff;
  box-shadow: 0 0 34px rgba(10, 102, 255, .45);
}

.btn.secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.btn:hover {
  transform: translateY(-2px);
  transition: .25s ease;
}

/* hero art: Xcode hammer */
.hero {
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin-top: 48px;
}

.hero-art .hammer {
  width: min(560px, 100%);
  filter: drop-shadow(0 0 48px rgba(10, 132, 255, .3));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

/* Prabakaran.swift card — centered below the Let's connect button */
.code-card {
  margin: 44px 0 0 auto;
  width: min(560px, 100%);
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18, 26, 44, .92), rgba(8, 12, 22, .92));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 34px 90px rgba(0, 0, 0, .55);
  transform: rotate(-3deg) translateX(90px);
  overflow: visible;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.code-bar em {
  margin-left: 8px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.tl.red {
  background: #ff5f57;
}

.tl.yellow {
  background: #febc2e;
}

.tl.green {
  background: #28c840;
}

.code-card pre {
  margin: 0;
  padding: 20px 26px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: #dbe6ff;
  white-space: pre;
  overflow: visible;
}

.kw {
  color: #ff7ab2;
}

.ty {
  color: #8ad1ff;
}

.st {
  color: #ffb38a;
}

.num {
  color: #d0a8ff;
}

.cm {
  color: #6b7794;
}

.fn {
  color: #7ee787;
}

/* ---------- Stats ---------- */
.stats-strip {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats-strip div {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.stats-strip strong {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff, #8abfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-strip span {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Cards ---------- */
.glass-card,
.timeline-card,
.project-card,
.skill-group,
.quote-section,
.contact-section,
.now-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 80px rgba(0, 0, 0, .24);
}

.glass-card {
  border-radius: var(--radius);
  padding: 34px;
}

.glass-card p,
.hero-subtitle {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.glass-card strong {
  color: #dbe8ff;
}

.split-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.section-heading.center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  color: var(--muted);
}

.about-list li {
  padding: 5px 0;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 22px;
}

.dot {
  position: absolute;
  left: 12px;
  top: 30px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(10, 132, 255, .12);
}

.dot.current {
  background: var(--swift);
  box-shadow: 0 0 0 8px rgba(255, 107, 61, .14), 0 0 20px rgba(255, 107, 61, .5);
}

.timeline-card {
  border-radius: 22px;
  padding: 26px;
}

.date {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.timeline-card h3 span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

.timeline-card>p:not(.date) {
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 132, 255, .45);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 25% 0%, rgba(10, 132, 255, .22), transparent 38%);
  pointer-events: none;
}

.project-card.large {
  grid-column: span 2;
}

.project-card.large::before {
  background: radial-gradient(circle at 20% 0%, rgba(255, 107, 61, .16), transparent 40%), radial-gradient(circle at 85% 20%, rgba(10, 132, 255, .2), transparent 35%);
}

.project-tag {
  color: #a8ccff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  position: relative;
}

.project-card h3 {
  margin: 10px 0 8px;
  position: relative;
}

.project-card p {
  color: var(--muted);
  line-height: 1.7;
  position: relative;
  margin-bottom: 16px;
}

.store-link {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  margin-left: 8px;
  white-space: nowrap;
}

.store-link:hover {
  text-decoration: underline;
}

.tech-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  margin-top: 14px;
}

.tech-row span,
.chips span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .09);
  color: #d7dfef;
  font-size: 12.5px;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.skill-group {
  border-radius: 24px;
  padding: 26px;
}

.skill-group h3 {
  margin-bottom: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* ---------- Now ---------- */
.now-section {
  padding-top: 0;
}

.now-card {
  border-radius: var(--radius);
  padding: 34px;
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
}

.now-grid div {
  color: #d3dcee;
}

.now-grid span {
  color: var(--swift);
  margin-right: 10px;
}

/* ---------- Education ---------- */
.education-section {
  padding-bottom: 0;
}

.education-card {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.education-card h3 {
  margin: 0 0 6px;
}

.edu-college {
  color: var(--muted);
  margin: 0;
}

.edu-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.edu-year {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.edu-cgpa {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 61, .12);
  border: 1px solid rgba(255, 107, 61, .32);
  color: #ffc4a8;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Quote & contact ---------- */
.quote-section,
.contact-section {
  border-radius: 34px;
  padding: 56px;
  text-align: center;
}

.quote-section {
  margin-top: 110px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.quote-section p {
  font-family: var(--display);
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -.04em;
  margin: 0;
}

.contact-section {
  max-width: 900px;
}

.contact-section>p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  color: #04060d;
  background: #f2f6ff;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}

.contact-links a:first-child {
  background: linear-gradient(120deg, #1aa0ff, #0a5cff);
  color: #fff;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--muted);
  padding: 30px 20px 60px;
  font-size: 14px;
}

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-art .hammer {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {

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

  .hero {
    padding-top: 130px;
    min-height: auto;
  }

  .hero-art {
    order: -1;
    margin-top: 0;
  }

  .hero-art .hammer {
    width: min(480px, 92%);
  }

  .code-card {
    width: 100%;
    max-width: 100%;
    transform: none;
    margin: 34px auto 0;
  }

  .code-card pre {
    white-space: pre;
    overflow-x: auto;
    font-size: 13px;
  }

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

  .project-card.large {
    grid-column: span 2;
  }

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

@media (max-width: 660px) {
  .menu-toggle {
    display: block;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 19px;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 16px;
    border-radius: 22px;
    background: rgba(8, 12, 22, .96);
    border: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
  }

  .section {
    width: min(100% - 28px, 1140px);
    padding: 70px 0;
  }

  .stats-strip {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1140px);
  }

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

  .project-card.large {
    grid-column: span 1;
  }

  .hero-art .hammer {
    width: 88%;
  }

  .quote-section,
  .contact-section {
    padding: 36px 22px;
  }

  .quote-section {
    margin-top: 70px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .hero-title {
    white-space: normal;
    font-size: clamp(34px, 9.5vw, 44px);
  }

  h2.one-line {
    white-space: normal;
  }

  .education-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .edu-meta {
    align-items: flex-start;
  }

  .contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 32px;
  }

  .contact-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(24px);
    transition: .35s ease;
  }

  .contact-links a:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, .25);
    box-shadow: 0 0 35px rgba(0, 122, 255, .25);
    background: rgba(255, 255, 255, .08);
  }

  .contact-links i {
    font-size: 22px;
    color: #7fb8ff;
  }
}

/* ==========================================================================
   Continuous Learning Section (Global Styles)
   ========================================================================== */
.learning-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
  width: 100%;
}

.learning-card {
  width: 480px;
  max-width: 100%;
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.learning-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 20% 0%, rgba(10, 132, 255, 0.15), transparent 40%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.learning-card:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.learning-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.learning-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.12) 0%, rgba(10, 132, 255, 0.02) 100%);
  border: 1px solid rgba(10, 132, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(10, 132, 255, 0.15);
  flex-shrink: 0;
}

.learning-card-icon i {
  font-size: 24px;
}

.learning-card-icon i.fa-swift {
  color: #ff6b3d;
}

.learning-card-icon i.fa-apple {
  color: #ffffff;
}

.learning-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.learning-card-tag {
  color: #ff6b3d;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.learning-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  font-family: var(--display);
  letter-spacing: -0.01em;
}

.learning-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  margin: 0 0 24px 0;
}

.learning-card-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 0 20px 0;
  margin-top: auto;
}

.learning-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
  width: fit-content;
}

.learning-card-link:hover {
  color: #6bb7ff;
}

.learning-card-link i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.learning-card-link:hover i {
  transform: translateX(4px);
}

@media (max-width: 990px) {
  .learning-card {
    width: 100%;
    max-width: 520px;
  }
}