:root {
  --black: #000;
  --white: #fff;
  --gold: #c5a059;
  --gray: #f5f5f7;
  --text-dim: #86868b;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --spring: cubic-bezier(0.43, 1.55, 0.55, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--black);
  color: var(--black);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(150%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05); 
  transition: all 0.4s var(--ease);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
}

.logo, nav a {
  color: var(--black);
  text-shadow: none;
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

nav a {
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

nav.scrolled .logo, nav.scrolled a {
  color: var(--black);
  text-shadow: none;
}

.albums-page {
  margin-top: 0 !important; 
  border-radius: 0;
  box-shadow: none;
  padding-top: 52px; 
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
  will-change: transform;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 2;
  transition: opacity 0.1s linear;
}

.hero-content h1 {
  color: var(--white);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.9;
  margin-bottom: 15px;
}

.tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
}

.spring-item {
  opacity: 0;
  animation: springUp 1.2s var(--spring) forwards;
}

.main-content-card {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.3);
  margin-top: -8vh;
  padding-bottom: 50px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-padding {
  padding: 80px 0;
}

.section-header {
  top: 90px;
  z-index: 20;
  background: transparent;
  padding: 10px 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-header.fade {
  opacity: 0.35;
  transform: translateY(-6px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.main-profile-img {
  width: 100%;
  border-radius: 8px;
}

.interests-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.int-item h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.quote-section {
  background: var(--gray);
  text-align: center;
  border-radius: 16px;
  padding: 60px 40px;
}

.big-quote {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-style: italic;
}

.highlight {
  color: var(--gold);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 24px;
  padding-bottom: 20px;
}

.album-item {
  display: flex;
  flex-direction: column;
}

.album-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.album-card {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.4s var(--ease);
  text-decoration: none;
}

.album-item.featured .album-card {
  aspect-ratio: 16/9;
}

.album-card:hover {
  transform: scale(0.98);
  z-index: 2;
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 1.2s var(--ease);
}

.album-card:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.4s;
}

.album-card:hover .overlay {
  opacity: 1;
}

.overlay span {
  background: white;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.65rem;
  font-weight: 600;
  color: black;
}

.album-caption {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.4;
  text-align: right;
}

.skills-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--gray);
  padding-top: 40px;
}

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-pills span {
  font-size: 0.8rem;
  padding: 8px 18px;
  border: 1px solid #ddd;
  border-radius: 100px;
  transition: 0.3s;
}

.skills-pills span:hover {
  background: var(--black);
  color: var(--white);
}

.brief-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.view-all-link {
    text-decoration: none;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s var(--ease);
}

.view-all-link:hover {
    opacity: 0.7;
}

.guestbook-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 50px;
}

.message-form input, .message-form textarea {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.message-form textarea {
  height: 100px;
  resize: vertical;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message-item {
  padding: 20px;
  background: var(--gray);
  border-radius: 12px;
}

.message-item .meta {
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.message-item .text {
  font-size: 0.95rem;
  color: var(--black);
}

.mail-links {
  display: flex;
  gap: 40px;
}

.mail-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mail-btn {
  text-decoration: none;
  padding: 18px 35px;
  border: 1px solid black;
  color: black;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.email-address {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: monospace;
  opacity: 0.8;
}

.mail-btn:hover { background: black; color: white; }

.mail-btn.school { background: #eeeeee; border: 1px solid transparent; }
.mail-btn.school:hover { background: #cccccc; transform: translateY(-2px); }

footer { padding: 40px 0; }
.footer-line { width: 100%; height: 1px; background: #eee; margin-bottom: 20px; }
.footer-content { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-dim); }
.ins-link { text-decoration: none; color: var(--black); font-weight: 700; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s var(--ease) forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes springUp {
  0% { opacity: 0; transform: translateY(60px) scale(0.9); }
  70% { opacity: 1; transform: translateY(-5px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 800px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brief-grid {
        grid-template-columns: repeat(1, 1fr);
    }
  .album-item.featured {
    grid-column: span 2;
    grid-row: span 1;
  }
  .about-grid, .skills-wrapper, .interests-mini-grid, .mail-links {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .hero { height: 70vh; }
  .container { padding: 0 24px; }
}