/* --- GLOBAL SETTINGS --- */
body {
  font-family: "Inter", serif;
  background: linear-gradient(to bottom, #ffffff 0%, #f1f5f9 70%, #cbd5e1 100%);
  background-attachment: fixed;
  background-size: cover;
  color: #1e293b;
  opacity: 1;
}

/* After splash (JS add class) */
body.page-hidden {
    opacity: 0;
}

body.page-fade-in {
    animation: pageFadeIn 0.8s ease-out forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #0f172a;
}

/* --- HEADER --- */
header {
  text-align: center;
  padding: 2rem 0;
}

header img {
  height: 80px;
  margin-bottom: 10px;
}

/* --- CARDS --- */
.card {
  border: none;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.card h4 {
  color: #0a58ca;
  font-weight: 700;
}

.card a {
  color: #0a58ca;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  transition: all 0.2s ease;
}

.card a:hover {
  color: #d4af37;
  text-decoration: none;
  padding-left: 5px;
}

/* --- FOOTER BATIK --- */
.footer-batik {
  background-color: #0f172a;
  color: #f8fafc !important;
  position: relative;
  overflow: hidden;
  padding: 3rem 0;
  border-top: 5px solid #d4af37;
}

.footer-batik::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
      linear-gradient(135deg, #d4af37 25%, transparent 25%),
      linear-gradient(225deg, #d4af37 25%, transparent 25%),
      linear-gradient(45deg, #d4af37 25%, transparent 25%),
      linear-gradient(315deg, #d4af37 25%, transparent 25%);
  background-position: 20px 0, 20px 0, 0 0, 0 0;
  background-size: 40px 40px;
  background-repeat: repeat;
}

.footer-batik * { position: relative; z-index: 2; }
.footer-batik h5 { color: #d4af37; font-weight: bold; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-batik a { color: #e2e8f0; text-decoration: none; transition: 0.3s; }
.footer-batik a:hover { color: #d4af37; padding-left: 5px; }

/* ==========================================
   SPLASH SCREEN — FIXED, CENTERED PERFECTLY
   ========================================== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* full screen */
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 25px;
    padding: 0;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

@supports (-webkit-touch-callout: none) {
    #splash-screen {
        height: 100dvh; /* fix for iOS Safari */
    }
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.splash-logo {
    max-width: 160px;
    width: 45vw; /* responsive on small devices */
    height: auto;
    margin: 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(15, 23, 42, 0.2);
    border-top-color: #0f172a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hide splash screen */
.splash-hidden {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .splash-logo {
        max-width: 130px;
        width: 50vw;
    }
}
