* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-strong: #1b222c;
  --line: #30363d;
  --line-soft: #1f2937;
  --text: #ffffff;
  --muted: #9ca3af;
  --soft: #d1d5db;
  --green: #22c55e;
  --lime: #84cc16;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --mouse-x: 50%;
  --mouse-y: 18%;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 74% 18%, rgba(34, 197, 94, 0.12), transparent 28rem),
    radial-gradient(circle at 12% 68%, rgba(132, 204, 22, 0.08), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.08) 34%, transparent 68%);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  content: "";
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.28;
}

body::before {
  top: 14%;
  left: -90px;
  animation: driftOne 16s ease-in-out infinite alternate;
}

body::after {
  right: -120px;
  bottom: 12%;
  background: var(--lime);
  animation: driftTwo 18s ease-in-out infinite alternate;
}

body.nav-open {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--lime));
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.65);
  transform: scaleX(0);
  transform-origin: left;
}

a {
  color: var(--text);
  text-decoration: none;
}

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

.container {
  width: min(90%, 1300px);
  margin: auto;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar.is-scrolled {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(13, 17, 23, 0.98);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.logo {
  display: block;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  color: var(--soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--green);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.8);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--green);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

body.nav-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding-top: 82px;
}

.hero::before {
  position: absolute;
  inset: 110px 5% 40px;
  content: "";
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
  opacity: 0.65;
  animation: gridDrift 18s linear infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 90px);
}

.hero-text h4 {
  margin-bottom: 15px;
  color: var(--green);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  animation: fadeSlideUp 0.8s ease both;
}

.hero-text h1 {
  min-height: 154px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  animation: fadeSlideUp 0.8s ease 0.12s both;
}

.typing-cursor::after {
  content: "|";
  display: inline-block;
  margin-left: 6px;
  color: var(--green);
  animation: blink 0.9s steps(2, start) infinite;
}

.hero-text p {
  max-width: 680px;
  margin-bottom: 35px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  animation: fadeSlideUp 0.8s ease 0.22s both;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 50px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn::before {
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-18deg);
  transition: left 0.5s ease;
}

.btn-primary {
  background: var(--green);
  color: #06100a;
}

.btn-secondary {
  border: 2px solid var(--green);
  color: var(--text);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-3px);
}

.btn:hover::before,
.btn:focus-visible::before {
  left: 130%;
}

.btn,
.socials a,
.contact-box a {
  will-change: transform;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--green);
  color: #06100a;
}

.socials {
  display: flex;
  gap: 15px;
  animation: fadeSlideUp 0.8s ease 0.34s both;
}

.socials a {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid #374151;
  border-radius: 50%;
  color: var(--text);
  font-size: 18px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--green);
  background: var(--green);
  color: #06100a;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeZoomIn 0.9s ease 0.32s both;
}

.photo-box {
  position: relative;
  display: grid;
  width: min(100%, 430px);
  min-height: 470px;
  place-items: end center;
  transition: transform 0.25s ease;
}

.photo-box::before {
  position: absolute;
  inset: 60px 20px auto;
  width: min(82vw, 360px);
  height: min(82vw, 360px);
  content: "";
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  filter: blur(90px);
}

.photo-box::after {
  position: absolute;
  inset: auto 20px 0;
  height: 62%;
  content: "";
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06), rgba(22, 27, 34, 0.74));
}

.photo-box img {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.5));
  animation: float 5s ease-in-out infinite;
}

.photo-box::before {
  animation: glowPulse 4.5s ease-in-out infinite;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--lime);
  color: #050806;
  font-weight: 700;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  width: max-content;
  min-width: 200%;
  animation: scroll 20s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-content,
.marquee:focus-within .marquee-content,
.marquee.is-paused .marquee-content,
.marquee-content.is-paused {
  animation-play-state: paused !important;
}

.marquee-track {
  display: flex;
  flex: 0 0 auto;
  min-width: 100vw;
  justify-content: space-around;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 0 clamp(18px, 2.2vw, 34px);
  flex: 0 0 auto;
  color: #050806;
  font-size: 13px;
  line-height: 1;
}

.marquee-track i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #0d1117;
  font-size: 16px;
  filter: drop-shadow(0 0 8px rgba(13, 17, 23, 0.18));
}

section {
  padding: 100px 0;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
}

.section-title::after {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 4px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s;
}

.section-title.is-visible::after,
.is-visible .section-title::after {
  transform: scaleX(1);
}

.section-sub {
  max-width: 720px;
  margin-bottom: 56px;
  color: var(--muted);
  line-height: 1.8;
}

.about {
  position: relative;
  overflow: hidden;
}

.about::before {
  position: absolute;
  top: 16%;
  right: -160px;
  width: 340px;
  height: 340px;
  content: "";
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.09);
  filter: blur(80px);
  animation: sectionGlow 9s ease-in-out infinite alternate;
}

.about p {
  position: relative;
  max-width: 980px;
  margin-top: 20px;
  color: var(--soft);
  font-size: 17px;
  line-height: 2;
}

.timeline,
.skills-grid,
.project-grid {
  display: grid;
  gap: 26px;
}

.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.skill,
.project {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.card::before,
.skill::before,
.project::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent 18%, rgba(34, 197, 94, 0.12), transparent 42%);
  opacity: 0;
  transform: translateX(-80%);
  transition: opacity 0.25s ease, transform 0.55s ease;
}

.card:hover,
.skill:hover,
.project:hover {
  transform: translateY(-10px);
  border-color: var(--green);
}

.card:hover::before,
.skill:hover::before,
.project:hover::before {
  opacity: 1;
  transform: translateX(80%);
}

.card > *,
.skill > *,
.project > * {
  position: relative;
  z-index: 1;
}

.card {
  min-height: 286px;
  padding: 30px;
  border-radius: 20px;
}

.date {
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 700;
}

.company {
  margin-bottom: 5px;
  font-size: 22px;
  font-weight: 800;
}

.position {
  margin-bottom: 15px;
  color: var(--muted);
}

.card p,
.project p,
.contact-text {
  color: var(--muted);
  line-height: 1.8;
}

.skills-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.skill {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
}

.skill i {
  margin-bottom: 15px;
  color: var(--green);
  font-size: 42px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.skill.is-visible i {
  animation: iconPop 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--reveal-delay, 0ms) + 160ms);
}

.skill:hover i {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 0 14px rgba(34, 197, 94, 0.65));
}

.skill h3 {
  font-size: 17px;
}

.project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project {
  min-height: 210px;
  padding: 26px;
  border-radius: 20px;
}

.project h3 {
  margin-bottom: 15px;
  font-size: 21px;
}

.project.is-visible,
.card.is-visible,
.skill.is-visible {
  animation: borderGlow 1.2s ease both;
}

.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact::before {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(70vw, 620px);
  height: 220px;
  content: "";
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  filter: blur(70px);
  transform: translateX(-50%);
}

.contact .section-title,
.contact-text {
  margin-inline: auto;
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 32px;
}

.contact-box a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
}

.contact-box a:hover,
.contact-box a:focus-visible {
  color: var(--text);
}

.contact-box a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  margin: auto;
  content: "";
  background: var(--green);
  transition: width 0.25s ease;
}

.contact-box a:hover::after,
.contact-box a:focus-visible::after {
  width: 100%;
}

footer {
  padding: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="slide-left"] {
  transform: translateX(-46px) scale(0.985);
}

[data-reveal="slide-right"] {
  transform: translateX(46px) scale(0.985);
}

[data-reveal="zoom"] {
  transform: translateY(20px) scale(0.92);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 84px 84px;
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeZoomIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes iconPop {
  0% {
    transform: translateY(8px) scale(0.72) rotate(-8deg);
    filter: none;
  }

  60% {
    transform: translateY(-6px) scale(1.16) rotate(4deg);
    filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.75));
  }

  100% {
    transform: translateY(0) scale(1) rotate(0);
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.45));
  }
}

@keyframes borderGlow {
  0% {
    box-shadow: var(--shadow);
  }

  45% {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), 0 0 34px rgba(34, 197, 94, 0.2);
  }

  100% {
    box-shadow: var(--shadow);
  }
}

@keyframes sectionGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-80px, 70px, 0) scale(1.18);
  }
}

@keyframes driftOne {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(90px, 80px, 0) scale(1.16);
  }
}

@keyframes driftTwo {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-100px, -70px, 0) scale(0.9);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

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

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

@media (max-width: 1120px) {
  .skills-grid,
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .container {
    width: 92%;
  }

  .nav-content {
    min-height: 74px;
  }

  .menu-toggle {
    position: relative;
    z-index: 1001;
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 74px 0 auto;
    display: grid;
    justify-items: center;
    gap: 20px;
    padding: 30px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 17, 23, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: auto;
    padding: 130px 0 65px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 42px;
    text-align: center;
  }

  .hero-text p {
    margin-inline: auto;
    font-size: 16px;
  }

  .hero-text h1 {
    min-height: 96px;
    font-size: clamp(36px, 10vw, 52px);
  }

  .btn-group,
  .socials {
    justify-content: center;
  }

  .photo-box {
    width: min(100%, 310px);
    min-height: 340px;
  }

  .photo-box::before {
    width: 260px;
    height: 260px;
  }

  section {
    padding: 72px 0;
  }

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

@media (max-width: 620px) {
  .timeline,
  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .marquee {
    font-size: 13px;
  }

  .marquee-track span {
    min-height: 58px;
    padding: 0 20px;
  }

  .card,
  .project {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-content {
    animation: scroll 20s linear infinite !important;
  }
}
