:root {
  --bg: #0a0b10;
  --ink: #f8fafc;
  --muted: #cbd5f5;
  --accent: #f97316;
  --accent-2: #f97316;
  --glass: rgba(15, 23, 42, 0.6);
}

* {
  box-sizing: border-box;
  cursor: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.78));
  backdrop-filter: blur(6px);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 6vw 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #070918;
  backdrop-filter: blur(8px);
  opacity: 0.95;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  transform: translateY(-7px);
}

.logo span {
  color: var(--accent-2);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.05rem;
  transform: translateY(-7px);
}

nav a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 1;
}

.cta-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.3);
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 3rem;
  padding: 2rem 6vw 4rem;
  min-height: 90vh;
}
.intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intro h1 {
  font-family: "Anton", system-ui, -apple-system, sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  margin: 0;
  letter-spacing: 0.03em;
}

.intro h1 span {
  color: var(--accent-2);
}

.intro p {
  font-size: 1.35rem;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-card {
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: rgba(17, 21, 32, 0.7);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.5);
  min-width: 150px;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.ghost-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.3);
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cta-btn,
.ghost-btn,
.socials a {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cta-btn:hover,
.ghost-btn:hover,
.socials a:hover,
.cta-btn:focus-visible,
.ghost-btn:focus-visible,
.socials a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.25);
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
  border-color: rgba(249, 115, 22, 0.7);
  color: #fff;
}

.socials a:hover,
.socials a:focus-visible {
  background: rgba(249, 115, 22, 0.22);
}

.profile-card {
  position: relative;
  padding: 2rem;
  border-radius: 32px;
  background: rgba(17, 21, 32, 0.7);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.profile-card img {
  width: min(260px, 70vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(249, 115, 22, 0.65);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
  background: #0f172a;
}

.profile-card h2 {
  margin: 0;
  font-size: 2rem;
}

.profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.socials {
  display: flex;
  gap: 1rem;
  font-size: 1rem;
}

.socials a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
}

.section-spacer {
  min-height: 90vh;
  padding: 2rem 6vw;
  scroll-margin-top: 80px;
}

#projects,
#achievements,
#contact {
  scroll-margin-top: 53px;
}

.section-spacer.about-spacer {
  min-height: 50vh;
  padding: 0 6vw 2rem;
}

.section-spacer.achievements-spacer {
  min-height: 50vh;
  padding: 2rem 6vw;
}

.section-spacer.contact-spacer {
  min-height: 80vh;
}

footer {
  padding: 2rem 1px 1rem;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
  margin-top: 3px;
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.2s;
}

#custom-cursor svg {
  display: block;
}

.about-section {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  align-items: start;
  max-width: 1180px;
  margin: 8px auto 0;
}

.about-title {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: center;
}

.section-spacer > .about-title {
  margin-top: 15px;
}

.section-spacer.about-spacer > .about-title {
  margin-top: 15px !important;
}

.about-card {
  background: rgba(17, 21, 32, 0.7);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.45);
  width: 100%;
  max-width: none;
  min-height: 100%;
  margin-top: 0;
  transform: none;
}

.about-card.right {
  justify-self: stretch;
  max-width: none;
  min-height: 100%;
  margin-top: 0;
  transform: none;
}

.tool-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.tool-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tool-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

.focus-title {
  text-align: center;
  margin-bottom: 1rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  justify-items: center;
}

.focus-item {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(249, 115, 22, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.focus-item img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.5);
  padding: 6px;
}

.about-card h3 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

.about-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.18);
  color: var(--accent);
  font-size: 0.9rem;
}

.section-heading-wrap {
  text-align: center;
  max-width: 760px;
  margin: 15px auto 1.25rem;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.6rem 0.2rem 1rem;
  scroll-snap-type: x mandatory;
}

.scroll-row::-webkit-scrollbar {
  height: 10px;
}

.scroll-row::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.42);
  border-radius: 999px;
}

.showcase-card {
  flex: 0 0 min(340px, 80vw);
  background: rgba(17, 21, 32, 0.7);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.45);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.showcase-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.showcase-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.showcase-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin-top: auto;
  padding-top: 0.9rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.showcase-tags::-webkit-scrollbar {
  display: none;
}

.showcase-tags span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: var(--ink);
  font-size: 0.88rem;
  white-space: nowrap;
}

.section-fill-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.fill-card {
  background: rgba(17, 21, 32, 0.7);
  border-radius: 18px;
  padding: 1rem;
}

.fill-card h4 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.fill-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pinned-projects {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.pinned-card {
  background: rgba(17, 21, 32, 0.7);
  border-radius: 18px;
  padding: 1.1rem;
  min-height: 310px;
}

.pinned-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgb(29 36 56);
  margin-bottom: 0.85rem;
}

.pinned-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.pinned-card a,
.showcase-card a {
  color: var(--ink);
  text-decoration: none;
}

.pinned-card a:hover,
.showcase-card a:hover {
  text-decoration: underline;
}

.pinned-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 1.05rem;
}

.projects-divider {
  height: 1px;
  margin: 1.6rem 0 1.1rem;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0), rgba(249, 115, 22, 0.65), rgba(249, 115, 22, 0));
}

.scroll-row-title {
  margin: 0.5rem 0 0.3rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.timeline {
  position: relative;
  max-width: 980px;
  margin: 1.25rem auto 0;
  padding: 0 0.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.8), rgba(249, 115, 22, 0.2));
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.1rem;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.65);
  margin: 1rem auto 0;
}

.timeline-card {
  background: rgba(17, 21, 32, 0.7);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.timeline-date {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--accent);
  background: rgba(249, 115, 22, 0.14);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.timeline-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.timeline-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-wrap {
  max-width: 980px;
  margin: 1.25rem auto 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.15fr);
  gap: 2rem;
}

.contact-card,
.contact-form {
  background: rgba(17, 21, 32, 0.7);
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.contact-card h3,
.contact-form h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-points {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.contact-points li {
  color: var(--muted);
}

.contact-points a {
  color: var(--muted);
  text-decoration: none;
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.95rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.65);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .cta-btn {
  border: none;
  margin-top: 15px;
}

.contact-status {
  min-height: 1.35rem;
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-card,
  .about-card.right {
    min-height: 0;
  }

  .timeline {
    --mobile-line-x: 0.9rem;
    padding-left: 0;
    padding-right: 0;
  }

  .timeline::before {
    left: var(--mobile-line-x);
    transform: none;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-left: 2rem;
  }

  .timeline-dot {
    position: absolute;
    left: var(--mobile-line-x);
    transform: translateX(-50%);
    top: 1rem;
    margin: 0;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem 5vw 0.9rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1.1rem;
    transform: none;
    font-size: 0.98rem;
  }

  .logo {
    transform: none;
  }

  main {
    gap: 2rem;
    padding: 1.5rem 5vw 3rem;
    min-height: auto;
  }

  .intro p {
    font-size: 1.1rem;
  }

  .stats {
    gap: 0.85rem;
  }

  .stat-card {
    flex: 1 1 140px;
    min-width: 0;
  }

  .actions {
    width: 100%;
  }

  .cta-btn,
  .ghost-btn {
    width: 100%;
    text-align: center;
  }

  .profile-card {
    order: -1;
    padding: 1.5rem;
  }

  .section-spacer {
    padding: 1.5rem 5vw;
  }

  .section-spacer.about-spacer,
  .section-spacer.achievements-spacer,
  .section-spacer.contact-spacer {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .pinned-projects {
    grid-template-columns: 1fr;
  }

  .pinned-card {
    min-height: 0;
  }

  .showcase-card {
    flex-basis: min(300px, 86vw);
  }

  .contact-card,
  .contact-form,
  .timeline-card,
  .about-card {
    padding: 1rem;
  }
}

@media (max-width: 520px) {
  .intro h1 {
    font-size: clamp(2.35rem, 12vw, 3.3rem);
  }

  .about-title {
    margin-bottom: 1rem;
  }

  .socials {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .socials a {
    width: 100%;
    text-align: center;
  }

  .pinned-card img {
    height: 180px;
  }

  .scroll-row {
    padding-bottom: 0.6rem;
  }
}
