:root {
  --bg: #040506;
  --surface: rgba(12, 13, 16, 0.62);
  --surface-strong: rgba(16, 18, 22, 0.84);
  --text: #f2f4f7;
  --muted: #a2a9b3;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #8fb3ff;
  --accent-deep: #6f8fff;
  --accent-soft: rgba(143, 179, 255, 0.12);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  --glow:
    0 0 0 1px rgba(143, 179, 255, 0.06), 0 14px 40px rgba(75, 95, 160, 0.12);
  --inner-highlight:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  --radius: 24px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;

  background: #030304;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(140, 90, 255, 0.25),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(120, 160, 255, 0.18),
      transparent 40%
    );

  filter: blur(90px);
  animation: glowMove1 22s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(
      circle at 70% 20%,
      rgba(90, 140, 255, 0.2),
      transparent 40%
    ),
    radial-gradient(
      circle at 30% 80%,
      rgba(150, 110, 255, 0.18),
      transparent 45%
    );

  filter: blur(110px);
  animation: glowMove2 26s ease-in-out infinite alternate;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(calc(100% - 2rem), 1100px);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  background: rgba(14, 15, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  pointer-events: none;
  opacity: 0.55;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 1.4rem;
  width: 100%;
  min-width: 0;
}

.brand {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
  min-width: 0;
}

.nav-links a {
  white-space: nowrap;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease,
    opacity 0.25s ease;
  opacity: 0.92;
}

.nav-links a:hover,
.contact-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(143, 179, 255, 0.2);
  opacity: 1;
}

.hero {
  padding: 8.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.hero-copy,
.hero-card,
.skill-card,
.project-card,
.contact-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow), var(--inner-highlight);
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.hero-copy::before,
.hero-card::before,
.skill-card::before,
.project-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent 35%),
    radial-gradient(
      circle at top right,
      rgba(143, 179, 255, 0.08),
      transparent 26%
    );
  pointer-events: none;
  opacity: 0.6;
}

.hero-copy:hover,
.hero-card:hover,
.skill-card:hover,
.project-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow), var(--glow);
}

.hero-copy {
  padding: 3.5rem;
  border-radius: 32px;
}

.eyebrow,
.section-label,
.card-label,
.project-type {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent);
}

.hero h1,
.section h2,
.contact-section h2 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero h1 {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  max-width: none;
}

.hero-title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #e8ecf5;
  margin: 0 0 1rem 0;
  max-width: none;
  width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-text,
.section-content,
.skill-card p,
.project-card p {
  color: var(--muted);
}

.hero-text {
  max-width: 40rem;
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

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

.tech-stack {
  font-size: 0.8rem;
  color: var(--accent);
  margin: 6px 0 10px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.28s ease,
    background-color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: linear-gradient(135deg, #6d86f7 0%, #5570ee 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(60, 78, 170, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.button-primary:hover {
  background: linear-gradient(135deg, #7890ff 0%, #5e79f2 100%);
  box-shadow:
    0 14px 34px rgba(60, 78, 170, 0.34),
    0 0 18px rgba(143, 179, 255, 0.12);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 19, 24, 0.7);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(24, 26, 32, 0.84);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.hero-card {
  border-radius: 32px;
  padding: 2rem;
  align-self: start;
  height: 100%;
}

.profile-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.profile-list li {
  line-height: 1.65;
}

.profile-list li + li {
  margin-top: 0.85rem;
}

.section {
  padding: 2rem 0 4rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.section-heading h2,
.contact-section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-top: 0.45rem;
}

.section-content {
  font-size: 1.05rem;
}

.section-content p {
  margin: 0;
}

.section-content p + p {
  margin-top: 1rem;
}

.section-alt {
  padding-top: 1rem;
}

.compact {
  margin-bottom: 1.5rem;
}

.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.skill-card,
.project-card {
  padding: 1.6rem;
  border-radius: var(--radius);
}

.skill-card h3,
.project-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: #f6f9ff;
}

.project-type {
  margin: 0 0 0.8rem;
}

.contact-section {
  padding-bottom: 5rem;
}

.contact-card {
  border-radius: 32px;
  padding: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(14, 15, 18, 0.66);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--muted);
  font-weight: 500;
}

.brand,
.section h2,
.contact-section h2,
.hero h1 {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.education-layout {
  align-items: start;
}

.education-layout .section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  max-width: 10ch;
}

.education-grid {
  display: grid;
  gap: 1rem;
}

.education-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow), var(--inner-highlight);
  backdrop-filter: blur(24px);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.8rem;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.education-content {
  flex: 1;
}

.education-logo {
  width: 90px;
  height: 90px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.education-card:hover .education-logo {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(143, 179, 255, 0.15);
}

.education-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 35%),
    radial-gradient(
      circle at top right,
      rgba(143, 179, 255, 0.07),
      transparent 26%
    );
  pointer-events: none;
  opacity: 0.65;
}

.education-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow), var(--glow);
}

.education-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: #f6f9ff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.education-place {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.education-year {
  margin: 0.65rem 0 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (max-width: 980px) {
  .site-header {
    width: min(calc(100% - 1.5rem), 920px);
  }

  .nav {
    gap: 1rem;
    padding: 0.85rem 1.15rem;
  }

  .nav-links {
    gap: 0.9rem;
    font-size: 0.92rem;
  }

  .hero-grid,
  .section-grid,
  .contact-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-copy {
    padding: 2.25rem;
  }

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

@media (max-width: 820px) {
  .site-header {
    width: calc(100% - 1rem);
    border-radius: 30px;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
  }

  .brand {
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    gap: 0.8rem 1rem;
  }

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

@media (max-width: 640px) {
  .site-header {
    top: 0.75rem;
    width: calc(100% - 1rem);
    border-radius: 28px;
  }

  .nav {
    padding: 0.95rem 0.9rem;
  }

  .nav-links {
    justify-content: center;
    gap: 0.75rem 0.95rem;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 10rem;
  }

  .hero-copy,
  .hero-card,
  .contact-card {
    padding: 1.5rem;
    border-radius: 24px;
  }
}

@media (max-width: 900px) {
  .hero-title {
    white-space: normal;
  }
}

@keyframes glowMove1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-80px, 60px, 0) scale(1.15);
  }
}

@keyframes glowMove2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(60px, -80px, 0) scale(1.2);
  }
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  backdrop-filter: blur(24px);
  background: rgba(14, 15, 18, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-left strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.footer-left p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}
