* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #05060a;
  color: #e5e7eb;
  font-family: "Manrope", sans-serif;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(74, 222, 128, 0.28);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #090b12;
}

::-webkit-scrollbar-thumb {
  background: #1a4d2e;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2f7a4b;
}

.site-bg {
  background-image:
    radial-gradient(circle at 16% 18%, rgba(22, 163, 74, 0.16) 0%, transparent 35%),
    radial-gradient(circle at 84% 2%, rgba(34, 197, 94, 0.1) 0%, transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(74, 222, 128, 0.1) 0%, transparent 40%),
    linear-gradient(180deg, #05060a 0%, #090b12 100%);
}

.icon-nav-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(12px);
  background: rgba(23, 26, 34, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.nav-icon-btn i {
  font-size: 0.95rem;
}

.profile-shell {
  padding: 1.35rem;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.34);
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4ade80;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
}

.section-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.55rem;
  background: rgba(23, 26, 34, 0.65);
  backdrop-filter: blur(8px);
}

.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(23, 26, 34, 0.56);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(23, 26, 34, 0.75);
  color: #d1d5db;
  font-size: 0.8rem;
  font-weight: 600;
}

.brand-chip i {
  color: #4ade80;
  font-size: 1rem;
}

.info-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(23, 26, 34, 0.6);
  padding: 1.25rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 18px 30px rgba(2, 6, 23, 0.45);
}

.skill-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(23, 26, 34, 0.62);
  text-align: center;
  padding: 1.05rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.55);
}

.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.2s infinite;
}

.project-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(23, 26, 34, 0.7);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 22px 32px rgba(2, 6, 23, 0.5);
}

.tag-pill {
  padding: 0.24rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(22, 163, 74, 0.16);
  color: #86efac;
  font-size: 0.74rem;
  font-weight: 600;
}

.social-icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(23, 26, 34, 0.75);
  color: #cbd5e1;
  transition: all 0.25s ease;
}

.social-icon:hover {
  color: #ffffff;
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(26, 77, 46, 0.45);
  transform: translateY(-2px);
}

.input-dark {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  background: rgba(11, 14, 22, 0.8);
  color: #f3f4f6;
  padding: 0.72rem 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-dark::placeholder {
  color: #6b7280;
}

.input-dark:focus {
  border-color: rgba(74, 222, 128, 0.65);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #d1d5db;
  font-weight: 500;
}

.contact-row i {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  background: rgba(17, 19, 26, 0.82);
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}
/* CUSTOM CURSOR */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 999px;
  opacity: 0;
  transform: translate3d(-120px, -120px, 0);
  will-change: transform, opacity;
  z-index: 9999;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  margin-top: -3.5px;
  background: rgba(74, 222, 128, 0.95);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.5);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  border: 1.5px solid rgba(74, 222, 128, 0.6);
  background: rgba(74, 222, 128, 0.08);
}

.cursor-glow {
  width: 110px;
  height: 110px;
  margin-left: -55px;
  margin-top: -55px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.24) 0%, rgba(74, 222, 128, 0.1) 38%, rgba(74, 222, 128, 0) 70%);
  mix-blend-mode: screen;
  filter: blur(2px);
}

html.custom-cursor-enabled,
html.custom-cursor-enabled body,
html.custom-cursor-enabled a,
html.custom-cursor-enabled button,
html.custom-cursor-enabled [role="button"],
html.custom-cursor-enabled input,
html.custom-cursor-enabled textarea,
html.custom-cursor-enabled select,
html.custom-cursor-enabled label,
html.custom-cursor-enabled summary {
  cursor: none;
}

.magnetic {
  --mx: 0px;
  --my: 0px;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

@media (hover: none), (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }

  .magnetic {
    transform: none !important;
  }

  html,
  body,
  a,
  button,
  [role="button"],
  input,
  textarea,
  select,
  label,
  summary {
    cursor: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .magnetic {
    transition: none;
  }
}

/* BACK TO TOP ANIMATION */
.back-top-btn.magnetic {
  --bt-shift: 14px;
  --bt-scale: 0.96;
  opacity: 0;
  transform: translate3d(var(--mx), calc(var(--my) + var(--bt-shift)), 0) scale(var(--bt-scale));
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease, box-shadow 260ms ease, filter 260ms ease;
  will-change: transform, opacity;
}

.back-top-btn.magnetic.is-visible {
  --bt-shift: 0px;
  --bt-scale: 1;
  opacity: 1;
}

.back-top-btn.magnetic:hover {
  --bt-scale: 1.08;
  box-shadow: 0 14px 30px rgba(26, 77, 46, 0.42), 0 0 0 3px rgba(74, 222, 128, 0.2);
  filter: brightness(1.05);
}

.back-top-btn.magnetic:active {
  --bt-scale: 0.98;
}

.back-top-btn.magnetic.back-top-attention {
  animation: backTopPulse 620ms cubic-bezier(0.2, 0.9, 0.2, 1) 1;
}

@keyframes backTopPulse {
  0% {
    transform: translate3d(var(--mx), calc(var(--my) + 8px), 0) scale(0.92);
  }

  45% {
    transform: translate3d(var(--mx), calc(var(--my) - 3px), 0) scale(1.1);
  }

  100% {
    transform: translate3d(var(--mx), var(--my), 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-top-btn.magnetic {
    transition: none;
  }

  .back-top-btn.magnetic.back-top-attention {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .profile-shell {
    max-width: 420px;
    margin: 0 auto;
  }

  .icon-nav-panel {
    border-radius: 14px;
  }
}

@media (max-width: 640px) {
  .section-panel {
    padding: 1.1rem;
  }

  .social-icon {
    width: 2.45rem;
    height: 2.45rem;
  }
}
