:root {
  --bg: #08090c;
  --bg-soft: #0d0f13;
  --card: #111318;
  --card-hover: #151820;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f4f6;
  --muted: #969ba6;
  --muted-light: #c1c5cc;
  --oxblood: #541323;
  --oxblood-light: #7b2037;
  --accent: #b93252;
  --accent-soft: rgba(185, 50, 82, 0.12);
  --white: #ffffff;
  --max-width: 1180px;
  --radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(84, 19, 35, 0.2), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}



.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 100;
  width: min(1080px, calc(100% - 40px));
  height: 58px;
  padding: 0 10px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(9, 10, 14, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.navbar:hover {
  background: rgba(12, 13, 18, 0.84);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow:
    0 14px 45px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.nav-logo {
  color: var(--text);
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-logo span {
  color: var(--accent);
}

.nav-logo:hover {
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  margin-right: 18px;
}

.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 1px;
  transform: translateX(-50%);
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-links a:hover::after {
  width: 14px;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-light);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.nav-github span {
  color: var(--accent);
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

.nav-github:hover {
  transform: translateY(-1px);
  border-color: rgba(185, 50, 82, 0.35);
  background: rgba(185, 50, 82, 0.09);
  color: var(--white);
}

.nav-github:hover span {
  transform: translate(2px, -2px);
}

@media (max-width: 700px) {
  .navbar {
    top: 12px;
    width: calc(100% - 24px);
    height: 54px;
    padding-left: 16px;
  }

  .nav-links {
    gap: 0;
    margin-right: 6px;
  }

  .nav-links a {
    padding: 7px 8px;
    font-size: 0.7rem;
  }

  .nav-github {
    padding: 7px 10px;
    font-size: 0.7rem;
  }
}

@media (max-width: 520px) {
  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) {
    display: none;
  }

  .nav-links {
    margin-left: auto;
    margin-right: 8px;
  }

  .navbar {
    justify-content: flex-start;
  }
}



a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.archivo-black {
  font-family: "Archivo Black", system-ui, sans-serif;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(123, 32, 55, 0.28), transparent 30%),
    radial-gradient(circle at center, #180a0f 0%, #08090c 55%, #030304 100%);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    visibility 0.9s ease;
}

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.intro::before {
  width: 600px;
  height: 600px;
  border: 1px solid rgba(185, 50, 82, 0.08);
  border-radius: 50%;
  animation: introPulse 6s ease-in-out infinite;
}

.intro::after {
  width: 900px;
  height: 900px;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
}

.intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.04);
}

.name-block {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--white);
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  animation: introName 1s ease both;
}

.name-block img {
  width: clamp(48px, 7vw, 82px);
  height: clamp(48px, 7vw, 82px);
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(185, 50, 82, 0.35));
}

.subtext {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  letter-spacing: 0.02em;
  animation: introSubtext 1s 0.15s ease both;
}

.enter-btn {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  padding: 14px 25px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: var(--white);
  color: #090a0d;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  animation: introButton 1s 0.3s ease backwards;
}

.enter-btn:hover {
  transform: translateY(-3px);
  transform: scale(1.1);

  background: #f7f7f7;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.enter-btn:active {
  transform: translateY(-1px);
}

.main {
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.main.show {
  opacity: 1;
  transform: translateY(0);
}

header {
  position: relative;
  max-width: var(--max-width);
  min-height: 76vh;
  margin: 0 auto;
  padding: 150px 32px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header::before {
  content: "";
  position: absolute;
  top: 15%;
  right: 5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(123, 32, 55, 0.1);
  filter: blur(90px);
  pointer-events: none;
}

.header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

header h1 {
  position: relative;
  max-width: 900px;
  color: var(--white);
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

header h1 span {
  color: var(--accent);
}

header p {
  max-width: 720px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 11px 19px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 50, 82, 0.55);
  background: var(--accent-soft);
  color: #fff;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--oxblood-light);
  border-color: var(--oxblood-light);
}

section {
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 100px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}

.section-label {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h2 {
  color: var(--white);
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-description {
  max-width: 470px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project {
  position: relative;
  min-width: 0;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 55%),
    var(--card);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project:hover {
  transform: translateY(-7px);
  border-color: rgba(185, 50, 82, 0.28);
  background:
    linear-gradient(145deg, rgba(185, 50, 82, 0.05), transparent 55%),
    var(--card-hover);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.project:hover::before {
  opacity: 1;
}

.project.featured {
  grid-column: 1 / -1;
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.project-number {
  color: rgba(255, 255, 255, 0.2);
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.project h3 {
  margin-bottom: 10px;
  color: var(--white);
  font-family: "Archivo Black", system-ui, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.project p {
  max-width: 800px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.project-tag {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.project-gif {
  margin-top: 25px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #07080b;
}

.gif-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.gif-header span {
  color: var(--accent);
}

.gif-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 300px;
  background:
    radial-gradient(circle at center, rgba(84, 19, 35, 0.12), transparent 55%),
    #050609;
}

.gif-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.gif-caption {
  padding: 11px 15px;
  border-top: 1px solid var(--border);
  color: #777d88;
  font-size: 0.73rem;
  line-height: 1.5;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease;
}

.project-link:hover {
  color: var(--accent);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.experience-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 35px;
  padding: 30px;
  background: var(--card);
  transition: background 0.3s ease;
}

.experience-item:hover {
  background: var(--card-hover);
}

.experience-date {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience-content h3 {
  margin-bottom: 7px;
  color: var(--white);
  font-size: 1.15rem;
}

.experience-content p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.skill-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 50, 82, 0.3);
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid rgba(185, 50, 82, 0.2);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.skill-card h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 0.95rem;
}

.skill-card p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.contact-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 80px;
  padding: 70px 55px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 20%, rgba(123, 32, 55, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 60%),
    var(--card);
}

.contact-section h2 {
  max-width: 700px;
}

.contact-section p {
  max-width: 650px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

footer {
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 35px 0 45px;
  border-top: 1px solid var(--border);
  color: #686d77;
  font-size: 0.75rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes introName {
  from {
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 0.05em;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -0.055em;
  }
}

@keyframes introSubtext {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introButton {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introPulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  header {
    min-height: 70vh;
    padding-top: 120px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .project.featured {
    grid-column: auto;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  header {
    min-height: 80vh;
    padding: 100px 24px 70px;
  }

  header h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  header p {
    font-size: 0.95rem;
  }

  section {
    width: min(100% - 40px, var(--max-width));
    padding: 70px 0;
  }

  .name-block {
    flex-direction: column;
    gap: 15px;
    font-size: clamp(2.8rem, 13vw, 5rem);
  }

  .name-block img {
    width: 58px;
    height: 58px;
  }

  .subtext {
    max-width: 400px;
    font-size: 0.85rem;
    line-height: 1.7;
  }

  .project {
    padding: 22px;
  }

  .gif-media {
    min-height: 210px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 23px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    margin-bottom: 50px;
    padding: 40px 25px;
  }

  footer {
    width: min(100% - 40px, var(--max-width));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}