/* -----------------------------------------------------
   GLOBAL
----------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -----------------------------------------------------
   NAV LINK UNDERLINE ANIMATION
----------------------------------------------------- */

.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #1080FF;
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* -----------------------------------------------------
   BUTTONS
----------------------------------------------------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1080FF, #10B981);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.6);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.6);
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.45);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(15,23,42,0.85);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.6);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-outline:hover {
  background: rgba(15,23,42,0.7);
  transform: translateY(-2px);
}

/* ------------------------------
   SMALL BUTTONS FOR PROJECT CARDS
------------------------------ */

.btn-xs-primary,
.btn-xs-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: 0.15s ease;
}

.btn-xs-primary {
  background: #1080FF;
  color: white;
}

.btn-xs-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.btn-xs-ghost {
  background: transparent;
  border: 1px solid rgba(148,163,184,0.5);
  color: #e5e7eb;
}

.btn-xs-ghost:hover {
  background: rgba(15,23,42,0.8);
  transform: translateY(-2px);
}

/* -----------------------------------------------------
   SKILL CHIPS
----------------------------------------------------- */

.chip {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.7);
  color: #e5e7eb;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
}

.stack-chip {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  color: #cbd5f5;
  border: 1px solid rgba(30,64,175,0.6);
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
}

/* -----------------------------------------------------
   PROJECT CARDS
----------------------------------------------------- */

.project-card {
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.15);
  background: radial-gradient(circle at top left, rgba(16,128,255,0.15), rgba(2,6,23,1));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 20px 45px rgba(0,0,0,0.55);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(0,0,0,0.7);
  border-color: rgba(56,189,248,0.8);
}

.project-image-wrapper {
  height: 160px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0%, rgba(56,189,248,0.35), rgba(2,6,23,1));
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
  opacity: 1;
}

/* -----------------------------------------------------
   CONTACT SECTION
----------------------------------------------------- */

#contact {
  backdrop-filter: blur(6px);
}
