﻿@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

body {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), #ededed 45%),
    radial-gradient(circle at bottom right, rgba(200, 200, 200, 0.35), transparent 55%);
  color: #0f172a;
  font-family: "Montserrat", sans-serif;
  min-height: 100vh;
  margin: 0;
  padding-top: 80px;
}

.background-shapes {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blur-orb {
  position: absolute;
  filter: blur(80px);
  opacity: 0.4;
  border-radius: 999px;
  transform: rotate(var(--rotate, 8deg));
  animation: float 18s ease-in-out infinite;
}

.blur-orb:nth-child(1) {
  width: 420px;
  height: 180px;
  top: 12%;
  left: -10%;
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.4), rgba(244, 114, 182, 0.2));
  --rotate: 12deg;
}

.blur-orb:nth-child(2) {
  width: 360px;
  height: 160px;
  bottom: -10%;
  right: -8%;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.35), rgba(16, 185, 129, 0.25));
  --rotate: -18deg;
  animation-delay: 4s;
}

.blur-orb:nth-child(3) {
  width: 280px;
  height: 140px;
  top: 25%;
  right: 10%;
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.35), rgba(244, 114, 182, 0.25));
  --rotate: 20deg;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(var(--rotate, 8deg));
  }
  50% {
    transform: translateY(-18px) rotate(var(--rotate, 8deg));
  }
}

.page-container {
  position: relative;
  z-index: 1;
  width: min(83%, 1220px);
  margin: 0 auto;
  padding: 40px 0 96px;
}

.projects-shell {
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 40px 40px 48px;
}

.projects-title {
  font-size: clamp(2.75rem, 4vw, 3.4rem);
  margin: 0 0 28px;
  color: rgba(15, 23, 42, 0.92);
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.32);
}

.project-card:hover {
  transform: translateY(-6px);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.36);
}

.project-card__image {
  width: 100%;
  height: 192px;
  object-fit: cover;
  display: block;
}

.project-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: rgba(255, 255, 255, 0.86);
  flex: 1;
}

.project-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.project-card__description {
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  flex: 1;
}

.project-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
}

.project-card__link {
  text-decoration: none;
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .projects-shell {
    padding: 36px 28px 44px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 72px;
  }

  .projects-shell {
    border-radius: 26px;
    padding: 32px 24px 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

