html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 26%),
    radial-gradient(circle at 85% 10%, rgba(99, 102, 241, 0.12), transparent 22%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.08), transparent 20%);
  z-index: -1;
}

.nav-link {
  color: rgb(203 213 225);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav-link:hover,
.footer-link:hover,
.mobile-link:hover {
  color: rgb(103 232 249);
}

.mobile-link {
  padding: 0.9rem 0;
  color: rgb(203 213 225);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-shell {
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: rgb(165 243 252);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.section-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
}

.glass-card,
.stat-card,
.service-card,
.portfolio-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glass-card {
  border-radius: 1.75rem;
  padding: 1.75rem;
}

.stat-card {
  border-radius: 1.5rem;
  padding: 1.4rem;
}

.hero-frame {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  padding: 1.75rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: auto -35% -45% auto;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
}

.service-card:hover,
.portfolio-card:hover,
.glass-card:hover,
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.28);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.2rem;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: rgb(103 232 249);
  font-weight: 700;
}

.portfolio-card {
  overflow: hidden;
  border-radius: 1.8rem;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.portfolio-image {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.portfolio-link {
  display: inline-flex;
  margin-top: 1.25rem;
  color: rgb(103 232 249);
  font-weight: 600;
}

.skill-badge {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgb(226 232 240);
}

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

.progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.75), rgba(59, 130, 246, 0.85));
}

.field-label {
  display: grid;
  gap: 0.7rem;
  color: rgb(226 232 240);
  font-size: 0.95rem;
}

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

.field-input::placeholder {
  color: rgb(148 163 184);
}

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

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1rem;
}

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

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

.scrolled-header {
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.35);
  background: rgba(2, 6, 23, 0.88);
}

@media (max-width: 767px) {
  .section-shell {
    padding: 4rem 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .portfolio-image {
    height: 15rem;
  }

  .contact-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
