:root {
  --bg: #f2f4f7;
  --card: #fff;
  --text: #22262d;
  --muted: #667085;
  --accent: #ff8a00;
  --accent-2: #ffbe5c;
  --line: #d8dde5;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, #ffe6c6, transparent 35%), var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, #dce8ff, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

#home,
#about,
#skills,
#projects,
#references,
#contact {
  scroll-margin-top: 118px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 17.6px 0;
  backdrop-filter: blur(8px);
}

.nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #f0cfa8;
  border-radius: 14px;
  padding: 11.2px 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(29, 41, 57, 0.08);
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17.6px;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 16px;
}

.nav-links a {
  text-decoration: none;
  color: #4c5668;
  font-size: 15.2px;
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8.8px;
}

.hire-btn,
.btn {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.hire-btn {
  background: linear-gradient(120deg, #ff8a00 0%, #ffc14d 100%);
  color: #fff;
  padding: 12px 26.4px;
  font-weight: 600;
  font-size: 16.8px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hire-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.35);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28.8px;
  color: var(--text);
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 32px 0 16px;
}

.socials {
  display: flex;
  gap: 11.2px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: #1d2939;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hero-text h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-text h1 span,
.hero-text h2 span {
  color: var(--accent);
}

#typingWord {
  display: inline-block;
  min-width: 14ch;
  white-space: pre;
}

.hero-text h2 {
  font-size: clamp(19.2px, 2.2vw, 25.6px);
  margin-bottom: 12.8px;
}

.hero-text p {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 24px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12.8px;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6.4px;
  padding: 11.52px 17.6px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(110deg, var(--accent), #f97316);
}

.btn.ghost {
  color: var(--text);
  border: 1.5px solid #f4a34f;
  background: #fff;
}

.hero-art {
  position: relative;
  min-height: 430px;
}

.bubble {
  position: absolute;
  padding: 7.2px 11.2px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(16, 24, 40, 0.15);
  animation: float 3s ease-in-out infinite;
}

.hello {
  left: 8%;
  top: 10%;
  color: #fff;
  background: linear-gradient(140deg, #ff4ecd, #ff8a00);
}

.ai {
  right: 5%;
  top: 18%;
  color: #fff;
  background: linear-gradient(140deg, #ff9a3d, #f97316);
  animation-delay: 0.6s;
}

.tool {
left: -2%;
top: 20%;
color: #fff;
background: linear-gradient(140deg, #9f6a90, #ff8a00);
}

.tool-1 {
left: -4%;
top: 30%;
color: #fff;
background: linear-gradient(140deg, #9f6a90, #2333e1);
}

.tool-2 {
left: -4%;
top: 45%;
color: #fff;
background: linear-gradient(140deg, #f1b40b);
}

.tool-5{
left: -4%;
top: 60%;
color: #fff;
background: linear-gradient(140deg, #3b4999);
}

.tool-6{
left: -2%;
top: 75%;
color: #fff;
background: linear-gradient(140deg, #080c23);
}



.tool-3 {
  right: -10%;
  bottom: 48%;
  color: #fff;
  background: linear-gradient(140deg, #6f5ef8, #4f46e5);
  animation-delay: 1s;
}
.tool-4 {
  right: -3%;
  bottom: 60%;
  color: #fff;
  background: linear-gradient(140deg, #6f5ef8, #4f46e5);
  animation-delay: 1s;
}

.avatar-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.profile-image {
  width: min(360px, 92%);
  border-radius: 100%;
  border: 5px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(
      from var(--angle, 0deg),
      #f97316,
      #22c55e,
      #3b82f6,
      #a855f7,
      #f97316
    ) border-box;
  box-shadow: 0 24px 45px rgba(16, 24, 40, 0.2);
  object-fit: cover;
  animation: borderRun 4s linear infinite;
}

.content {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  padding: 17.6px 19.2px;
  margin: 16px auto;
}

.content h3 {
  color: #101828;
  margin-bottom: 8px;
}

.content p {
  color: #667085;
}

.about-board {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 22px;
  padding: 32px;
  margin: 16px auto;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 19.2px;
  align-items: center;
  min-height: 460px;
}

.about-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.about-visual::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(140deg, #ffb347, #ff8a00);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 69% 57%, 79% 92%, 50% 70%, 21% 92%, 31% 57%, 2% 35%, 39% 35%);
  opacity: 0.18;
  z-index: 0;
}

.about-avatar {
  position: relative;
  z-index: 1;
  width: min(300px, 90%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f4a34f;
}

.about-content h3 {
  font-size: 40px;
  margin-bottom: 11.2px;
}

.about-content h3 span {
  color: var(--accent);
}

.about-content p {
  color: #667085;
  line-height: 1.65;
  margin-bottom: 17.6px;
  background: #fff7ed;
  border: 1px solid #fde7cf;
  border-radius: 12px;
  padding: 15.2px 16px;
  font-size: 16.32px;
}

.about-stats {
  display: flex;
  gap: 19.2px;
  margin-bottom: 13.6px;
  flex-wrap: wrap;
}

.about-stats div {
  display: grid;
  gap: 2.4px;
}

.about-stats strong {
  color: #f59e0b;
  font-size: 23.2px;
}

.about-stats span {
  color: #98a2b3;
  font-size: 15.2px;
}

.about-btn {
  display: inline-block;
  text-decoration: none;
  background: #fff;
  color: #f97316;
  border: 1.5px solid #f59e0b;
  border-radius: 999px;
  padding: 6.72px 13.6px;
  font-weight: 600;
  font-size: 13.12px;
}

.projects-board {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 20px;
  padding: 19.2px;
  margin: 16px auto;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.projects-title {
  text-align: center;
  font-size: 23.2px;
  margin-bottom: 4px;
}

.projects-title span {
  color: var(--accent);
}

.projects-subtitle {
  text-align: center;
  color: #98a2b3;
  font-size: 12.8px;
  margin-bottom: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12.8px;
}

.project-card {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 8.8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-image {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 7.2px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.project-card h4 {
  font-size: 13.12px;
  margin-bottom: 3.2px;
}

.project-card p {
  font-size: 10.72px;
  color: #98a2b3;
  line-height: 1.4;
  min-height: 34px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7.2px;
}

.project-meta span {
  font-size: 10.4px;
  color: #98a2b3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-btn {
  text-decoration: none;
  background: #f97316;
  color: #fff;
  font-size: 10.08px;
  font-weight: 600;
  padding: 4.48px 9.6px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: #ffd7b5;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.14);
}

.project-card:hover .project-image {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.project-card:hover .project-btn {
  transform: translateY(-2px);
  background: #ea580c;
  box-shadow: 0 8px 16px rgba(234, 88, 12, 0.28);
}

.projects-actions {
  display: flex;
  justify-content: center;
  margin-top: 14.4px;
}

.projects-more {
  text-decoration: none;
  background: linear-gradient(110deg, var(--accent), #f97316);
  color: #fff;
  font-size: 11.2px;
  font-weight: 600;
  padding: 7.2px 12.8px;
  border-radius: 999px;
}

.references-board {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 20px;
  padding: 32px 16px 19.2px;
  margin: 16px auto;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.references-title {
  color: #101828;
  text-align: center;
  font-size: 35.2px;
  margin-bottom: 5.6px;
}

.references-subtitle {
  color: #98a2b3;
  text-align: center;
  font-size: 15.2px;
  margin-bottom: 22.4px;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14.4px;
}

.reference-card {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  color: #101828;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.06);
}

.reference-avatar-ring {
  position: relative;
  width: 146px;
  height: 146px;
  margin: 0 auto 12.8px;
  border-radius: 50%;
  padding: 3px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.25);
}

.reference-avatar-ring::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(#fb923c, #22c55e, #3b82f6, #a855f7, #fb923c);
  animation: spinRing 2.8s linear infinite;
}

.reference-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.reference-card h4 {
  font-size: 17.28px;
  margin-bottom: 5.12px;
}

.reference-role {
  color: #06b6d4;
  font-weight: 600;
  margin-bottom: 8.8px;
}

.reference-line {
  color: #475467;
  font-size: 15.2px;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6.08px;
}

.contact-board {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e6ebf2;
  border-radius: 24px;
  padding: 27.2px;
  margin: 17.6px auto;
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.1);
}

.contact-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 4.8px;
}

.contact-title span {
  color: var(--accent);
}

.contact-subtitle {
  text-align: center;
  color: #98a2b3;
  font-size: 16.8px;
  margin-bottom: 20px;
}

.contact-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.contact-visual {
  position: relative;
  width: min(420px, 95%);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  border-radius: 30px;
  border: 3px solid #f4a34f;
  overflow: hidden;
  background: #e5e7eb url("images/reachPicture1.png") center / cover no-repeat;
  box-shadow: 0 18px 32px rgba(16, 24, 40, 0.14);
}

.contact-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.contact-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #3b82f6;
  color: #fff;
  border-radius: 12px;
  padding: 5.6px 8.8px;
  font-size: 13.12px;
  display: inline-flex;
  align-items: center;
  gap: 4.8px;
  box-shadow: 0 10px 16px rgba(59, 130, 246, 0.3);
}

.contact-form {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 11.2px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.07);
  width: min(1200px, 100%);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7.2px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 8px;
  padding: 11.52px 12px;
  font-family: inherit;
  font-size: 15.2px;
  color: #475467;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #fb923c;
}

.contact-send {
  border: 0;
  border-radius: 12px;
  background: #f97316;
  color: #fff;
  padding: 12.48px 14.4px;
  font-family: inherit;
  font-size: 16.8px;
  font-weight: 600;
  cursor: pointer;
}

.contact-footer {
  margin-top: 19.2px;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9.6px;
}

.contact-footer p {
  font-size: 14.4px;
  color: #98a2b3;
}

.contact-footer p:last-child {
  text-align: right;
}

.contact-icons {
  display: flex;
  gap: 6.4px;
}

.contact-icons a {
  width: 56px;
  height: 56px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #667085;
  text-decoration: none;
  background: #fff;
}

.contact-social-image {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 19.2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 2000;
}

.confirm-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.confirm-card {
  width: min(430px, 100%);
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.22);
  padding: 22.4px;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s ease;
}

.confirm-modal.show .confirm-card {
  transform: translateY(0) scale(1);
}

.confirm-card h4 {
  font-size: 24px;
  margin-bottom: 6.4px;
  color: #101828;
}

.confirm-card p {
  color: #667085;
  font-size: 15.2px;
  margin-bottom: 16px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9.6px;
}

.confirm-btn {
  border: 0;
  border-radius: 10px;
  padding: 10.4px 14.4px;
  font-size: 14.4px;
  font-weight: 600;
  cursor: pointer;
}

.confirm-btn.ghost {
  background: #f2f4f7;
  color: #344054;
}

.confirm-btn.primary {
  background: #f97316;
  color: #fff;
}

.confirm-btn:hover {
  transform: translateY(-1px);
}

.skills-board {
  background: #ffffff;
  border: 1px solid #e9edf3;
  border-radius: 16px;
  padding: 32px 22.4px;
  margin: 16px auto;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  min-height: 540px;
}

.skills-title {
  text-align: center;
  font-size: 21.6px;
  margin-bottom: 4px;
}

.skills-subtitle {
  text-align: center;
  color: #98a2b3;
  font-size: 12.48px;
  margin-bottom: 24px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skill-card {
  background: #fff;
  border: 1px solid #f1f4f8;
  border-radius: 10px;
  padding: 14.4px;
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.04);
}

.skill-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 7.2px;
}

.skill-name {
  font-weight: 600;
  font-size: 14.4px;
}

.skill-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 12.48px;
  min-width: 0;
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  font-size: 17px;
  background: #fff6ea;
  border: 1px solid #f5dfc6;
  border-radius: 6px;
  color: #f97316;
}

.skill-level {
  flex: 0 0 auto;
  font-size: 10.56px;
  color: #f59e0b;
  font-weight: 600;
}

.skill-meta {
  font-size: 10.08px;
  color: #98a2b3;
  margin-bottom: 6.72px;
}

.skill-track {
  height: 7px;
  background: #e7ebf0;
  border-radius: 999px;
  overflow: hidden;
}

.skill-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--c, #f97316);
  border-radius: 999px;
}

.skill-card.in-view .skill-track span {
  animation: fillSkill 1s ease forwards;
  animation-delay: calc(var(--delay, 0ms) + 120ms);
}

@keyframes fillSkill {
  from {
    width: 0;
  }
  to {
    width: var(--p);
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  background: #fff;
  border: 1px solid #f4c893;
  color: #9a5b14;
  border-radius: 999px;
  padding: 5.6px 11.2px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes borderRun {
  to {
    --angle: 360deg;
  }
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .nav-links {
    position: absolute;
    top: 72px;
    right: 4%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12.8px;
    flex-direction: column;
    min-width: 170px;
    transform: translateX(26px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: transform, opacity;
  }

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

  .menu-toggle {
    display: block;
  }

  .hire-btn {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-art {
    order: 1;
  }

  .hero-text {
    order: 2;
  }

  .socials,
  .cta-buttons {
    justify-content: center;
  }

  .hero-art {
    min-height: 360px;
  }

  .profile-image {
    width: min(310px, 88%);
  }

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

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

  .about-board {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

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

  .contact-main {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-avatar {
    width: min(360px, 88%);
  }

  .contact-badge {
    right: 16px;
  }

  .contact-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-footer p:last-child {
    text-align: center;
  }

  .contact-icons {
    justify-content: center;
  }

}

@media (max-width: 520px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

.social-image {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}
 

.social-telegram {
  width: 44px !important;
  height: 44px !important;
}

.social-telegram .social-image {
  width: 40px;
  height: 40px;
}

.skill-card {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  transition-delay: var(--delay, 0ms);
}

.skill-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: #ffd9bd;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.15);
}

.project-card {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition-delay: var(--delay, 0ms);
}

.project-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #1d2939;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 19.2px;
}

.dark-mode {
  --bg: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: #334155;
}

body.dark-mode {
  background: radial-gradient(circle at 15% 10%, #1e293b, transparent 35%), #0f172a;
}

body.dark-mode .page-bg {
  background: radial-gradient(circle at 85% 15%, #0b1220, transparent 40%);
}

body.dark-mode .nav-card,
body.dark-mode .content,
body.dark-mode .about-board,
body.dark-mode .skills-board,
body.dark-mode .projects-board,
body.dark-mode .contact-board,
body.dark-mode .references-board,
body.dark-mode .project-card,
body.dark-mode .skill-card,
body.dark-mode .reference-card {
  background: #111827;
  border-color: #253042;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

body.dark-mode .nav-links a,
body.dark-mode .content p,
body.dark-mode .skills-subtitle,
body.dark-mode .projects-subtitle,
body.dark-mode .project-card p,
body.dark-mode .project-meta span,
body.dark-mode .skill-meta,
body.dark-mode .about-content p,
body.dark-mode .contact-subtitle,
body.dark-mode .contact-footer p,
body.dark-mode .references-subtitle,
body.dark-mode .reference-line {
  color: #94a3b8;
}

body.dark-mode .brand,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode .skills-title,
body.dark-mode .projects-title,
body.dark-mode .skill-brand,
body.dark-mode .about-content h3,
body.dark-mode .contact-title,
body.dark-mode .references-title,
body.dark-mode .reference-card h4 {
  color: #e2e8f0;
}

body.dark-mode .theme-toggle,
body.dark-mode .btn.ghost {
  background: #0b1220;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-mode .socials a,
body.dark-mode .contact-icons a {
  background: #ffffff;
  border-color: #d0d5dd;
}

body.dark-mode .skill-track {
  background: #243244;
}

body.dark-mode .project-btn {
  background: #fb923c;
}

body.dark-mode .contact-form {
  background: #0f172a;
  border-color: #253042;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #ffffff;
  border-color: #334155;
  color: #475467;
}

body.dark-mode .contact-footer {
  border-top-color: #253042;
}

body.dark-mode .contact-icons a {
  border-color: #d0d5dd;
  color: #cbd5e1;
}

body.dark-mode .contact-visual {
  border-color: #fb923c;
}

body.dark-mode .reference-role {
  color: #22d3ee;
}

body.dark-mode .confirm-card {
  background: #111827;
  border-color: #253042;
}

body.dark-mode .confirm-card h4 {
  color: #e2e8f0;
}

body.dark-mode .confirm-card p {
  color: #94a3b8;
}

body.dark-mode .confirm-btn.ghost {
  background: #1f2937;
  color: #d1d5db;
}

body.dark-mode .reference-avatar-ring {
  box-shadow: 0 10px 24px rgba(251, 146, 60, 0.35);
}

body.dark-mode .about-content p {
  background: #0b1220;
  border-color: #334155;
}

body.dark-mode .about-stats span {
  color: #94a3b8;
}

body.dark-mode .about-btn {
  background: #0b1220;
  border-color: #fb923c;
  color: #fb923c;
}

.contact-success {
  display: none;
  margin-top: 3.2px;
  font-size: 14.4px;
  color: #16a34a;
  text-align: center;
  font-weight: 600;
}

.contact-success.show {
  display: block;
}

