/* ============================
   1. BASE LAYOUT
============================ */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #f4f7f6;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background-color: #2c3e50;
  color: white;
  padding: 12px 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 5000;
}

header h1 {
  margin: 0;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  letter-spacing: 0.3px;
  font-weight: 600;
}

/* ============================
   2. MAIN BANNER
============================ */
main {
  flex: 1;
  padding: 60px 0; /* space for sticky header */
  background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('assets/images/Thanisandra-banner.webp');
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative; /* so absolute children stay inside banner */
}

/* ============================
   3. LEFT LINK GRID BUTTONS
============================ */
.link-grid {
  position: absolute;
  top: 120px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 220px;
  z-index: 1500; /* below header, above banner */
}

.link-grid a {
  display: block;
  width: 220px;
  background: #004274;
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 500;
  text-align: left;
  transition: all 0.3s ease;
}

.link-grid a:hover {
  background: #0074D9;
  transform: translateX(5px);
}

/* Mobile tweak for left buttons */
@media (max-width: 600px) {
  .link-grid {
    left: 10px;
    top: 100px;
    transform: scale(0.9);
  }
}

/* Button entry animations */
@keyframes slideFromLeft {
  0% { opacity: 0; transform: translateX(-100px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromRight {
  0% { opacity: 0; transform: translateX(100px); }
  100% { opacity: 1; transform: translateX(0); }
}

.link-grid a:nth-child(-n+4) { animation: slideFromLeft 1s ease forwards; }
.link-grid a:nth-child(n+5)  { animation: slideFromRight 1s ease forwards; }
.link-grid a:nth-child(1)    { animation-delay: 0.1s; }
.link-grid a:nth-child(2)    { animation-delay: 0.2s; }
.link-grid a:nth-child(3)    { animation-delay: 0.3s; }
.link-grid a:nth-child(4)    { animation-delay: 0.4s; }

/* ============================
   4. RIGHT BANNER BUTTON
============================ */
/* Desktop: inside banner, fixed to banner (like left buttons) */
.banner-btn-container {
  margin-left: auto;
  margin-right: 20px;
  align-self: flex-start;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 30px;
  z-index: 3000;
}

/* desktop-specific positioning, attached to banner */
@media (min-width: 601px) {
  .banner-btn-container {
    position: absolute !important;
    top: 120px;       /* same vertical line as left buttons */
    right: 20px;      /* right side of banner */
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
}

.banner-gradient-btn {
  background: linear-gradient(to right, #8E2DE2, #DA22FF);
  background-size: 300% 300%;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(74, 0, 224, 0.4);
  transition: all 0.3s ease;
  animation: gradientMove 1s ease infinite;
  font-size: 1.1rem;
  white-space: nowrap;
}

.banner-gradient-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(142, 45, 226, 0.6);
  text-decoration: none;
}

/* Mobile: button fixed at bottom center */
@media (max-width: 600px) {
  .banner-btn-container {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 9999 !important;
  }

  .banner-gradient-btn {
    font-size: 1rem;
    padding: 12px 26px;
  }
}

/* Banner flex adjustment for tablets */
@media (max-width: 992px) {
  main {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
  }

  .banner-btn-container {
    margin: 30px auto 0;
    justify-content: center;
    padding-top: 20px;
  }
}

/* Shared gradient animation */
@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================
   5. ABOUT SECTION
============================ */
.about-section {
  position: relative;
  background: linear-gradient(135deg, #f9f9ff 0%, #eef2ff 100%);
  padding: 50px 20px;
  color: #2c3e50;
  text-align: center;
  overflow: hidden;
}

/* Decorative gradient blobs */
.about-section::before,
.about-section::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  z-index: 0;
}

.about-section::before {
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(78,84,200,0.4), transparent 70%);
  animation: floatBlob 10s ease-in-out infinite alternate;
}

.about-section::after {
  bottom: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(142,45,226,0.4), transparent 70%);
  animation: floatBlob 12s ease-in-out infinite alternate-reverse;
}

/* Floating blob animation */
@keyframes floatBlob {
  from { transform: translateY(0px) scale(1); }
  to   { transform: translateY(25px) scale(1.05); }
}

/* About inner container */
.about-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.8s ease;
  opacity: 0;
  transform: translateY(40px);
}

/* this class can be added via JS on scroll */
.about-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Heading */
.about-section h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  background: linear-gradient(to right, #4A00E0, #8E2DE2, #4A00E0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Paragraph */
.about-section p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: justify;
}

/* Bullet list */
.about-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 15px;
}

.about-section li {
  position: relative;
  background: #fff;
  border-left: 4px solid #8E2DE2;
  border-radius: 8px;
  padding: 14px 20px 14px 45px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  color: #2c3e50;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.8s ease;
}

.about-section li::before {
  content: "★";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #8E2DE2;
  transition: transform 0.4s ease;
}

/* Also controlled via JS: add .visible to .about-section */
.about-section.visible li {
  opacity: 1;
  transform: translateX(0);
}

.about-section.visible li::before {
  transform: translateY(-50%) scale(1.3);
}

/* About section responsive */
@media (max-width: 768px) {
  .about-container {
    padding: 25px 20px;
  }
  .about-section h2 {
    font-size: 1.8rem;
  }
  .about-section p {
    font-size: 1rem;
  }
}

/* ============================
   6. INFO SCROLL SECTION & CARDS
============================ */
.info-scroll-section {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-self: center;
  overflow-x: auto;
  padding: 25px 10px 10px;
  margin-top: 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #8E2DE2 #f0f0f0;
}

/* Custom scrollbar */
.info-scroll-section::-webkit-scrollbar {
  height: 8px;
}
.info-scroll-section::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #4A00E0, #8E2DE2);
  border-radius: 10px;
}
.info-scroll-section::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

/* Cards */
.info-card {
  flex: 0 0 calc(25% - 20px);
  background: linear-gradient(145deg, rgba(74,0,224,0.95), rgba(142,45,226,0.95));
  color: #fff;
  border-radius: 18px;
  padding: 28px 22px;
  min-width: 260px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
  background-size: 300% 300%;
  animation: gradientFlow 5s ease infinite alternate;
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: 10px;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-item .label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.info-item .value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

/* Card CTA (not used in HTML currently, but kept for flexibility) */
.info-btn {
  display: inline-block;
  background: #fff;
  color: #4A00E0;
  font-weight: 600;
  text-align: center;
  padding: 10px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.info-btn:hover {
  background: linear-gradient(to right, #4A00E0, #8E2DE2);
  color: #fff;
  box-shadow: 0 4px 15px rgba(142,45,226,0.4);
}

/* Card hover */
.info-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 35px rgba(142,45,226,0.5);
}

/* Card gradient animation */
@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Info cards responsive */
@media (max-width: 992px) {
  .info-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 600px) {
  .info-card {
    flex: 0 0 80%;
    min-width: 120px;
  }
}

/* Blinking text label on cards */
.blink-text {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #AA4A44;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  animation: blinkAnim 0.20s infinite alternate;
}

@keyframes blinkAnim {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0.2; transform: scale(1.04); }
}

/* ============================
   7. MODALS (VIDEO, GALLERY)
============================ */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* visible state */
.modal.active {
  opacity: 1;
  visibility: visible;
}

/* Video container */
.video-container {
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  max-width: 90%;
  width: 700px;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* Gallery container */
.gallery-container {
  position: relative;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  max-width: 90%;
  width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-container img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

/* Close button (for modals & disclaimer) */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2100;
}

/* ============================
   8. DISCLAIMER MODAL
============================ */
.disclaimer-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.disclaimer-modal.active {
  display: flex;
}

/* Main disclaimer box */
.disclaimer-container {
  background: #fff;
  color: #333;
  width: 90%;
  max-width: 600px;
  max-height: 70vh;
  overflow-y: auto;
  position: relative;
  padding: 30px 25px;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.35s ease;
}

.disclaimer-container h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #2c3e50;
  text-align: center;
}

.disclaimer-container p {
  text-align: justify;
  font-size: 13px;
}

/* Close button override for disclaimer (dark text on light bg) */
#closeDisclaimer {
  position: absolute;
  top: 12px;
  right: 15px;
  z-index: 1010;
  background: rgba(0, 0, 0, 0.08);
  color: #000;
  border: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  transition: background 0.25s ease;
}

#closeDisclaimer:hover {
  background: rgba(0, 0, 0, 0.18);
}

/* Disclaimer responsive */
@media (max-width: 480px) {
  .disclaimer-container {
    width: 92%;
    padding: 20px 18px;
    font-size: 0.95rem;
  }
}

/* Slide-up animation for disclaimer box */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   9. FOOTER
============================ */
footer {
  background-color: #34495e;
  color: #bdc3c7;
  padding: 10px 0;
  text-align: center;
  margin-top: auto;
  font-size: 0.85rem;
}
/* ==========================================================
   MOBILE — RIGHT BUTTON BELOW LEFT BUTTONS (MATCH LEFT STYLE)
========================================================== */
@media (max-width: 600px) {

  /* stack vertically */
  main {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* left buttons normal */
  .link-grid {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin-left: 10px !important;
    margin-top: 20px !important;
    transform: none !important;
  }

  /* right button placed last, matches left style */
  .banner-btn-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;

    width: 220px !important; /* EXACT width of left buttons */
    margin: 25px 0 30px 10px !important; /* spacing */
  }

  .banner-gradient-btn {
    display: block !important;
    width: 100% !important;

    /* MATCH LEFT BUTTON STYLE */
    background: #004274 !important;
    color: #fff !important;
    padding: 12px 18px !important;
}

