﻿@font-face {
  font-family: "Oxygen Mono";
  src: url("fonts/oxygen-mono-v14-latin/oxygen-mono-v14-latin-regular.woff2")
    format("woff2");
  font-display: swap;
}

/* -------------------------------------------------------
   Theme
------------------------------------------------------- */

:root {
  --bg: #010a11;
  --bg-soft: #0b1a26;
  --surface: #0a1f2d;
  --surface-hover: #12354d;

  --text: #fbfdff;
  --muted: #e5f1ff;
  --faint: #cfe2f6;

  --line: rgba(255, 255, 255, 0.32);
  --line-strong: rgba(255, 255, 255, 0.5);

  --accent: #daf6ff;
  --accent-soft: rgba(218, 246, 255, 0.34);

  --radius: 12px;

  --mono: "Oxygen Mono", monospace;

  --content-width: 1120px;
}


/* -------------------------------------------------------
   Reset
------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  box-sizing: border-box;
  font-size: 18px;
}

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

body {
  margin: 0;
  min-height: 100vh;

  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.7;

  color: var(--text);
  /* background:
    radial-gradient(circle at 18% 20%, rgba(48, 105, 133, 0.28), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(118, 72, 151, 0.24), transparent 38%),
    linear-gradient(125deg, #010a11 0%, #0b1a26 48%, #102c3b 100%);
  background-size: 150% 150%, 160% 160%, 100% 100%;
  background-position: 0% 0%, 100% 100%, 50% 50%; */

  background:
  /* Subtle blue glow — upper left */
  radial-gradient(
    circle at 18% 20%,
    rgba(48, 105, 133, 0.30) 0%,
    rgba(48, 105, 133, 0.20) 18%,
    rgba(48, 105, 133, 0.08) 38%,
    transparent 58%
  ),

  /* Purple glow — lower right */
  radial-gradient(
    circle at 82% 72%,
    rgba(118, 72, 151, 0.26) 0%,
    rgba(118, 72, 151, 0.18) 20%,
    rgba(118, 72, 151, 0.07) 42%,
    transparent 62%
  ),

  /* Additional blue transition through the center */
  radial-gradient(
    ellipse at 55% 45%,
    rgba(35, 82, 105, 0.14) 0%,
    rgba(35, 82, 105, 0.07) 35%,
    transparent 68%
  ),

  /* Edge blending layer */
  radial-gradient(
    ellipse at 50% 50%,
    rgba(15, 39, 53, 0.35) 0%,
    rgba(10, 27, 38, 0.20) 55%,
    transparent 100%
  ),

  /* Base */
  linear-gradient(
    125deg,
    #010a11 0%,
    #07141e 22%,
    #0b1a26 45%,
    #0d2533 70%,
    #102c3b 100%
  );

background-size:
  150% 150%,
  160% 160%,
  140% 140%,
  130% 130%,
  100% 100%;

background-position:
  0% 0%,
  100% 100%,
  50% 50%,
  50% 50%,
  50% 50%;

  overflow-x: hidden;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}


/* -------------------------------------------------------
   Background
------------------------------------------------------- */

body::before {
  content: "";

  position: fixed;
  inset: 0;

  background-image: url("../images/svgs/backgroundImage_mmmotif.svg");
  background-repeat: repeat;
  background-size: 35% auto;
  background-position: center top;

  opacity: 0.92;
  filter: contrast(1.15);

  pointer-events: none;
  z-index: -1;
}


/* -------------------------------------------------------
   Scrollbar
------------------------------------------------------- */

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: var(--bg);
}

body::-webkit-scrollbar-thumb {
  background: #28313c;
  border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #36414e;
}


/* -------------------------------------------------------
   Layout
------------------------------------------------------- */

main {
  position: relative;
  width: 100%;
  max-width: var(--content-width);
  padding-right: 20px;
  padding-left: 20px;
  margin: 0 auto;
  padding-bottom: 120px;
}

section {
  margin-top: 110px;
  scroll-margin-top: 88px;
}

#projects {
  margin-top: 0;
}


/* -------------------------------------------------------
   Navigation
------------------------------------------------------- */

header.topbar {
  position: sticky;
  top: 0;
  z-index: 20;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;

  border-bottom: 1px solid var(--line);

  background: rgba(11, 15, 20, 0.88);

  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(14px);
}

header.topbar .brand {
  --brand-font-size: 1rem;

  display: inline-flex;
  align-items: center;

  color: var(--text);
  text-decoration: none;

  font-size: var(--brand-font-size);
  font-weight: 700;
  letter-spacing: 0.02em;
}

header.topbar .brand-prefix {
  margin-right: 10px;

  color: var(--accent);
  font-weight: 400;
}

header.topbar .brand-name {
  display: inline-flex;
  font-size: var(--brand-font-size);
  white-space: nowrap;
}

header.topbar .brand::after {
  content: "_";

  color: var(--accent);
  font-weight: 400;

  animation: blink-brand-cursor 0.8s steps(3, end) infinite;
}

@keyframes blink-brand-cursor {
  50% {
    opacity: 0;
  }
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;

  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: 1rem;
}

.back-to-top {
  position: absolute;
  left: 0;
  bottom: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;

  color: #7f8790;
  text-decoration: none;

  font-size: 1.4rem;

  transition: color 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #b0b7bf;
}


/* -------------------------------------------------------
   Hero
------------------------------------------------------- */

.hero {
  padding: 120px 0 20px;
}

.eyebrow {
  margin: 0 0 18px;

  color: var(--accent);

  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;

  margin: 0;

  color: var(--text);

  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;

  letter-spacing: -0.055em;
}

.lead {
  max-width: 760px;

  margin: 28px 0 0;
  padding: 20px 24px;

  color: var(--muted);
  background: rgba(7, 18, 24, 0.82);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  font-size: 0.98rem;
  line-height: 1.85;
}


/* -------------------------------------------------------
   Buttons
------------------------------------------------------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 32px;
}

.intro-social-links {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 760px;

  margin-top: 20px;

  justify-content: flex-end;
  gap: 24px;
}

.intro-social-links .social-link:nth-child(1) {
  --button-offset: 0px;
}

.intro-social-links .social-link:nth-child(2) {
  --button-offset: 0px;
}

.intro-social-links .social-link:nth-child(3) {
  --button-offset: 0px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  animation: intro-button-one 3s ease-in-out infinite;
}

.social-link img {
  width: 32px;
  height: 32px;
}

.social-link:hover,
.social-link:focus-visible {
  animation-play-state: paused;
}

@keyframes intro-button-one {
  0%,
  100% {
    transform: translateY(0);
  }

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

@keyframes intro-button-two {
  0%,
  100% {
    transform: translateY(0);
  }

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

@keyframes intro-button-three {
  0%,
  100% {
    transform: translateY(0);
  }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  padding: 0.65rem 1rem;

  border: 1px solid var(--line-strong);
  border-radius: 8px;

  background: var(--surface);

  color: var(--muted);

  text-decoration: none;

  font-size: 0.7rem;
  letter-spacing: 0.06em;

  transform: translateY(var(--button-offset, 0px));
  text-transform: uppercase;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.button:hover,
.button:focus-visible {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
  transform: translateY(calc(var(--button-offset, 0px) - 2px));
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  animation-play-state: paused;
}

.button:active {
  transform: translateY(calc(var(--button-offset, 0px) + 1px));
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.25);
  animation-play-state: paused;
}

.intro-social-links .social-link:nth-child(2) {
  animation-name: intro-button-two;
  animation-delay: 0.2s;
}

.intro-social-links .social-link:nth-child(3) {
  animation-name: intro-button-three;
  animation-delay: 0.4s;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);

  color: #07100e;
  font-weight: 700;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #a2eddd;
  border-color: #a2eddd;

  color: #07100e;
}


/* -------------------------------------------------------
   Section headings
------------------------------------------------------- */

.section-heading {
  display: flex;
  align-items: baseline;

  gap: 14px;

  margin-bottom: 22px;

  transform: none;
}

.section-heading h2 {
  margin: 0;

  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}

section[id] > :not(.section-heading) {
  transform: none;
}

#projects .section-heading,
#skills .section-heading {
  transform: translateX(-12px);
}

#projects > :not(.section-heading),
#skills > :not(.section-heading) {
  transform: translateX(12px);
}

.projects-lead {
  margin-top: 90px;
}


/* -------------------------------------------------------
   Projects
------------------------------------------------------- */

#projects {
  max-width: 100%;
}

.project-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px;
}


/*
   Project cards deliberately use a restrained surface.

   No large gradient.
   No giant shadow.
   No 20-40px radius.
   No thick accent border.
*/

.project {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 240px;

  padding: 24px;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  background: rgba(17, 23, 31, 0.62);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.project::before {
  content: "";

  position: absolute;

  top: 0;
  left: 24px;

  width: 28px;
  height: 1px;

  background: var(--accent);

  opacity: 0.6;

  transition:
    width 0.25s ease,
    opacity 0.25s ease;
}

.project:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}

.project:hover::before {
  width: 54px;
  opacity: 1;
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 16px;

  margin-bottom: 8px;
}

.project-head h3 {
  margin: 0;

  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;

  letter-spacing: -0.015em;
}

.project-link {
  position: absolute;
  right: 24px;
  bottom: 24px;

  display: inline-flex;
  align-items: center;

  color: var(--faint);

  text-decoration: none;

  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition: color 0.2s ease;
}

.project-link img {
  width: 24px;
  height: 24px;

  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.page-footer {
  position: relative;

  width: 100%;
  margin: 0;
  min-height: 64px;
  padding-bottom: 24px;
}

.project:hover .project-link img,
.project-link:focus-visible img {
  filter: drop-shadow(0 0 6px var(--accent));
  transform: scale(1.12);
}

.project p {
  margin: 10px 0 0;

  max-width: 620px;

  color: var(--muted);

  font-size: 0.82rem;
  line-height: 1.75;
}

.tag-list {
  list-style: none;

  display: flex;
  flex-wrap: wrap;

  gap: 6px;

  margin: auto 0 0;
  padding: 22px 0 0;
}

.tag-list li {
  padding: 0.3rem 0.55rem;

  border: 1px solid var(--line);
  border-radius: 5px;

  color: var(--faint);

  font-size: 0.61rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  background: transparent;
}


/* -------------------------------------------------------
   Skills
------------------------------------------------------- */

.skills-layout {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;

  border: 0;
  border-radius: 0;

  overflow: hidden;

  background: transparent;
}

.skill-group {
  min-height: 170px;

  padding: 28px 26px 26px;

  background: linear-gradient(135deg, rgba(17, 23, 31, 0.78), rgba(11, 17, 24, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -24px 32px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);

  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-group:nth-child(odd) {
  background: linear-gradient(135deg, rgba(20, 28, 36, 0.78), rgba(10, 15, 21, 0.58));
}

.skill-group:nth-child(even) {
  background: linear-gradient(135deg, rgba(14, 20, 27, 0.74), rgba(8, 12, 17, 0.58));
}

.skill-group:hover {
  background: linear-gradient(135deg, rgba(28, 38, 48, 0.84), rgba(15, 22, 30, 0.68));
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -24px 32px rgba(0, 0, 0, 0.18);
}

.skill-group h3 {
  margin: 0 0 18px;

  color: var(--text);

  font-size: 0.9rem;
  font-weight: 400;

  letter-spacing: -0.015em;
}

.skill-group p {
  margin: 0 0 11px;

  color: var(--muted);

  font-size: 0.78rem;
  line-height: 1.8;
}

.skill-group p:last-child {
  margin-bottom: 0;
}

.skill-tools {
  color: var(--accent) !important;

  font-size: 0.68rem !important;
}


/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */

@media (max-width: 760px) {
  header.topbar {
    padding: 0 14px;
  }

  main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero {
    padding-top: 82px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 13vw, 3.8rem);
  }

  .lead {
    font-size: 0.88rem;
  }

  section {
    margin-top: 80px;
  }

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

  .project {
    min-height: 220px;
  }

  .skill-group {
    min-height: auto;
  }

  .cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

}


/* -------------------------------------------------------
   Reduced motion
------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.nav-item {
  --depth-x: 16px;
  --depth-y: 10px;

  position: relative;

  display: flex;
  align-items: center;

  width: 110px;
  height: 36px;

  padding: 6px 14px 0;

  color: #f1dbff;
  text-decoration: none;

  background: var(--surface);
  border: 0;
  box-shadow: none;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;

  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;

  margin-top: var(--depth-y);
  margin-right: var(--depth-x);
  z-index: 1;
}

/* top face */
.nav-item::before {
  content: "";

  position: absolute;
  left: 0;
  top: calc(var(--depth-y) * -1);

  width: 100%;
  height: var(--depth-y);

  background: linear-gradient(180deg, #daf6ff 0%, #6aaebb 100%);

  transform: skewX(-45deg);
  transform-origin: bottom left;

  z-index: -1;
}

.nav-item:hover,
.nav-item:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
  transform: translateY(-2px);
}

.nav-item:hover::before,
.nav-item:focus-visible::before {
  filter: brightness(1.2);
}

/* no right-side face */
.nav-item::after {
  display: none;
}


.bulging-3d {
  margin: 0;

  color: transparent;
  background: linear-gradient(180deg, #f2fbff 0%, #b9e6df 18%, #55b9ae 36%, #167d79 58%, #0d555c 78%, #173b4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 2px rgba(13, 85, 92, 0.9);
  paint-order: stroke fill;

  text-shadow:
    1px -1px 0 rgba(144, 220, 210, 0.98),
    2px -2px 0 rgba(103, 190, 182, 0.96),
    3px -3px 0 rgba(65, 157, 155, 0.94),
    4px -4px 0 rgba(37, 124, 130, 0.92),
    5px -5px 0 rgba(25, 101, 111, 0.9),
    6px -6px 0 rgba(20, 79, 91, 0.86),
    7px -7px 0 rgba(18, 64, 77, 0.82),
    8px -8px 0 rgba(17, 53, 66, 0.78),
    9px -9px 0 rgba(15, 45, 57, 0.74),
    10px -10px 0 rgba(12, 37, 48, 0.7),
    12px -12px 0 rgba(9, 30, 40, 0.66),
    14px -14px 0 rgba(7, 24, 33, 0.62),
    16px -16px 0 rgba(4, 17, 25, 0.58);
}

.primary-nav .nav-item {
  margin-top: 10px;
  margin-right: 0;
}

.primary-nav .nav-item:nth-child(3) {
  margin-left: 14px;
  margin-right: 14px;
}

.primary-nav .nav-item[href^="https://"] {
  color: #f1dbff;
}

.primary-nav .nav-item:nth-child(-n + 2)::before {
  background: linear-gradient(180deg, #4b7f89 0%, #1e3740 100%);
}

.primary-nav .nav-item:nth-child(n + 3)::before {
  background: linear-gradient(180deg, #7da94b 0%, #304b25 100%);
}

.primary-nav .nav-item:nth-child(3)::before {
  background: linear-gradient(180deg, #e3b86b 0%, #73562d 100%);
}



