:root {
  --accent: #FF1E2D;
  --accent-secondary: #FF5C70;
  --accent-magenta: #C026D3;
  --accent-soft: rgba(255, 30, 45, 0.22);
  --accent-border: rgba(255, 30, 45, 0.68);
  --card-border: rgba(255, 255, 255, 0.22);
  --text-main: #F5F5F5;
  --text-muted: #B8B8B8;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
  overscroll-behavior: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #180000;
  overscroll-behavior: none;
  color: var(--text-main);
  font-family: Arial, Helvetica, sans-serif;
}

#sequence {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background: #180000;
  contain: strict;
  pointer-events: none;
  z-index: 0;
}

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

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 860px;
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 5;
  width: min(91vw, 1450px);
  height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 700;
}

.brand span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: var(--accent);
  font-size: 0.72rem;
  transform: rotate(45deg);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 50px);
}

.site-header nav a {
  position: relative;
  color: var(--text-main);
  font-size: 0.68rem;
}

.site-header nav a.active {
  color: var(--accent);
}

.site-header nav a.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.hire-button {
  justify-self: end;
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
}

.hero-heading {
  position: absolute;
  z-index: 4;
  top: 15%;
  left: 4.5vw;
  width: 42vw;
  max-width: 610px;
}

.hero-supporting {
  max-width: 540px;
  margin: 21px 0 0;
  color: var(--text-muted);
  font-size: clamp(0.72rem, 0.86vw, 0.88rem);
  line-height: 1.6;
}

.hero-heading h1 {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-button {
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
}

.download-button span {
  font-size: 0.85rem;
}

.about {
  position: absolute;
  z-index: 4;
  top: 12.5%;
  right: 3vw;
  width: min(560px, 39vw);
  padding: 0;
  border: 0;
  background: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
}

.about h2 {
  margin: 0 0 12px;
  font-size: 0.82rem;
}

.about-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.68rem, 0.74vw, 0.77rem);
  line-height: 1.5;
}

.about-copy p + p {
  margin-top: 10px;
}

.about .capability-line {
  margin-top: 16px;
  color: var(--text-main);
  font-size: clamp(0.56rem, 0.66vw, 0.68rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.055em;
}

.socials {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.socials strong {
  margin-right: 4px;
  font-size: 0.74rem;
}

.socials a {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: var(--text-main);
  font-size: 0.56rem;
  font-weight: 700;
}

.showreel {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.68rem;
  font-style: normal;
}

.showreel i {
  width: 49px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.65rem;
  font-style: normal;
}

.builder-word {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 4vh;
  width: 84vw;
  height: 34vh;
  overflow: visible;
  transform: translateX(-50%);
}

.builder-word text {
  fill: url(#builder-gradient);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 390px;
  font-weight: 700;
}

.featured-projects {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: auto;
  padding: clamp(56px, 7vh, 76px) 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-main);
}

.projects-heading {
  width: min(720px, 90vw);
  margin: 0 auto clamp(36px, 5vh, 50px);
  text-align: center;
}

.projects-heading h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.projects-heading p {
  max-width: 650px;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  line-height: 1.55;
}

.projects-grid {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 34px);
}

.project-card {
  min-height: 310px;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(3, 4, 14, 0.26);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.project-card:hover {
  border-color: rgba(255, 92, 112, 0.58);
  background: rgba(12, 4, 12, 0.34);
  transform: translateY(-4px) scale(1.006);
}

.project-topline {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 700;
}

.icon-orange,
.icon-purple,
.icon-cyan { background: var(--accent); }

.project-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.project-links a {
  color: var(--text-muted);
  font-size: 1rem;
}

.project-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 180ms ease, transform 180ms ease;
}

.project-card:hover .project-github,
.project-github:focus-visible {
  color: var(--accent-secondary);
  transform: translateX(2px);
}

.project-card h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.project-card > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.project-tags {
  margin: auto 0 0;
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.project-tags li {
  padding: 6px 12px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.project-tags li:hover {
  border-color: var(--accent);
  background: rgba(255, 30, 45, 0.34);
  color: var(--text-main);
}

.experience {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: auto;
  padding: clamp(56px, 7vh, 76px) 6vw;
  color: var(--text-main);
}

.experience-heading {
  width: min(720px, 90vw);
  margin: 0 auto 44px;
  text-align: center;
}

.experience-heading h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.experience-heading p {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1.1vw, 1rem);
}

.timeline {
  position: relative;
  width: min(920px, 100%);
  min-height: 620px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 16px rgba(255, 92, 112, 0.42);
  transform: translateX(-50%);
}

.timeline-line::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 200%;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--accent-magenta) 50%,
    var(--accent) 100%
  );
  animation: timeline-flow 6s ease-in-out infinite;
  will-change: transform;
}

.experience-card {
  position: absolute;
  width: calc(50% - 64px);
  min-height: 290px;
  padding: 26px 22px 22px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(4, 8, 22, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.experience-card:hover {
  border-color: rgba(255, 92, 112, 0.56);
  box-shadow: 0 12px 30px rgba(255, 30, 45, 0.12);
  transform: translateY(-3px) scale(1.006);
}

.experience-left {
  top: 0;
  left: 0;
}

.experience-right {
  right: 0;
  bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 4px solid rgba(104, 8, 18, 0.9);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 92, 112, 0.58);
  transform: translateY(-50%);
}

.experience-left .timeline-dot {
  right: -70px;
}

.experience-right .timeline-dot {
  left: -70px;
}

.role-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.role-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.role-heading h3 {
  margin: 0 0 3px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}

.role-heading p {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
}

.experience-card time {
  display: block;
  margin-bottom: 15px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.role-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.experience-tags {
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.experience-tags li {
  padding: 6px 11px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-muted);
  font-size: 0.68rem;
}

.tech-stack {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: auto;
  padding: clamp(56px, 7vh, 76px) 6vw;
  color: var(--text-main);
}

.tech-heading {
  width: min(720px, 90vw);
  margin: 0 auto clamp(36px, 5vh, 50px);
  text-align: center;
}

.tech-heading h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.tech-heading p {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1.1vw, 1rem);
}

.tech-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.tech-card {
  min-height: 260px;
  padding: 30px 28px 26px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(7, 3, 10, 0.46);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.tech-card:hover {
  border-color: rgba(255, 92, 112, 0.48);
  background: rgba(11, 3, 10, 0.54);
  box-shadow: 0 15px 34px rgba(255, 30, 45, 0.1);
  transform: translateY(-3px);
}

.tech-card h3 {
  margin: 0 0 30px;
  color: var(--text-main);
  text-align: center;
  font-size: 1.12rem;
  line-height: 1.25;
}

.tech-card-centered {
  grid-column: 1 / -1;
  width: 62%;
  max-width: 780px;
  justify-self: center;
}

.tech-tags {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 15px 14px;
  list-style: none;
}

.tech-tags li {
  min-height: 49px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 92, 112, 0.42);
  border-radius: 10px;
  background: rgba(255, 30, 45, 0.12);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  transition: transform 190ms ease, border-color 190ms ease, background-color 190ms ease, box-shadow 190ms ease;
}

.tech-tags li::before {
  content: attr(data-icon);
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 92, 112, 0.38);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.tech-tags li:hover {
  border-color: var(--accent);
  background: rgba(255, 30, 45, 0.2);
  box-shadow: 0 9px 22px rgba(255, 30, 45, 0.18);
  transform: translateY(-3px);
}

@keyframes timeline-flow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-line::before {
    animation: none;
    will-change: auto;
  }
}

.contact-section {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: auto;
  padding: clamp(56px, 7vh, 76px) 6vw 32px;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

.contact-heading {
  width: min(720px, 90vw);
  margin: 0 auto clamp(34px, 5vh, 48px);
  text-align: center;
}

.contact-heading h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.contact-heading p {
  max-width: 650px;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  line-height: 1.5;
}

.contact-layout {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(42px, 7vw, 80px);
}

.message-form {
  padding: 25px 22px 22px;
  display: grid;
  gap: 20px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(5, 9, 24, 0.27);
}

.message-form h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}

.message-form h3 span {
  color: var(--accent);
  font-size: 1.35rem;
}

.message-form label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 1px solid rgba(169, 181, 205, 0.48);
  border-radius: 7px;
  outline: 0;
  background: rgba(10, 13, 25, 0.16);
  color: var(--text-main);
  font: inherit;
  font-size: 0.74rem;
}

.message-form input {
  height: 40px;
  padding: 0 12px;
}

.message-form textarea {
  min-height: 82px;
  padding: 12px;
  resize: vertical;
}

.message-form input::placeholder,
.message-form textarea::placeholder {
  color: var(--text-muted);
}

.message-form input:focus,
.message-form textarea:focus {
  border-color: var(--accent-secondary);
}

.message-form button {
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: var(--text-main);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.message-form button span {
  margin-right: 10px;
}

.contact-details {
  text-align: center;
}

.assistant-badge {
  width: 138px;
  height: 138px;
  margin: -8px auto 20px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 92, 112, 0.7);
  border-radius: 50%;
  background: rgba(255, 92, 112, 0.16);
  font-size: 3.5rem;
}

.assistant-copy {
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.contact-details > h3 {
  margin: 0 0 22px;
  font-size: 1.05rem;
}

.contact-links {
  display: grid;
  gap: 10px;
  font-style: normal;
  text-align: left;
}

.contact-links a {
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(5, 9, 24, 0.22);
  color: var(--text-main);
  font-size: 0.76rem;
}

.contact-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
}

.email-icon,
.phone-icon,
.github-icon,
.linkedin-icon { background: var(--accent); }

.site-header nav a:hover,
.project-links a:hover,
.contact-links a:hover {
  color: var(--accent-secondary);
}

.hire-button:hover,
.download-button:hover,
.message-form button:hover {
  background: var(--accent-secondary);
}

.site-footer {
  width: min(980px, 100%);
  margin: 58px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: center;
}

@media (max-width: 700px) {
  .hero {
    min-height: 1650px;
  }

  .site-header {
    width: calc(100% - 36px);
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero-heading {
    top: 112px;
    left: 20px;
    width: calc(100% - 40px);
  }

  .hero-heading h1 {
    font-size: clamp(2rem, 9.3vw, 3rem);
  }

  .about {
    top: 430px;
    left: 20px;
    right: 20px;
    bottom: auto;
    width: calc(100% - 40px);
    padding: 0;
  }

  .about-copy p {
    max-width: none;
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .builder-word {
    left: 50%;
    bottom: 4vh;
    width: calc(100% - 24px);
    height: 20vh;
    transform: translateX(-50%);
  }

  .featured-projects {
    min-height: auto;
    padding: 64px 20px;
  }

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

  .project-card {
    min-height: 255px;
  }

  .experience {
    min-height: auto;
    padding: 64px 20px;
  }

  .experience-heading {
    margin-bottom: 48px;
  }

  .timeline {
    min-height: auto;
    padding-left: 34px;
    display: grid;
    gap: 30px;
  }

  .timeline-line {
    left: 7px;
  }

  .experience-card {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
  }

  .experience-left .timeline-dot,
  .experience-right .timeline-dot {
    top: 50%;
    left: -34px;
    right: auto;
  }

  .tech-stack {
    min-height: auto;
    padding: 64px 20px;
  }

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

  .tech-card {
    min-height: 0;
  }

  .tech-card-centered {
    grid-column: auto;
    width: 100%;
  }

  .contact-section {
    min-height: auto;
    padding: 64px 20px 30px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-details {
    margin-top: 20px;
  }

  .site-footer {
    margin-top: 56px;
  }
}

@media (min-width: 701px) and (max-width: 980px) {
  .hero {
    min-height: 1420px;
  }

  .hero-heading {
    top: 120px;
    left: 6vw;
    width: 54vw;
  }

  .about {
    top: 460px;
    left: 6vw;
    right: auto;
    width: 88vw;
  }

  .about-copy p {
    font-size: 0.8rem;
  }

  .featured-projects {
    padding-inline: 4vw;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .experience {
    min-height: auto;
  }

  .timeline {
    width: min(700px, 100%);
    min-height: 760px;
  }

  .experience-card {
    width: calc(50% - 42px);
  }

  .experience-left .timeline-dot {
    right: -48px;
  }

  .experience-right .timeline-dot {
    left: -48px;
  }

  .tech-stack {
    min-height: auto;
  }

  .contact-section {
    min-height: auto;
  }
}
