:root {
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.2);
}

* {
  scroll-behavior: smooth;
}

#cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear;
  z-index: 60;
}

#cursor-stroke {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #fff;
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  z-index: 59;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}

#cursor-stroke.enlarged {
  transform: translate(-50%, -50%) scale(2.8);
}

a,
a:hover,
a:active,
a:focus,
button,
button:hover,
button:focus {
  cursor: none !important;
}

body {
  cursor: none;
  background:
    radial-gradient(circle at 10% 20%, #1f2937 0%, #030712 35%),
    radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.15) 0%, transparent 30%),
    linear-gradient(180deg, #030712 0%, #111827 100%);
  min-height: 100vh;
}

.nav-glass {
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(10px);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #fb923c, #f97316);
  z-index: 70;
}

.btn-pill {
  border-radius: 9999px;
  padding: 0.6rem 1.15rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.4);
  background: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
  border-color: rgba(251, 146, 60, 0.8);
  background: rgba(249, 115, 22, 0.08);
}

.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  text-align: center;
  padding: 1rem;
}

.metric-number {
  color: #fdba74;
  font-size: 1.75rem;
  font-weight: 700;
}

.metric-label {
  color: #9ca3af;
  font-size: 0.9rem;
}

.section-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(150deg, rgba(31, 41, 55, 0.65), rgba(17, 24, 39, 0.9));
  backdrop-filter: blur(8px);
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: -25% auto auto -10%;
  width: 220px;
  height: 220px;
  border-radius: 9999px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.interactive-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.interactive-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.skill-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.skill-icon-image {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
}

.timeline-dot {
  position: relative;
}

.timeline-dot-left {
  left: -50%;
}

.timeline-dot-right {
  left: 50%;
}

.timeline-line {
  left: 50%;
  transform: translateX(-50%);
}

.experience-company {
  margin-top: 0.2rem;
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 600;
}

.experience-meta {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.experience-badge {
  border: 1px solid rgba(249, 115, 22, 0.6);
  color: #fdba74;
  background: rgba(249, 115, 22, 0.12);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(249, 115, 22, 0.5);
  background: rgba(17, 24, 39, 0.8);
  color: #fdba74;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 40;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 768px) {
  #cursor-circle,
  #cursor-stroke {
    display: none;
  }

  body,
  a,
  button {
    cursor: auto !important;
  }

  .timeline-line {
    left: 0.625rem;
    transform: none;
  }

  .left-timeline,
  .right-timeline {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .left-timeline .order-1,
  .right-timeline .order-1 {
    width: 100% !important;
    text-align: left !important;
    padding: 0 !important;
    margin-top: 0.5rem;
  }

  .left-timeline .order-3,
  .right-timeline .order-3 {
    display: none;
  }

  .left-timeline .order-2,
  .right-timeline .order-2 {
    width: auto !important;
    justify-content: flex-start !important;
    padding-left: 0 !important;
  }

  .timeline-dot-left,
  .timeline-dot-right {
    left: 0;
  }

  .experience-meta {
    justify-content: flex-start;
  }
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.2), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.96), rgba(17, 24, 39, 0.96));
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-core {
  position: relative;
  width: min(90vw, 26rem);
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid rgba(249, 115, 22, 0.25);
  background: rgba(17, 24, 39, 0.72);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.loader-orbit {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  border: 3px solid rgba(251, 146, 60, 0.18);
  border-top-color: #fb923c;
  border-right-color: #f97316;
  animation: orbit-spin 1.1s linear infinite;
}

.loader-orbit-reverse {
  position: absolute;
  top: 2.5rem;
  left: calc(50% - 2rem);
  border-top-color: rgba(251, 146, 60, 0.35);
  border-right-color: rgba(249, 115, 22, 0.7);
  transform: scale(0.78);
  animation-direction: reverse;
  animation-duration: 1.45s;
}

.loader-title {
  margin: 0;
  color: #ffedd5;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.loader-subtitle {
  margin-top: 0.6rem;
  color: #fdba74;
  font-size: 0.9rem;
}

.loader-dots::after {
  content: '...';
  display: inline-block;
  width: 1.2em;
  animation: loader-dots 1.2s steps(4, end) infinite;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loader-dots {
  0% {
    content: '';
  }
  25% {
    content: '.';
  }
  50% {
    content: '..';
  }
  75%,
  100% {
    content: '...';
  }
}

.data-error {
  max-width: 72rem;
  margin: 0 auto 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
  text-align: center;
  font-size: 0.9rem;
}
