/* ========================================
   LANDING PAGE STYLES
   Inspired by elegant gold & cream design
   ======================================== */

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  filter: grayscale(0%) !important;
  -webkit-filter: grayscale(0%) !important;
}

body {
  font-family: "Prompt", sans-serif;
  overflow-x: hidden;
  background: #f4f1ec;
  color: #222344;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: grayscale(0%) !important;
  -webkit-filter: grayscale(0%) !important;
}

body.loaded {
  opacity: 1;
}

/* ========== HEADER BANNER ========== */
.header-banner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.header-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.header-enter-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #daaf60 0%, #e5c072 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 15px;
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(205, 173, 125, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  font-family: "Prompt", sans-serif;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ========== ROYAL BIOGRAPHY SECTION ========== */
.royal-biography-section {
  background: #ffffff;
  padding: 5rem 2rem;
}

.royal-container {
  max-width: 1200px;
  margin: 0 auto;
}

.royal-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: start;
}

.royal-text {
  padding-right: 2rem;
}

.royal-title {
  font-family: "Srisakdi", serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #2a2725;
  line-height: 1.5;
  margin-bottom: 2rem;
  text-align: left;
  border-left: 5px solid #cdad7d;
  padding-left: 1.5rem;
}

.royal-description {
  text-align: justify;
  color: #222344;
  line-height: 1.9;
}

.royal-description p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-indent: 2rem;
}

.royal-description p:first-child {
  margin-top: 0;
}

.royal-description p:last-child {
  margin-bottom: 0;
}

/* Royal Image */
.royal-image {
  position: sticky;
  top: 2rem;
}

.royal-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(205, 173, 125, 0.3);
}

.royal-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.royal-image-border {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 3px solid rgba(205, 173, 125, 0.5);
  border-radius: 5px;
  pointer-events: none;
}

/* ========== ROYAL BIOGRAPHY SECTION 2 ========== */
.royal-biography-section-2 {
  background: linear-gradient(135deg, #f4f1ec 0%, #e8e4dc 100%);
  padding: 5rem 2rem;
}

.royal-container-2 {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 3rem;
  border: 5px solid #cdad7d;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
}

/* Royal Image Center */
.royal-image-center {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.royal-image-wrapper-center {
  position: relative;
  width: 100%;
  max-width: 1000px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.royal-image-wrapper-center img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.royal-image-wrapper-center .royal-image-border {
  display: none;
}

/* Royal Text Full Width */
.royal-text-full {
  max-width: 1000px;
  margin: 0 auto;
}

.royal-text-full .royal-description {
  text-align: justify;
  color: #222344;
  line-height: 1.9;
  background: rgba(255, 255, 255, 0.7);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.royal-text-full .royal-description p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-indent: 2rem;
}

.royal-text-full .royal-description p:first-child {
  margin-top: 0;
}

.royal-text-full .royal-description p:last-child {
  margin-bottom: 0;
}

/* ========== ROYAL WORKS SECTION ========== */
.royal-works-section {
  background: #ffffff;
  padding: 5rem 2rem;
}

.royal-works-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Section Header */
.royal-works-header {
  margin-bottom: 3rem;
}

.royal-works-main-title {
  font-family: "Srisakdi", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #2a2725;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.divider-line {
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #cdad7d, transparent);
  margin: 2rem auto;
}

.royal-works-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #222344;
  line-height: 1.8;
  margin: 2rem 0;
}

.royal-works-title {
  font-family: "Srisakdi", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #cdad7d;
  margin: 2rem 0;
}

/* Poem Section */
.royal-poem {
  margin: 2rem auto;
  max-width: 800px;
}

.poem-line {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: #2a2725;
  line-height: 2;
  margin: 0.5rem 0;
}

/* Content */
.royal-works-content {
  max-width: 1000px;
  margin: 3rem auto;
  text-align: justify;
}

.royal-works-content p {
  font-size: 1rem;
  line-height: 1.9;
  color: #222344;
  margin-bottom: 1.5rem;
  text-indent: 2rem;
}

.royal-works-content p:last-child {
  margin-bottom: 0;
}

/* Publish Date */
.publish-date {
  text-align: right;
  margin: 3rem 0;
  padding-right: 2rem;
}

.publish-date p {
  font-size: 0.95rem;
  color: #737373;
  font-style: italic;
}

/* Royal Images Gallery */
.royal-images-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 4rem 0 2rem;
}

.gallery-image {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(205, 173, 125, 0.3);
}

.gallery-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ========== ROYAL WORKS SECTION 2 - THAI CULTURE ========== */
.royal-works-section-2 {
  background: linear-gradient(135deg, #f4f1ec 0%, #e8e4dc 100%);
  padding: 5rem 2rem;
}

/* Single Royal Image */
.royal-single-image {
  max-width: 1200px;
  margin: 3rem auto;
  text-align: center;
}

.royal-single-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 15px 50px rgba(205, 173, 125, 0.4);
}

/* Thai Costume List */
.thai-costume-list {
  max-width: 600px;
  margin: 3rem auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.thai-costume-list p {
  font-size: 1.125rem;
  line-height: 2;
  color: #2a2725;
  margin: 0.5rem 0;
}

.thai-costume-list p:first-child {
  font-weight: 600;
  font-size: 1.25rem;
  color: #cdad7d;
  margin-bottom: 1rem;
}

/* Royal Image with Credit */
.royal-image-with-credit {
  position: relative;
  max-width: 1200px;
  margin: 4rem auto 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(205, 173, 125, 0.4);
}

.royal-image-with-credit img {
  width: 100%;
  height: auto;
  display: block;
}

.image-credit {
  position: absolute;
  bottom: 15px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  z-index: 5;
}

.image-credit p {
  font-size: 0.875rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.5;
}

.image-credit a {
  color: #cdad7d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.image-credit a:hover {
  color: #daaf60;
  text-decoration: underline;
}

/* ========== HERO SECTION ========== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #f4f1ec 0%, #e8e4dc 50%, #f4f1ec 100%);
  overflow: hidden;
}

/* Background Pattern */
.bg-pattern {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(205, 173, 125, 0.03) 35px,
      rgba(205, 173, 125, 0.03) 70px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 35px,
      rgba(218, 175, 96, 0.03) 35px,
      rgba(218, 175, 96, 0.03) 70px
    );
  animation: patternMove 60s linear infinite;
  transition: transform 0.3s ease;
}

@keyframes patternMove {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(50px, 50px) rotate(360deg);
  }
}

/* Content Wrapper */
.content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

/* ========== LOGO & TITLE ========== */
.logo-container {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(205, 173, 125, 0.3));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Heading Container */
.heading-container {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-heading {
  font-family: "Srisakdi", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #2a2725;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(205, 173, 125, 0.2);
  letter-spacing: 2px;
}

.sub-heading {
  font-family: "Prompt", sans-serif;
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  font-weight: 400;
  color: #cdad7d;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ========== DECORATIVE LINE ========== */
.decorative-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 400px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cdad7d, transparent);
}

.diamond {
  color: #daaf60;
  font-size: 1.5rem;
  animation: diamondPulse 2s ease-in-out infinite;
}

@keyframes diamondPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .header-enter-btn {
    bottom: 12px;
    right: 12px;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 968px) {
  .royal-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .royal-text {
    padding-right: 0;
  }

  .royal-image {
    position: relative;
    top: 0;
    max-width: 400px;
    margin: 0 auto;
  }

  .royal-title {
    font-size: 1.75rem;
    text-align: center;
    border-left: none;
    border-top: 5px solid #cdad7d;
    padding-left: 0;
    padding-top: 1rem;
  }
}

@media (max-width: 768px) {
  .header-enter-btn {
    bottom: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .royal-biography-section {
    padding: 3rem 1.5rem;
  }

  .royal-biography-section-2 {
    padding: 3rem 1.5rem;
  }

  .royal-container-2 {
    padding: 2rem 1.5rem;
    border-width: 3px;
  }

  .royal-image-center {
    margin-bottom: 2rem;
  }

  .royal-image-wrapper-center {
    max-width: 350px;
  }

  .royal-text-full .royal-description {
    padding: 2rem 1.5rem;
  }

  .royal-description p {
    font-size: 0.95rem;
    text-indent: 1.5rem;
  }

  .royal-text-full .royal-description p {
    font-size: 0.95rem;
    text-indent: 1.5rem;
  }

  .royal-works-section {
    padding: 3rem 1.5rem;
  }

  .royal-works-section-2 {
    padding: 3rem 1.5rem;
  }

  .royal-works-content p {
    font-size: 0.95rem;
    text-indent: 1.5rem;
  }

  .royal-images-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-image {
    height: 350px;
  }

  .royal-single-image {
    max-width: 100%;
  }

  .thai-costume-list {
    padding: 1.5rem;
  }

  .thai-costume-list p {
    font-size: 1rem;
  }

  .royal-image-with-credit {
    margin: 3rem auto 1.5rem;
  }

  .image-credit {
    bottom: 10px;
    right: 10px;
    padding: 0.4rem 0.8rem;
  }

  .image-credit p {
    font-size: 0.75rem;
  }

  .publish-date {
    text-align: center;
    padding-right: 0;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .logo {
    width: 90px;
    height: 90px;
  }

  .main-heading {
    font-size: 2rem;
  }

  .sub-heading {
    font-size: 0.875rem;
  }

  .btn-enter {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
  }

  .info-card {
    padding: 2rem 1.5rem;
  }

  .social-links {
    gap: 1rem;
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .header-enter-btn {
    bottom: 8px;
    right: 8px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 20px;
  }

  .decorative-line {
    max-width: 280px;
  }

  .tagline {
    font-size: 1rem;
  }

  .tagline-sub {
    font-size: 0.875rem;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.btn-enter:focus,
.social-icon:focus {
  outline: 3px solid #cdad7d;
  outline-offset: 4px;
}
