/* Splash / Start Page — St. Peter Convent School */
:root {
  --primary: #2e3093;
  --primary-dark: #1e2068;
  --accent: #fbbf04;
  --accent-light: #ffd54f;
  --font-school: 'Playfair Display', Georgia, serif;
  --font-ui: 'Jost', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-ui);
}

.splash-page {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Animated background */
.splash-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.splash-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: splashKenBurns 14s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes splashKenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.18); }
}

.splash-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #383838e0 0%, rgb(0 0 0 / 51%) 38%, rgb(0 0 0 / 58%) 65%, rgb(0 0 0 / 91%) 100%);
  z-index: 1;
}

.splash-bg__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 4, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Floating particles */
.splash-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.splash-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

.splash-particles span:nth-child(1)  { left: 10%; animation-delay: 0s;   width: 4px; height: 4px; }
.splash-particles span:nth-child(2)  { left: 20%; animation-delay: 1s;   width: 6px; height: 6px; }
.splash-particles span:nth-child(3)  { left: 35%; animation-delay: 2s;   width: 3px; height: 3px; }
.splash-particles span:nth-child(4)  { left: 50%; animation-delay: 0.5s; width: 5px; height: 5px; }
.splash-particles span:nth-child(5)  { left: 65%; animation-delay: 3s;   width: 4px; height: 4px; }
.splash-particles span:nth-child(6)  { left: 80%; animation-delay: 1.5s; width: 6px; height: 6px; }
.splash-particles span:nth-child(7)  { left: 90%; animation-delay: 2.5s; width: 3px; height: 3px; }
.splash-particles span:nth-child(8)  { left: 45%; animation-delay: 4s;   width: 5px; height: 5px; }

@keyframes particleFloat {
  0%   { bottom: -10px; opacity: 0; transform: translateX(0); }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { bottom: 110%; opacity: 0; transform: translateX(30px); }
}

/* Content */
.splash-content {
  position: relative;
  z-index: 10;
  align-items: center;
  text-align: center;
  padding: 20px 24px 53px;
  max-width: 700px;
  animation: contentFadeIn 1.2s ease-out;
}

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.splash-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: -16px;
  transform: translateX(-6%);
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateX(-6%) translateY(0); }
  50%      { transform: translateX(-6%) translateY(-8px); }
}

.splash-logo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  opacity: 0.7;
}

.splash-logo {
  width: clamp(110px, 20vw, 170px);
  height: clamp(110px, 20vw, 170px);
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border: 4px solid var(--accent);
  box-shadow: 0 0 40px rgba(251, 191, 4, 0.4), 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  display: block;
}

.splash-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(251, 191, 4, 0.12);
  border: 1px solid rgba(251, 191, 4, 0.55);
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 16px;
  animation: tagGlow 2s ease-in-out infinite;
}

@keyframes tagGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(251, 191, 4, 0.2); }
  50%      { box-shadow: 0 0 25px rgba(251, 191, 4, 0.5); }
}

.splash-school-name {
  font-family: var(--font-school);
  font-size: clamp(1.85rem, 5.5vw, 3.1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.01em;
}

.splash-school-name span {
  color: var(--accent);
}

.splash-affiliation {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 10px;
}

.splash-address {
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 520px;
}

.splash-address i { color: var(--accent); }

.splash-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: clamp(0.78rem, 2vw, 0.9rem);
}

.splash-contact a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.splash-contact a:hover { color: var(--accent); }

.splash-contact a i { color: var(--accent); font-size: 0.9em; }

.splash-contact__phones {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.splash-contact__sep {
  color: rgba(255, 255, 255, 0.5);
}

.splash-motto {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-top: 10px;
}

/* Enter button — bottom center, flashing */
.splash-enter-wrap {
  position: absolute;
  bottom: clamp(30px, 6vh, 60px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  animation: enterFadeIn 1.5s ease-out 0.6s both;
}

@keyframes enterFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.splash-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 25px;
  background: var(--accent);
  color: var(--primary-dark);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(251, 191, 4, 0.45);
  animation: btnFlash 1.8s ease-in-out infinite;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.splash-enter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: btnShine 2.5s ease-in-out infinite;
}

@keyframes btnShine {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

@keyframes btnFlash {
  0%, 100% {
    box-shadow: 0 8px 30px rgba(251, 191, 4, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 50px rgba(251, 191, 4, 0.8), 0 0 30px rgba(251, 191, 4, 0.5);
    transform: scale(1.05);
  }
}

.splash-enter-btn:hover {
  background: var(--accent-light);
  transform: scale(1.08) !important;
  box-shadow: 0 12px 40px rgba(251, 191, 4, 0.7);
}

.splash-enter-btn i {
  font-size: 1.3rem;
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

.splash-enter-hint {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  margin-top: 10px;
  letter-spacing: 1px;
}

/* Decorative corner lines */
.splash-corner {
  position: absolute;
  z-index: 5;
  width: 80px;
  height: 80px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.4;
}

.splash-corner--tl { top: 20px; left: 20px; border-width: 3px 0 0 3px; }
.splash-corner--tr { top: 20px; right: 20px; border-width: 3px 3px 0 0; }
.splash-corner--bl { bottom: 20px; left: 20px; border-width: 0 0 3px 3px; }
.splash-corner--br { bottom: 20px; right: 20px; border-width: 0 3px 3px 0; }

@media (max-width: 575.98px) {
  .splash-logo-wrap { transform: translateX(-4%); margin-bottom: 18px; }

  .splash-corner { width: 40px; height: 40px; }
  .splash-corner--tl, .splash-corner--tr { top: 12px; }
  .splash-corner--bl, .splash-corner--br { bottom: 12px; }
  .splash-corner--tl, .splash-corner--bl { left: 12px; }
  .splash-corner--tr, .splash-corner--br { right: 12px; }
  .splash-enter-btn { padding: 14px 32px; }
}
