@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Sacramento&display=swap');

:root {
  --primary-color: #8da1e2;
  /* light blue/purple */
  --secondary-color: #b7a6d8;
  /* light purple */
  --accent-color: #5ed6e0;
  /* light bright blue */
  --text-color: #2c293b;
  --bg-color: #f7f9fc;
  --card-bg: rgba(255, 255, 255, 0.7);
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: #1a1a1a;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo {
  font-family: 'Sacramento', cursive;
  font-size: 3.8rem;
  font-weight: 800;
  color: #1a1a1a;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  transform: rotate(-3deg);
  line-height: 1;
  /* Keep it tight */
}

.logo::after {
  content: "♥";
  color: #d90429;
  -webkit-text-stroke: 2.5px #1a1a1a;
  /* Thicker black pen border for the heart */
  font-family: sans-serif;
  font-size: 2.4rem;
  margin-left: -5px;
  /* Pull it closer for a smooth connection */
  position: relative;
  top: 2px;
  transform: rotate(10deg);
  /* Give the heart its own distinct slant */
  line-height: 1;
}

.tagline {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  transform: rotate(-2deg);
  margin-top: -6px;
  margin-left: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1rem 1rem;
  background: linear-gradient(to bottom right, #fdfbfb, #ebedee);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
  color: transparent;
  background: var(--gradient);
  background-clip: text;
  /* Add standard background-clip */
  -webkit-background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Gallery / Posters (Diamond Layout) */
.posters-section {
  padding: 1rem 5% 4rem;
  /* Reduced top padding */
  max-width: 1400px;
  margin: 0 auto;
}

.posters-diamond {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  /* Reduced top margin to pull up diamond closer to title */
}

.d-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

/* Dynamic Vertical Offsets for rows to interlock them slightly */
.d-row:nth-child(even) {
  margin-top: -1.5rem;
}

.d-row:nth-child(odd) {
  margin-top: 1rem;
}

.poster-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0.4s ease;
  background: #fdfaf6;
  /* Warm off-white matboard */
  box-sizing: border-box;
  flex-shrink: 0;
  z-index: 1;
}

/* Sizing Modifiers (Width-Based) */
.size-sm {
  width: 160px;
  padding: 1rem;
}

.size-med {
  width: 240px;
  padding: 1.5rem;
}

.size-lg {
  width: 320px;
  padding: 2rem;
}

.size-xl {
  width: 400px;
  padding: 2.5rem;
}

.poster-card img {
  width: 100%;
  height: auto;
  /* Natural aspect ratio, NO CLIPPING */
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  /* Simulate art paper depth */
}

/* Realistic Frames */
.frame-black {
  border: 14px solid #111;
  border-top-color: #222;
  border-left-color: #1a1a1a;
  border-bottom-color: #050505;
  border-right-color: #0d0d0d;
  border-radius: 2px;
  box-shadow: 0 25px 45px -10px rgba(0, 0, 0, 0.4), inset 0 6px 15px rgba(0, 0, 0, 0.6);
}

.frame-white {
  border: 16px solid #fcfcfc;
  border-top-color: #fff;
  border-left-color: #f8f8f8;
  border-bottom-color: #e6e6e6;
  border-right-color: #ededed;
  border-radius: 2px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), inset 0 4px 10px rgba(0, 0, 0, 0.1);
}

.frame-wood {
  border: 16px solid #6b4226;
  border-top-color: #7d4d2f;
  border-left-color: #6a4025;
  border-bottom-color: #462815;
  border-right-color: #55321b;
  border-radius: 2px;
  box-shadow: 0 25px 45px -10px rgba(0, 0, 0, 0.3), inset 0 6px 15px rgba(0, 0, 0, 0.5);
}

.poster-card:hover {
  transform: translateY(-8px) scale(1.02);
  z-index: 10;
}

.frame-black:hover {
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.5), inset 0 6px 15px rgba(0, 0, 0, 0.6);
}

.frame-white:hover {
  box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.2), inset 0 4px 10px rgba(0, 0, 0, 0.1);
}

.frame-wood:hover {
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.4), inset 0 6px 15px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
  .size-sm {
    width: 100px;
  }

  .size-med {
    width: 150px;
  }

  .size-lg {
    width: 200px;
  }

  .size-xl {
    width: 250px;
  }

  .d-row {
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0 !important;
  }
}

@media (max-width: 600px) {
  .posters-diamond {
    gap: 1rem;
  }

  .d-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .size-sm,
  .size-med,
  .size-lg,
  .size-xl {
    width: 80%;
    max-width: 350px;
  }
}

/* Footer */
footer {
  margin-top: auto;
  text-align: center;
  padding: 2rem;
  background: var(--gradient);
  color: white;
}