:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-card: #f5f1e8;
  --color-gold: #d4af37;
  --color-gold-dark: #b8941f;
  --color-red: #8b0000;
  --color-red-light: #a52a2a;
  --color-burgundy: #6b1f1f;
  --color-white: #ffffff;
  --color-cream: #f5f1e8;
  --color-gray: #8c8c8c;
  --color-black: #0a0a0a;
  --shadow-gold: rgba(212, 175, 55, 0.3);
  --shadow-dark: rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Crimson Text", serif;
  background-color: var(--bg-primary);
  color: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  z-index: -1;
  background-image: linear-gradient(45deg, #fff 25%, transparent 25%),
    linear-gradient(-45deg, #fff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #fff 75%),
    linear-gradient(-45deg, transparent 75%, #fff 75%);
  background-size: 100px 100px;
  background-position: 0 0, 0 50px, 50px -50px, -50px 0px;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.fade-left {
  transform: translateX(-60px);
}
.scroll-reveal.fade-right {
  transform: translateX(60px);
}
.scroll-reveal.zoom {
  transform: scale(0.85);
}
.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.scroll-reveal:nth-child(1) {
  transition-delay: 0.1s;
}
.scroll-reveal:nth-child(2) {
  transition-delay: 0.2s;
}
.scroll-reveal:nth-child(3) {
  transition-delay: 0.3s;
}
.scroll-reveal:nth-child(4) {
  transition-delay: 0.4s;
}

nav {
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.98) 0%,
    rgba(42, 42, 42, 0.95) 100%
  );
  padding: 18px 40px;
  box-shadow: 0 4px 20px var(--shadow-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--color-gold);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Cinzel", serif;
  font-size: 20px;
  color: var(--color-gold);
  font-weight: 700;
  text-shadow: 2px 2px 4px var(--shadow-dark);
  line-height: 1.3;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--color-cream);
  text-decoration: none;
  font-size: 17px;
  transition: all 0.3s ease;
  position: relative;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 40px;
  text-align: center;
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.5) 0%,
    rgba(42, 42, 42, 0.8) 100%
  );
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  width: 12%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--color-red) 0%,
    var(--color-red-light) 100%
  );
  opacity: 0.25;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  left: 0;
  box-shadow: 20px 0 40px rgba(139, 0, 0, 0.5);
}

.hero::after {
  right: 0;
  box-shadow: -20px 0 40px rgba(139, 0, 0, 0.5);
}

.quote-section {
  margin-bottom: 50px;
  font-style: italic;
  color: var(--color-gray);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-family: "Cinzel", serif;
  font-size: 72px;
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 4px 4px 8px var(--shadow-dark), 0 0 30px var(--shadow-gold);
  letter-spacing: 4px;
  position: relative;
  z-index: 10;
}

.arcadia-badge {
  background: var(--color-red);
  color: var(--color-white);
  padding: 12px 36px;
  border-radius: 50px;
  display: inline-block;
  font-family: "Cinzel", serif;
  font-size: 22px;
  margin: 25px 0;
  box-shadow: 0 8px 24px var(--shadow-dark);
  border: 2px solid var(--color-gold);
  position: relative;
  z-index: 10;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--color-gray);
  max-width: 700px;
  margin: 25px auto 50px;
  font-style: italic;
  position: relative;
  z-index: 10;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.dove {
  position: absolute;
  width: 120px;
  height: 120px;
  animation: doveFloat 18s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

.dove-1 {
  top: 8%;
  right: 15%;
  animation-delay: 0s;
}
.dove-2 {
  top: 25%;
  left: 12%;
  animation-delay: 6s;
}
.dove-3 {
  bottom: 30%;
  right: 10%;
  animation-delay: 12s;
}

@keyframes doveFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-40px, -35px);
  }
  50% {
    transform: translate(-15px, -70px);
  }
  75% {
    transform: translate(-55px, -30px);
  }
}

.card {
  position: absolute;
  width: 90px;
  height: auto;
  animation: cardFloat 10s ease-in-out infinite;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
}

.card-1 {
  top: 12%;
  left: 8%;
  animation-delay: 0s;
}
.card-2 {
  top: 18%;
  right: 12%;
  animation-delay: 2.5s;
}
.card-3 {
  bottom: 22%;
  left: 10%;
  animation-delay: 5s;
}
.card-4 {
  bottom: 28%;
  right: 14%;
  animation-delay: 7.5s;
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rotate, 0deg));
  }
  50% {
    transform: translateY(-35px) rotate(calc(var(--rotate, 0deg) + 8deg));
  }
}

.menu-cards {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 45px;
  position: relative;
  z-index: 10;
}

.menu-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #e8e4da 100%);
  padding: 28px 40px;
  border-radius: 12px;
  border: 3px solid var(--color-gold);
  text-decoration: none;
  color: var(--color-black);
  font-size: 17px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 24px var(--shadow-dark);
  position: relative;
  font-family: "Cinzel", serif;
  font-weight: 600;
}

.menu-card::before {
  content: attr(data-suit);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 38px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.menu-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 16px 40px var(--shadow-gold);
  border-color: var(--color-gold-dark);
  background: linear-gradient(135deg, #fff 0%, var(--bg-card) 100%);
}

.downloads {
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  padding: 100px 40px;
  border-top: 3px solid var(--color-gold);
  border-bottom: 3px solid var(--color-gold);
  position: relative;
}

.section-title {
  font-family: "Cinzel", serif;
  font-size: 56px;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 18px;
  font-weight: 700;
  text-shadow: 4px 4px 8px var(--shadow-dark);
  letter-spacing: 3px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-gray);
  font-size: 19px;
  margin-bottom: 60px;
  font-style: italic;
}

.download-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 45px;
}

.download-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #e8e4da 100%);
  border: 4px solid var(--color-gold);
  border-radius: 16px;
  padding: 45px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 12px 32px var(--shadow-dark);
  position: relative;
  overflow: hidden;
}

.download-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 50px var(--shadow-gold);
  border-color: var(--color-gold-dark);
}

.card-icon {
  font-size: 85px;
  margin-bottom: 28px;
  filter: drop-shadow(4px 4px 12px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
}

.download-card h3 {
  font-family: "Cinzel", serif;
  font-size: 30px;
  color: var(--color-burgundy);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.download-card p {
  color: var(--color-black);
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.btn {
  background: linear-gradient(
    135deg,
    var(--color-red) 0%,
    var(--color-burgundy) 100%
  );
  color: var(--color-white);
  padding: 15px 38px;
  border: 2px solid var(--color-gold);
  border-radius: 8px;
  font-size: 17px;
  font-family: "Cinzel", serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 6px 20px var(--shadow-dark);
  font-weight: 600;
  position: relative;
  z-index: 10;
}

.btn:hover {
  background: linear-gradient(
    135deg,
    var(--color-burgundy) 0%,
    var(--color-red) 100%
  );
  transform: scale(1.08);
  box-shadow: 0 10px 30px var(--shadow-gold);
}

/* ========================================
   BOOK CONCEPT SECTION - NEW!
   ======================================== */
.book-concept {
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  padding: 100px 40px;
  border-top: 3px solid var(--color-gold);
  position: relative;
}

.concept-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: stretch;
}

.concept-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #e8e4da 100%);
  border: 4px solid var(--color-gold);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-dark), 0 0 50px var(--shadow-gold);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.concept-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px var(--shadow-gold);
}

.concept-label {
  background: var(--color-burgundy);
  color: var(--color-white);
  font-family: "Cinzel", serif;
  font-size: 18px;
  font-weight: 700;
  padding: 20px;
  text-align: center;
  letter-spacing: 2px;
}

.concept-image {
  flex: 1;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.concept-image img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.concept-card:hover .concept-image img {
  transform: scale(1.05);
}

.concept-footer {
  background: var(--color-gold);
  color: var(--color-black);
  font-family: "Cinzel", serif;
  font-size: 16px;
  font-weight: 600;
  padding: 18px;
  text-align: center;
}

/* ========================================
   ABOUT SECTION (Arcadia) - IMPROVED!
   ======================================== */
.about-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 40px;
  background: var(--bg-primary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-mockup {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-dark), 0 0 50px var(--shadow-gold);
  border: 4px solid var(--color-gold);
  transition: transform 0.4s ease;
}

.about-mockup:hover {
  transform: scale(1.05);
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-text {
  background: linear-gradient(135deg, var(--bg-card) 0%, #e8e4da 100%);
  padding: 50px;
  border: 4px solid var(--color-gold);
  border-radius: 20px;
  box-shadow: 0 16px 40px var(--shadow-dark);
}

.about-text h3 {
  font-family: "Cinzel", serif;
  color: var(--color-burgundy);
  font-size: 32px;
  margin-bottom: 28px;
  letter-spacing: 1px;
  line-height: 1.3;
}

.about-text p {
  margin-bottom: 22px;
  text-align: justify;
  line-height: 2;
  color: var(--color-black);
  font-size: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text em {
  font-style: italic;
  color: var(--color-burgundy);
  font-weight: 600;
}

/* Yearbook Preview Section */
.yearbook-preview {
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  padding: 100px 40px;
  border-top: 3px solid var(--color-gold);
  position: relative;
  overflow: visible !important;
}

.pdf-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.pdf-container {
  border: 3px solid var(--color-gold);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px var(--shadow-dark), 0 0 40px var(--shadow-gold);
  background: #1a1a1a;
  height: 800px;
  position: relative;
}

#flipbook-container {
  width: 100%;
  height: 800px;
  position: relative;
}

.scroll-spacer {
  height: 100px;
  clear: both;
  background: transparent;
}

/* Messages Section - Vertical Layout */
.messages {
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  padding: 100px 40px;
  border-top: 3px solid var(--color-gold);
}

.messages-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.message-form-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #e8e4da 100%);
  border: 4px solid var(--color-gold);
  border-radius: 16px;
  padding: 40px 35px;
  box-shadow: 0 12px 32px var(--shadow-dark);
  width: 100%;
}

.message-form-card h3 {
  font-family: "Cinzel", serif;
  font-size: 28px;
  color: var(--color-burgundy);
  margin-bottom: 25px;
  text-align: center;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 16px;
  color: var(--color-burgundy);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-gold);
  border-radius: 8px;
  font-family: "Crimson Text", serif;
  font-size: 15px;
  background: white;
  color: var(--color-black);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 10px var(--shadow-gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.message-form-card .btn {
  width: 100%;
  margin-top: 10px;
}

.messages-display {
  background: transparent;
  width: 100%;
}

.messages-title {
  font-family: "Cinzel", serif;
  font-size: 32px;
  color: var(--color-gold);
  margin-bottom: 35px;
  text-align: center;
  text-shadow: 2px 2px 4px var(--shadow-dark);
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-height: 700px;
  overflow-y: auto;
  padding-right: 10px;
}

.messages-list::-webkit-scrollbar {
  width: 8px;
}

.messages-list::-webkit-scrollbar-track {
  background: rgba(212, 175, 55, 0.1);
  border-radius: 10px;
}

.messages-list::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 10px;
}

.message-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #e8e4da 100%);
  border: 3px solid var(--color-gold);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 20px var(--shadow-dark);
  transition: all 0.3s ease;
}

.message-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow-gold);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-gold);
  flex-wrap: wrap;
  gap: 8px;
}

.message-author {
  font-family: "Cinzel", serif;
  font-size: 18px;
  color: var(--color-burgundy);
  font-weight: 600;
}

.message-date {
  font-size: 13px;
  color: var(--color-gray);
  font-style: italic;
}

.message-content {
  color: var(--color-black);
  line-height: 1.8;
  font-size: 15px;
  text-align: justify;
  word-wrap: break-word;
}

/* Footer */
footer {
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  padding: 65px 40px 32px;
  text-align: center;
  border-top: 3px solid var(--color-gold);
}

.footer-title {
  font-family: "Cinzel", serif;
  font-size: 34px;
  color: var(--color-gold);
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px var(--shadow-dark);
}

.footer-subtitle {
  color: var(--color-gray);
  margin-bottom: 28px;
  font-style: italic;
  font-size: 17px;
}

.footer-credits {
  color: var(--color-gray);
  font-size: 14px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--color-gold);
}

.suit-decoration {
  font-size: 26px;
  margin-top: 18px;
  opacity: 0.6;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 56px;
  }
  .section-title {
    font-size: 46px;
  }

  .concept-grid,
  .about-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .dove {
    width: 90px;
    height: 90px;
  }
  .card {
    width: 70px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  .nav-container {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 15px;
  }

  .hero {
    padding: 60px 20px;
    min-height: 80vh;
  }

  .hero::before,
  .hero::after {
    width: 6%;
  }

  .hero-title {
    font-size: 38px;
    letter-spacing: 2px;
  }

  .arcadia-badge {
    font-size: 16px;
    padding: 10px 28px;
  }

  .dove {
    display: none;
  }
  .card {
    width: 50px;
  }

  .menu-cards {
    gap: 18px;
  }

  .menu-card {
    padding: 22px 32px;
    font-size: 15px;
  }

  .downloads {
    padding: 70px 20px;
  }

  .section-title {
    font-size: 36px;
  }
  .section-subtitle {
    font-size: 16px;
  }

  .download-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .download-card {
    padding: 35px 25px;
  }

  .book-concept {
    padding: 70px 20px;
  }

  .concept-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .concept-label {
    font-size: 16px;
    padding: 16px;
  }

  .concept-image {
    padding: 30px;
  }

  .concept-image img {
    max-height: 400px;
  }

  .about-section {
    padding: 70px 20px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-mockup {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-text {
    padding: 35px 25px;
  }

  .about-text h3 {
    font-size: 26px;
    margin-bottom: 22px;
  }

  .about-text p {
    font-size: 15px;
    line-height: 1.8;
  }

  .yearbook-preview {
    padding: 70px 20px;
    overflow: visible !important;
  }

  .pdf-container {
    height: 600px !important;
  }

  #flipbook-container {
    height: 600px !important;
  }

  .messages {
    padding: 70px 20px;
  }

  .messages-wrapper {
    gap: 50px;
  }

  .message-form-card {
    padding: 30px 25px;
  }

  .message-form-card h3 {
    font-size: 24px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
    padding: 10px 14px;
  }

  .messages-title {
    font-size: 26px;
  }

  .messages-list {
    max-height: 500px;
    gap: 20px;
  }

  .message-card {
    padding: 20px;
  }

  .message-header {
    flex-direction: column;
    align-items: flex-start;
  }

  footer {
    padding: 50px 20px 25px;
  }
  .footer-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  .section-title {
    font-size: 30px;
  }

  .concept-image {
    padding: 20px;
  }

  .concept-image img {
    max-height: 350px;
  }

  .about-text {
    padding: 25px 20px;
  }

  .message-form-card {
    padding: 25px 20px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}
