body {
  font-family: 'Alegreya Sans', sans-serif;
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0;
}

.hero-description {
  font-size: 1.05rem;
  margin: 0;
  opacity: 0.8;
}

.dark-mode {
  --bg: #2a2a2a;
  --text: #e9d9c8;
  --card-bg: #3a3a3a;
  --hero-image-bg: #2c2c2c;
}

.light-mode {
  --bg: #fffef9;
  --text: #6f4e37;
  --card-bg: #ffffff;
  --hero-image-bg: #ffffff;
}

body {
  background: var(--bg);
  color: var(--text);
}

header nav a {
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

header nav a:hover {
  background: rgba(79, 111, 168, 0.14);
  transform: translateY(-1px);
}

.dark-mode header nav a:hover {
  background: rgba(243, 168, 202, 0.18);
}

.hero-image {
  background: var(--hero-image-bg);
  display: block;
}

.portfolio-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  margin: 0 0 0.9rem;
  color: #4f6fa8;
  letter-spacing: 0.02em;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.art-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 1.2rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(3px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 4px solid transparent;
}

.portfolio-grid .art-card:nth-child(5n+1) {
  border-top-color: #ec4899;
}

.portfolio-grid .art-card:nth-child(5n+2) {
  border-top-color: #22c55e;
}

.portfolio-grid .art-card:nth-child(5n+3) {
  border-top-color: #eab308;
}

.portfolio-grid .art-card:nth-child(5n+4) {
  border-top-color: #4f6fa8;
}

.portfolio-grid .art-card:nth-child(5n+5) {
  border-top-color: rgb(200, 122, 255);
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.dark-mode .art-card {
  background: rgba(58, 58, 58, 0.85);
  border-color: rgba(233, 217, 200, 0.2);
}

.blob-1 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(244, 163, 187, 0.3);
  filter: blur(60px);
  top: -50px;
  left: -80px;
}

.blob-2 {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(167, 214, 118, 0.25);
  filter: blur(60px);
  bottom: -40px;
  right: -60px;
}

.blob-3 {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(253, 224, 71, 0.25);
  filter: blur(50px);
  top: 40%;
  right: 20%;
}

@media (max-width: 767px) {
  header nav {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  header nav > div:first-child {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  header nav > div:last-child {
    order: 1;
    margin-left: auto;
    position: static !important;
    transform: none !important;
  }

  .hero-title {
    font-size: 2.4rem;
  }

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

  .portfolio-section-title {
    font-size: 1.45rem;
  }
}
