html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.nav-link,
.footer-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after,
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, rgba(217, 70, 239, 0.95), rgba(34, 211, 238, 0.95));
  transition: transform 0.3s ease;
}

.nav-link:hover,
.footer-link:hover {
  color: #fff;
}

.nav-link:hover::after,
.footer-link:hover::after {
  transform: scaleX(1);
}

.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  backdrop-filter: blur(18px);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.metric-card:hover,
.project-card:hover,
.skill-card:hover,
.testimonial-card:hover,
.showcase-card:hover {
  transform: translateY(-6px);
}

.hero-panel,
.skill-card,
.project-card,
.showcase-card,
.testimonial-card {
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.skill-card,
.project-card,
.showcase-card,
.testimonial-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  padding: 1.6rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
}

.skill-card::before,
.project-card::before,
.testimonial-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 70, 239, 0), rgba(217, 70, 239, 0.7), rgba(34, 211, 238, 0.7), rgba(34, 211, 238, 0));
}

.skill-card:hover,
.project-card:hover,
.showcase-card:hover,
.testimonial-card:hover,
.metric-card:hover {
  border-color: rgba(103, 232, 249, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045));
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.16), rgba(34, 211, 238, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.25rem;
}

.progress-track {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d946ef, #22d3ee);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.showcase-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
}

.showcase-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.2), rgba(34, 211, 238, 0.2));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.showcase-gradient {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, var(--tw-gradient-stops));
  opacity: 1;
}

.contact-field {
  display: grid;
  gap: 0.7rem;
}

.contact-field span {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.95rem 1rem;
  color: #fff;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #64748b;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .showcase-card,
  .skill-card,
  .project-card,
  .testimonial-card {
    border-radius: 1.5rem;
  }
}
