/* ==========================================================================
   Father's Day Intro Page Stylesheet - SLRI
   Design Theme: Royal Gold Aesthetic (Elegant Minimalist Style)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  --primary-gold: #d4af37;
  --light-gold: #fff6d6;
  --dark-gold: #4a3805;
  --royal-red: #7e0c0c;
  
  --font-heading: 'Prompt', sans-serif;
  --font-body: 'Sarabun', sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: #ffffff;
  background-color: transparent;
}

/* Background Image Container - Always Visible */
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url('../img/bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Sparkle Particles Canvas Overlay */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Main Layout Wrapper */
.page-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 0 0;
  width: 100%;
}

/* Central Content Container */
.central-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1000px;
  padding: 0 1rem;
  flex-grow: 1;
}

/* Portrait Frame Styling - Vertically Centered */
.portrait-wrapper {
  position: relative;
  margin: auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-frame {
  position: relative;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  box-shadow: 
    0 22px 55px rgba(0, 0, 0, 0.45),
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 45px rgba(212, 175, 55, 0.35);
  border: none;
}

.portrait-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 225, 0.6);
  width: clamp(340px, 58vh, 660px);
  height: clamp(340px, 58vh, 660px);
  background: #000;
}

.king-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Action Buttons Container */
.actions-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.action-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Elegant Royal Buttons Styling */
.btn-group {
  display: flex;
  gap: 1.2rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.6rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  outline: none;
  border: 1.5px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* Thai Entrance Button - Dark Gold Glass */
.btn-enter-th {
  background-color: rgba(28, 22, 10, 0.88);
  color: var(--light-gold);
  border-color: rgba(212, 175, 55, 0.7);
  min-width: 200px;
}

.btn-enter-th:hover {
  background-color: #d4af37;
  color: #140e03;
  border-color: #ffe082;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

/* English Entrance Button - Dark Gold Glass */
.btn-enter-en {
  background-color: rgba(28, 22, 10, 0.88);
  color: var(--light-gold);
  border-color: rgba(212, 175, 55, 0.7);
  min-width: 200px;
}

.btn-enter-en:hover {
  background-color: #d4af37;
  color: #140e03;
  border-color: #ffe082;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

/* Oath / Allegiance Button - Deep Royal Red Glass */
.btn-oath {
  background-color: rgba(115, 12, 12, 0.92);
  color: #ffffff;
  border-color: rgba(255, 215, 0, 0.85);
  width: 100%;
  max-width: 380px;
  padding: 0.65rem 1.8rem;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(90, 0, 0, 0.3);
}

.btn-oath:hover {
  background-color: #920d0d;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 10px 28px rgba(140, 10, 10, 0.55);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
}

/* Footer Section */
.site-footer {
  width: 100%;
  background: rgba(20, 15, 5, 0.88);
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  padding: 1.1rem 1rem;
  margin-top: auto;
  text-align: center;
  position: relative;
  z-index: 3;
  backdrop-filter: blur(8px);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
}

.footer-org {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 500;
  color: var(--light-gold);
}

.footer-ministry {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .page-wrapper {
    padding-top: 0.5rem;
  }
  
  .portrait-inner {
    width: clamp(280px, 82vw, 420px);
    height: clamp(280px, 82vw, 420px);
  }

  .actions-container {
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }
  
  .btn-group {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 0.6rem;
  }

  .btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }

  .btn-enter-th, .btn-enter-en {
    flex: 1 1 auto;
    min-width: 130px;
    max-width: 145px;
  }

  .btn-oath {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    width: 100%;
    max-width: 290px;
  }

  .btn-icon {
    font-size: 0.82rem;
  }
}
