/* Palette aligned with aditiarya.netlify.app — deep zinc, violet–fuchsia accent, crisp type */

:root {
  --bg-deep: #050a18;
  --bg-elevated: rgba(24, 24, 27, 0.65);
  --text: #ffffff;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --accent: #c084fc;
  --accent-2: #f472b6;
  --accent-dim: rgba(192, 132, 252, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: #27272a;
  --max: 900px;
  --max-wide: 1740px;
  /* Asharma-style project blues */
  --card-blue-border: #3b82f6;
  --card-blue-head: #1e40af;
  --card-blue-body: #1e3a8a;
  --skill-icon-bg: #020617;
  --skill-label-bg: #0a192f;
}

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

html {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(14, 116, 144, 0.22), transparent 65%),
    radial-gradient(ellipse 60% 55% at 85% 20%, rgba(37, 99, 235, 0.12), transparent 68%),
    linear-gradient(180deg, #05070f 0%, #050a18 48%, #03050b 100%);
  background-attachment: fixed;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: drift 140s linear infinite;
}

@keyframes drift {
  to {
    transform: translate3d(-2%, -1%, 0);
  }
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding-inline: 1rem;
}

.container-wide {
  width: min(100% - 2rem, var(--max-wide));
  max-width: var(--max-wide);
}

#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

main {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: 1rem;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.site-header::before {
  content: none;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 40rem);
  min-height: 5rem;
  margin: 0 auto;
  padding: 0.65rem 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.85rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(5, 10, 24, 0.74));
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 0 34px rgba(96, 165, 250, 0.13);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.12) 52%, transparent 64%),
    radial-gradient(ellipse 34% 70% at 88% 0%, rgba(255, 255, 255, 0.16), transparent 62%);
  opacity: 0.7;
}


.brand {
  position: absolute;
  left: 1rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

body[data-page="projects"] .brand,
body[data-page="skills"] .brand {
  display: none;
}

.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  flex: 1 1 0;
}

.nav-links a {
  --nav-accent: #60a5fa;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 3.7rem;
  padding: 0.55rem clamp(0.55rem, 1.4vw, 0.95rem);
  border: 1px solid transparent;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.68rem, 1.1vw, 0.8rem);
  letter-spacing: 0;
  line-height: 1;
  color: rgba(226, 232, 240, 0.78);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--nav-accent) 16%, transparent), transparent 46%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.26), rgba(5, 10, 24, 0.18));
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.nav-links li:nth-child(4n + 1) a {
  --nav-accent: #22d3ee;
}

.nav-links li:nth-child(4n + 2) a {
  --nav-accent: #60a5fa;
}

.nav-links li:nth-child(4n + 3) a {
  --nav-accent: #c084fc;
}

.nav-links li:nth-child(4n) a {
  --nav-accent: #f472b6;
}

.nav-links a::before,
.nav-links a::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.nav-links a::before {
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.16) 48%, transparent 58%),
    radial-gradient(circle at 50% 112%, color-mix(in srgb, var(--nav-accent) 42%, transparent), transparent 48%);
  opacity: 0;
  transform: translateX(-38%);
  transition: opacity 0.22s ease, transform 0.42s ease;
}

.nav-links a::after {
  inset: auto 18% 0.42rem;
  height: 2px;
  border-radius: 999px;
  background: var(--nav-accent);
  box-shadow: 0 0 16px var(--nav-accent);
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
}

.nav-icon svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.nav-links a:hover {
  color: #ffffff;
  border-color: color-mix(in srgb, var(--nav-accent) 48%, rgba(255, 255, 255, 0.14));
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--nav-accent) 24%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(18, 27, 55, 0.54), rgba(5, 10, 24, 0.34));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 22px color-mix(in srgb, var(--nav-accent) 28%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.nav-links a:hover::before {
  opacity: 1;
  transform: translateX(38%);
}

.nav-links a:hover::after {
  opacity: 0.85;
  transform: scaleX(1);
}

.nav-links a:hover .nav-icon svg {
  transform: translateY(-2px) scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--nav-accent) 72%, transparent));
}

body[data-page="home"] .nav-links a[href="index.html"],
body[data-page="projects"] .nav-links a[href="projects.html"],
body[data-page="skills"] .nav-links a[href="skills.html"],
body[data-page="about"] .nav-links a[href="about.html"] {
  color: #ffffff;
  border-color: color-mix(in srgb, var(--nav-accent) 62%, rgba(255, 255, 255, 0.16));
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--nav-accent) 34%, transparent), transparent 46%),
    linear-gradient(180deg, rgba(18, 27, 55, 0.94), rgba(5, 10, 24, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px color-mix(in srgb, var(--nav-accent) 18%, transparent),
    0 10px 28px color-mix(in srgb, var(--nav-accent) 28%, transparent),
    0 0 28px color-mix(in srgb, var(--nav-accent) 42%, transparent);
}

body[data-page="home"] .nav-links a[href="index.html"]::before,
body[data-page="projects"] .nav-links a[href="projects.html"]::before,
body[data-page="skills"] .nav-links a[href="skills.html"]::before,
body[data-page="about"] .nav-links a[href="about.html"]::before {
  opacity: 0.8;
  transform: translateX(24%);
}

body[data-page="home"] .nav-links a[href="index.html"]::after,
body[data-page="projects"] .nav-links a[href="projects.html"]::after,
body[data-page="skills"] .nav-links a[href="skills.html"]::after,
body[data-page="about"] .nav-links a[href="about.html"]::after {
  opacity: 1;
  transform: scaleX(1);
}

body[data-page="home"] .nav-links a[href="index.html"] .nav-icon svg,
body[data-page="projects"] .nav-links a[href="projects.html"] .nav-icon svg,
body[data-page="skills"] .nav-links a[href="skills.html"] .nav-icon svg,
body[data-page="about"] .nav-links a[href="about.html"] .nav-icon svg {
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--nav-accent) 74%, transparent));
}

/* Hero — Aditi-style intro */
.hero {
  padding-block: clamp(3.5rem, 12vw, 6.5rem);
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 40rem) minmax(20rem, 25rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  justify-content: center;
}

body[data-page="home"] .hero {
  min-height: calc(100svh - 13.5rem);
  padding-block: clamp(2rem, 7vw, 4rem);
}

.hero-inner {
  max-width: 42rem;
}

.hero-profile-card {
  --profile-accent: #22d3ee;
  position: relative;
  isolation: isolate;
  width: min(100%, 24rem);
  min-height: 18rem;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 44%, rgba(255, 255, 255, 0.2));
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -8%, color-mix(in srgb, var(--profile-accent) 40%, transparent), transparent 46%),
    linear-gradient(180deg, rgba(24, 37, 78, 0.92), rgba(8, 15, 36, 0.96));
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.42),
    0 0 42px color-mix(in srgb, var(--profile-accent) 26%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-profile-card::before,
.hero-profile-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.hero-profile-card::before {
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.16) 48%, transparent 58%),
    radial-gradient(circle at 50% 112%, color-mix(in srgb, var(--profile-accent) 38%, transparent), transparent 48%);
  opacity: 0.75;
}

.hero-profile-card::after {
  inset: auto 2rem 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--profile-accent);
  box-shadow: 0 0 18px var(--profile-accent);
  opacity: 0.85;
}

.hero-profile-card .LI-profile-badge,
.hero-profile-card iframe {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.hero-profile-card .LI-profile-badge {
  min-width: 330px;
  min-height: 257px;
}

.hero-profile-card:has(iframe) .linkedin-fallback,
.hero-profile-card.linkedin-loaded .linkedin-fallback {
  display: none;
}

.hero-profile-card .badge-base__link {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.linkedin-fallback {
  position: absolute;
  z-index: 2;
  inset: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem;
  border-radius: 6px;
  background: #000000;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

.linkedin-fallback::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 46px;
  border-radius: 6px 6px 0 0;
  background: #38434f;
}

.linkedin-fallback-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.linkedin-fallback-brand span {
  display: inline-grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.1rem;
  border-radius: 2px;
  background: #ffffff;
  color: #38434f;
  font-size: 0.72rem;
  letter-spacing: -0.04em;
}

.linkedin-fallback-photo {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin-bottom: 0.85rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  background: #111827;
}

.linkedin-fallback-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.18rem;
  margin-bottom: 0.85rem;
}

.linkedin-fallback-copy h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.linkedin-fallback-copy p,
.linkedin-fallback-copy span {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.28;
}

.linkedin-fallback-copy span {
  max-width: 17.5rem;
}

.linkedin-fallback-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0 1rem;
  border: 1.5px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 2rem;
  }

  .hero-inner {
    max-width: 42rem;
    width: 100%;
  }

  .hero-profile-card {
    width: min(100%, 24rem);
    justify-self: start;
  }
}

.hero-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
}

.hero-name {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 6vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, #fafafa 0%, #e4e4e7 40%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

.cursor-blink {
  opacity: 0.85;
  margin-left: 2px;
  color: var(--accent-2);
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 38rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.9rem;
  align-items: center;
}

.btn {
  --btn-accent: #60a5fa;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  overflow: hidden;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--btn-accent) 32%, rgba(255, 255, 255, 0.16));
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--btn-accent) 24%, transparent), transparent 58%),
    linear-gradient(180deg, rgba(18, 27, 55, 0.86), rgba(5, 10, 24, 0.9));
  color: #f8fafc;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.24),
    0 0 24px color-mix(in srgb, var(--btn-accent) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn:nth-child(4n + 1) {
  --btn-accent: #22d3ee;
}

.btn:nth-child(4n + 2) {
  --btn-accent: #c084fc;
}

.btn:nth-child(4n + 3) {
  --btn-accent: #f472b6;
}

.btn:nth-child(4n) {
  --btn-accent: #60a5fa;
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.btn::before {
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.16) 48%, transparent 58%),
    radial-gradient(circle at 50% 118%, color-mix(in srgb, var(--btn-accent) 38%, transparent), transparent 48%);
  opacity: 0;
  transform: translateX(-38%);
  transition: opacity 0.22s ease, transform 0.42s ease;
}

.btn::after {
  inset: auto 20% 0.42rem;
  height: 2px;
  border-radius: 999px;
  background: var(--btn-accent);
  box-shadow: 0 0 16px var(--btn-accent);
  opacity: 0.42;
  transform: scaleX(0.28);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.btn:hover {
  transform: translateY(-4px);
  color: #ffffff;
  border-color: color-mix(in srgb, var(--btn-accent) 58%, rgba(255, 255, 255, 0.18));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.3),
    0 0 30px color-mix(in srgb, var(--btn-accent) 34%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn:hover::before {
  opacity: 1;
  transform: translateX(38%);
}

.btn:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.btn-outline {
  color: #f8fafc;
}

.btn-outline:hover {
  color: #ffffff;
}

.btn,
.btn-outline {
  min-width: 160px;
  text-align: center;
}

.projects,
.skills,
.about {
  padding-block: clamp(2rem, 5vw, 3.25rem) 3.25rem;
}

.section-head {
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.skills-page-title {
  margin: 0 0 4.5rem;
  font-size: clamp(1.5rem, 2.1vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

/* Projects — luminous card grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px);
  gap: 2rem;
  align-items: stretch;
  justify-content: center;
  perspective: 1200px;
}

.project-card {
  --project-accent: #60a5fa;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  background:
    radial-gradient(circle at 50% -8%, color-mix(in srgb, var(--project-accent) 46%, transparent), transparent 46%),
    linear-gradient(180deg, rgba(24, 37, 78, 0.98), rgba(8, 15, 36, 0.98));
  /* border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 14px;
  overflow: hidden;
  min-height: 100%;
  box-shadow:
    0px 28px 55px -22px rgba(56, 189, 248, 0.55),
    inset 0 0 0 1px rgba(96, 165, 250, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer; */
  background-size: 60px 60px;
  background-position: 0 0, 0 0;
  background-color: #0b1530;
  border: 1px solid color-mix(in srgb, var(--project-accent) 42%, rgba(255, 255, 255, 0.24));
  border-radius: 18px;
  overflow: visible;
  min-height: 100%;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.045),
    0 0 42px color-mix(in srgb, var(--project-accent) 26%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
  cursor: pointer;


}

.project-card:nth-child(4n + 1) {
  --project-accent: #22d3ee;
}

.project-card:nth-child(4n + 2) {
  --project-accent: #60a5fa;
}

.project-card:nth-child(4n + 3) {
  --project-accent: #c084fc;
}

.project-card:nth-child(4n) {
  --project-accent: #f472b6;
}

/* .project-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0px 35px 65px -20px rgba(56, 189, 248, 0.65),
    inset 0 0 0 1px rgba(96, 165, 250, 0.2);
} */

.project-card.flipped {
  transform: rotateY(180deg);
  background-position: -100px 100px, -100px 100px;
  box-shadow:
    0 30px 55px rgba(0, 0, 0, 0.48),
    0 0 48px color-mix(in srgb, var(--project-accent) 36%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}


.project-card-head {
  margin: 0;
  padding: 0.78rem 1.75rem;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.1) 48%, transparent 58%),
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--project-accent) 44%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(30, 44, 91, 0.96), rgba(13, 24, 54, 0.94));
  border-bottom: 1px solid color-mix(in srgb, var(--project-accent) 44%, rgba(255, 255, 255, 0.08));
  transform-style: preserve-3d;
  transform: translate3d(0px, 0px, 30px);
  backface-visibility: hidden;
}

.project-card-head h3 {
  margin: 0;
  /* font-family: "Playfair Display", Georgia, serif; */
  /* font-style: italic; */
  font-weight: 600;
  font-size: 1.08rem;
  color: #f8fafc;
  text-shadow: 0 0 18px color-mix(in srgb, var(--project-accent) 32%, transparent);
  line-height: 1.25;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 20px);
}

.project-card:hover .project-card-head h3 {
  transform: translate3d(0px, 0px, 40px);
}

.project-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--project-accent) 28%, transparent), transparent 56%),
    #08122b;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 200px;
  padding: 1rem 1.25rem 1.5rem;
  background:
    radial-gradient(circle at 50% 112%, color-mix(in srgb, var(--project-accent) 34%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(17, 30, 67, 0.96), rgba(8, 15, 36, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 -1px 0 color-mix(in srgb, var(--project-accent) 28%, transparent);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  position: relative;
  z-index: 1;
}

.project-body > .project-meta-row:first-of-type {
  margin-top: auto;
}

.project-body > p {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  transition: all 0.5s ease-in-out;
  transform: translate3d(0px, 0px, 25px);
}

.project-body:hover > p {
  transform: translate3d(0px, 0px, 40px);
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  transform-style: preserve-3d;
  transform: translate3d(0px, 0px, 15px);
  transition: all 0.5s ease-in-out;
}

.project-card:hover .project-meta-row {
  transform: translate3d(0px, 0px, 35px);
}

.project-meta-row .meta-label {
  /* font-family: Georgia, "Times New Roman", serif; */
  font-size: 0.85rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--project-accent) 70%, #ffffff);
  min-width: 3rem;
}

.icon-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.icon-rail a,
.icon-rail .tech-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:#ffffff5e;
  border: 1px solid color-mix(in srgb, var(--project-accent) 28%, rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.icon-rail a:hover {
  transform: scale(1.08);
  border-color: color-mix(in srgb, var(--project-accent) 72%, #ffffff);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--project-accent) 34%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.icon-rail img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.project-learn-more {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.9rem;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--project-accent) 32%, transparent), transparent 58%),
    linear-gradient(180deg, rgba(18, 27, 55, 0.95), rgba(5, 10, 24, 0.98));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.4s ease-in-out;
  transform: translate3d(0px, 0px, 20px);
  border: 1px solid color-mix(in srgb, var(--project-accent) 44%, rgba(255, 255, 255, 0.16));
  box-shadow:
    0 10px 24px -14px color-mix(in srgb, var(--project-accent) 58%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  align-self: flex-start;
  order: 4;
}

.project-learn-more:hover {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--project-accent) 44%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(30, 41, 80, 0.98), rgba(8, 13, 31, 0.98));
  color: #ffffff;
  transform: translate3d(0px, 0px, 40px);
  box-shadow:
    0 0 24px color-mix(in srgb, var(--project-accent) 38%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Skills — luminous tech tiles */
.skills-grid-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1rem, 2.6vw, 2.25rem);
  justify-content: center;
}

.skill-tile {
  --tile-accent: #60a5fa;
  position: relative;
  isolation: isolate;
  height: 166px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tile-accent) 26%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(5, 10, 24, 0.96));
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.skill-tile:nth-child(4n + 1) {
  --tile-accent: #22d3ee;
}

.skill-tile:nth-child(4n + 2) {
  --tile-accent: #c084fc;
}

.skill-tile:nth-child(4n + 3) {
  --tile-accent: #f97316;
}

.skill-tile:nth-child(4n) {
  --tile-accent: #38bdf8;
}

.skill-tile::before,
.skill-tile::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.skill-tile::before {
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.18) 48%, transparent 58%),
    radial-gradient(circle at 50% 118%, color-mix(in srgb, var(--tile-accent) 44%, transparent), transparent 46%);
  opacity: 0;
  transform: translateX(-35%);
  transition: opacity 0.25s ease, transform 0.45s ease;
}

.skill-tile::after {
  inset: auto 18px 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--tile-accent);
  box-shadow: 0 0 18px var(--tile-accent);
  opacity: 0.42;
  transform: scaleX(0.28);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.skill-tile:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--tile-accent) 58%, rgba(255, 255, 255, 0.22));
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tile-accent) 34%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(18, 27, 55, 0.94), rgba(5, 10, 24, 0.98));
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.38),
    0 0 34px color-mix(in srgb, var(--tile-accent) 34%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.skill-tile:hover::before {
  opacity: 1;
  transform: translateX(35%);
}

.skill-tile:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.skill-tile-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 1.1rem 0.8rem 0.55rem;
  background: #ffffffa8;
}

.skill-tile-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.32));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.skill-tile:hover .skill-tile-icon img {
  transform: translateY(-5px) scale(1.08) rotate(-2deg);
  filter:
    drop-shadow(0 16px 24px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 18px color-mix(in srgb, var(--tile-accent) 62%, transparent));
}

.skill-tile-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.35rem 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.92);
  line-height: 1.25;
  background: transparent;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.28);
  transition: color 0.25s ease, transform 0.25s ease;
}

.skill-tile:hover .skill-tile-label {
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .hero-profile-card {
    width: 100%;
    min-height: 18rem;
  }

  .linkedin-card {
    min-height: 16rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline {
    width: 100%;
    min-width: unset;
  }

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

  .project-card {
    transform: none;
  }

  .project-card:hover {
    transform: none;
  }

  .project-card-head,
  .project-body > p,
  .project-learn-more,
  .project-meta-row {
    transform: translate3d(0px, 0px, 0px) !important;
  }

  .skills-grid-tiles {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 0.75rem;
  }

  .skill-tile {
    height: 138px;
    border-radius: 16px;
  }

  .skill-tile-icon {
    min-height: 76px;
    padding-top: 0.9rem;
  }

  .skill-tile-icon img {
    width: 48px;
    height: 48px;
  }

  .skill-tile-label {
    padding-bottom: 1rem;
    font-size: 0.88rem;
  }
}

.about-copy {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.75;
}

.connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contributions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.75rem);
  margin-top: 2rem;
}

.contribution-card {
  height: 100%;
  --contribution-accent: #60a5fa;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% -8%, color-mix(in srgb, var(--contribution-accent) 42%, transparent), transparent 46%),
    linear-gradient(180deg, rgba(24, 37, 78, 0.98), rgba(8, 15, 36, 0.98));
  border: 1px solid color-mix(in srgb, var(--contribution-accent) 38%, rgba(255, 255, 255, 0.22));
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.42),
    0 0 38px color-mix(in srgb, var(--contribution-accent) 24%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contribution-card:nth-child(4n + 1) {
  --contribution-accent: #22d3ee;
}

.contribution-card:nth-child(4n + 2) {
  --contribution-accent: #60a5fa;
}

.contribution-card:nth-child(4n + 3) {
  --contribution-accent: #c084fc;
}

.contribution-card:nth-child(4n) {
  --contribution-accent: #f472b6;
}

.contribution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.14) 48%, transparent 58%),
    radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--contribution-accent) 36%, transparent), transparent 48%);
  opacity: 0;
  transform: translateX(-36%);
  transition: opacity 0.25s ease, transform 0.45s ease;
}

.contribution-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 18px;
  z-index: 0;
  height: 2px;
  pointer-events: none;
  border-radius: 999px;
  background: var(--contribution-accent);
  box-shadow: 0 0 18px var(--contribution-accent);
  opacity: 0.42;
  transform: scaleX(0.28);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contribution-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--contribution-accent) 60%, rgba(255, 255, 255, 0.2));
  box-shadow:
    0 30px 58px rgba(0, 0, 0, 0.48),
    0 0 48px color-mix(in srgb, var(--contribution-accent) 34%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.contribution-card:hover::before {
  opacity: 1;
  transform: translateX(34%);
}

.contribution-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.contribution-card-thumb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 170px;
  min-height: 170px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--contribution-accent) 48%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(30, 44, 91, 0.96), rgba(13, 24, 54, 0.94));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--contribution-accent) 38%, rgba(255, 255, 255, 0.08));
}

.contribution-card-thumb img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 0.32s ease, filter 0.32s ease;
}

.contribution-card:hover .contribution-card-thumb img {
  transform: scale(1.04);
  filter: saturate(1.16) contrast(1.08);
}

.placeholder-thumb {
  width: 100%;
  height: 170px;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--contribution-accent) 52%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(30, 44, 91, 0.96), rgba(8, 15, 36, 0.98));
}

.thumb-label {
  color: #eff6ff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px color-mix(in srgb, var(--contribution-accent) 46%, transparent);
}

.contribution-card-body {
  position: relative;
  z-index: 1;
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 210px;
  background:
    radial-gradient(circle at 50% 116%, color-mix(in srgb, var(--contribution-accent) 30%, transparent), transparent 50%),
    linear-gradient(180deg, rgba(17, 30, 67, 0.92), rgba(8, 15, 36, 0.96));
}

.contribution-card-body .contribution-card-meta:first-of-type {
  margin-top: auto;
}

.contribution-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #f8fafc;
  font-weight: 700;
  text-shadow: 0 0 18px color-mix(in srgb, var(--contribution-accent) 30%, transparent);
}

.contribution-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contribution-card p:hover {
  cursor: help;
}

.contribution-card-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  align-items: center;
  font-size: 0.84rem;
  color: rgba(203, 213, 225, 0.9);
}

.contribution-card-meta .meta-label {
  font-weight: 700;
  color: color-mix(in srgb, var(--contribution-accent) 72%, #ffffff);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contribution-card-meta a {
  color: color-mix(in srgb, var(--contribution-accent) 58%, #ffffff);
  text-decoration: none;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.contribution-card-meta a:hover {
  color: #ffffff;
  text-shadow: 0 0 14px color-mix(in srgb, var(--contribution-accent) 48%, transparent);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-2);
}

body[data-page="home"] .site-footer {
  margin-top: 0;
}

@media (max-width: 640px) {
  .site-header {
    top: 0;
    padding-block: 0.75rem;
  }

  .nav {
    width: min(100%, 23rem);
    min-height: 4.35rem;
    padding: 0.45rem 0.4rem;
    border-radius: 1.55rem;
  }

  .brand {
    position: static;
  }

  .nav-links {
    gap: 0.2rem;
  }

  .nav-links a {
    min-height: 3.35rem;
    padding: 0.5rem 0.25rem;
    font-size: 0.64rem;
  }

  .nav-icon {
    width: 1.55rem;
    height: 1.55rem;
  }

  .nav-icon svg {
    width: 1.45rem;
    height: 1.45rem;
  }

  .hero {
    padding-top: 2.5rem;
  }
}
