/* styles.css */

/* Root variables */
:root {
  --bs-success: #2ecc71;      /* Bootstrap “success” */
  --main-bg: #121212;
  --section-bg: #1E1E1E;
  --accent-color: #2ecc71;    /* accent green */
  --text-color: #ffffff;      /* all text white for max contrast */
  --heading-color: #ffffff;
  --border-color: #333;
}

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

/* A4 page setup */
@page {
  size: A4;
  margin: 20mm;
}

/* Utility: center content at 1200px max */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Global typography & spacing */
body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--main-bg);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.8;
  font-size: 1.125rem;
}

/* Fixed header/footer */
header,
footer {
  position: fixed;
  width: 100%;
  background: var(--main-bg);
  color: var(--accent-color);
  text-align: center;
  padding: 0.5rem 0;
  border-color: var(--border-color);
}
header { top: 0; border-bottom: 1px solid var(--border-color); }
footer { bottom: 0; border-top: 1px solid var(--border-color); font-size: 0.85rem; }

/* Print tweaks */
@media print {
  footer .page:after { content: counter(page) " / " counter(pages); }
  body, section { box-shadow: none; }
  header, footer { background: var(--main-bg) !important; }
}

/* Logo sizing */
.logo {
  height: 120px;
}

/* Cover page styling */
.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  overflow: hidden;
  background: none;
}

/* Rotating cover backgrounds */
.cover-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}
.cover-bg.active {
  opacity: 1;
}

/* Dark overlay */
/* Dark overlay—stronger tint */
.cover::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  /* went from 0.3 → 0.6 */
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Bring content above backgrounds */
.cover > :not(.cover-bg) {
  position: relative;
  z-index: 2;
}

.cover h1 {
  font-size: 3.5rem;
  margin-bottom: 0.3rem;
}
.cover h2 {
  font-size: 1.8rem;
  font-weight: 400;
}
.down-arrows {
  color: var(--accent-color);
  font-size: 3rem;
  margin-top: 1rem;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

/* Page-break utility */
.page-break {
  page-break-after: always;
}

/* Fade‑in animation for sections */
main section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
main section.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Contents cards section */
#contents .card {
  background: var(--section-bg);
  border: 1px solid var(--accent-color);
  border-radius: 0.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
  overflow: hidden;
}
#contents .card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 24px rgba(46, 204, 113, 0.6);
  background-color: #1a1a1a;
}
#contents .card .card-body i {
  color: var(--accent-color);
  transition: transform 0.4s ease, color 0.4s ease;
}
#contents .card:hover .card-body i {
  transform: rotate(15deg) scale(1.2);
  color: #ffffff;
}
#contents .card .card-title {
  color: var(--text-color);
  font-weight: 700;
  transition: color 0.4s ease;
}
#contents .card:hover .card-title {
  color: var(--accent-color);
}

/* Section styling */
section {
  background: var(--section-bg);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  page-break-inside: avoid;
}
section:nth-of-type(even) {
  background: #232323;
}
section h2 {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 0.25rem;
}
section p,
section li {
  color: var(--text-color);
  margin-bottom: 0.8rem;
}

/* List group refinement */
.list-group-item {
  background: var(--main-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

/* Gallery tweaks */
#gallery h2 {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-color);
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 0.25rem;
}
#gallery .img-fluid {
  border: 2px solid var(--border-color);
  transition: transform .3s;
}
#gallery .img-fluid:hover {
  transform: scale(1.02);
}

/* Links */
a {
  color: var(--accent-color);
  text-decoration: underline;
}
a:hover {
  color: #ffffff;
}


  #galleryCarousel .carousel-inner {
      height: 800px; /* match tallest slide */
      overflow: hidden;
    }
    /* Hide all slides by default */
    #galleryCarousel .carousel-item {
      display: none;
      height: 100%;
      align-items: center;
      justify-content: center;
    }
    /* Show only active slide */
    #galleryCarousel .carousel-item.active {
      display: flex;
    }
    /* Center and contain images */
    #galleryCarousel .carousel-item img {
      max-height: 100%;
      width: auto;
      object-fit: contain;
      margin: auto;
    }
