:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --muted: #333;
  --accent: #111827;
  --radius: 14px;
  --max-width: 1200px;
  --gap: 18px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
}
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  padding-left: 12px;
  padding-right: 12px;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px;
  background: rgba(255,255,255,0.92); /* semi-transparent white */
  backdrop-filter: blur(8px);         /* subtle blur for modern look */
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); /* soft shadow */
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), #ff7b7b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.site-title { font-weight: 600; }

.masonry {
  column-count: 3;
  column-gap: var(--gap);
  width: 100%;
}
.masonry .card {
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--gap);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.masonry .card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s;
}
.masonry .card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transform: translateY(-4px) scale(1.03);
  z-index: 1;
}
.masonry .card:hover img {
  transform: scale(1.05);
}
.meta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(2px);
  padding: 7px 14px;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  text-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: background 0.2s;
  display: inline-block;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masonry .card:hover .meta {
  background: rgba(20, 20, 20, 0.85);
}

footer {
  max-width: var(--max-width);
  margin: 40px auto 80px;
  padding: 12px;
  text-align: center;
  color: var(--muted);
}

.about-section {
  max-width: 700px;
  margin: 40px auto;
  padding: 18px;
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  justify-content: center;
  text-align: center;
}

.about-content > div {
  text-align: center;
}

.about-profile {
  margin-top: 15px;
  width: 275px;
  height: 375px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: border-radius 0.3s, width 0.3s, height 0.3s;
  border-radius: 12px; /* Desktop: rectangular with rounded corners */
}

@media (max-width:1000px) { .masonry { column-count: 2; } }
@media (max-width:520px) { .masonry { column-count: 1; } }
@media (max-width: 700px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-profile {
    width: 140px;
    height: 140px;
    border-radius: 50%; /* Mobile: perfect circle */
    margin-bottom: 18px;
  }
}

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.main-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: #f3f3f3;
  color: #ff7b7b;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--accent);
  cursor: pointer;
  margin-left: 16px;
}

@media (max-width: 700px) {
  .main-nav {
    position: absolute;
    top: 64px;
    right: 12px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    min-width: 160px;
    display: none;
    z-index: 200;
  }
  .main-nav.show {
    display: flex;
  }
  .main-nav a {
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 0;
    border-bottom: 1px solid #eee;
  }
  .main-nav a:last-child {
    border-bottom: none;
  }
  .nav-toggle {
    display: block;
  }
  header {
    position: relative;
  }
}

.design-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff7b7b 0%, var(--accent) 100%);
  border-radius: 2px;
  margin: 12px auto 24px auto;
}