/* =====================================================
   Experience First Design - Custom CSS
   Built on Bulma CSS framework
   ===================================================== */

:root {
  --efdi-brand-color: #ffffff;
  --efdi-brand-dark:  #a0a0a0;
  --efdi-dark-bg:     #333333;
}

/* ----- Base ----- */
body {
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  color: #3a3a3a;
}

p {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--efdi-dark-bg);
}
a:hover, a:focus {
  color: var(--efdi-brand-dark);
}

/* ----- Navbar ----- */
.navbar.is-dark {
  background-color: var(--efdi-dark-bg);
}
.navbar.is-dark .navbar-item,
.navbar.is-dark .navbar-link {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.navbar.is-dark .navbar-item:hover,
.navbar.is-dark .navbar-item.is-active {
  background-color: var(--efdi-brand-dark) !important;
  color: var(--efdi-brand-color) !important;
}
.navbar.is-dark .navbar-burger span {
  background-color: #fff;
}
.navbar.is-dark .navbar-menu {
  background-color: var(--efdi-dark-bg);
}
/* Brand icon color */
.navbar-brand .brand-icon {
  color: var(--efdi-brand-color);
  margin-right: 0.4rem;
}

/* ----- Hero Section ----- */
#hero {
  background-image: url('./img/intro-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
#hero .hero-body {
  position: relative;
  z-index: 1;
}
#hero .title,
#hero .subtitle {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.brand-title {
  color: var(--efdi-brand-color);
  /* text-shadow: 0 4px rgba(161, 62, 26, 0.6); */
}
.hero-divider {
  width: 70px;
  height: 4px;
  background-color: var(--efdi-brand-dark);
  margin: 1.5rem auto;
  border: none;
}

/* ----- Section Headings ----- */
.section-heading {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}
.section-rule {
  width: 70px;
  height: 4px;
  background-color: var(--efdi-brand-color);
  border: none;
  margin: 0.75rem auto 1.5rem auto;
}

/* ----- Buttons ----- */
.button.is-efdi {
  background-color: var(--efdi-brand-color);
  color: #000;
  border: none;
  transition: background-color 0.3s;
}
.button.is-efdi:hover, .button.is-efdi:focus {
  background-color: var(--efdi-brand-dark);
  color: #fff;
}

/* ----- Section backgrounds (IDs match the <section id="..."> in index.html) ----- */
#about {
  background-color: #f6f6f6;
}

#services {
  background: rgba(0, 0, 0, 0.5) url('./img/services-bg.jpg');
  /* background-image: url('./img/services-bg.jpg'); */
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: darken;
}
#services .section-heading {
  color: #f6f6f6;
}
#services h3.service-title {
  color: #f6f6f6;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.75rem;
}
#services p {
  color: rgba(255,255,255,0.8);
}
#services .fa-solid {
  font-size: 2.25rem;
  color: var(--efdi-brand-color);
}

/* Service card */
.service-card {
  padding: 1.5rem 1rem;
}

#games {
  background-color: #e6e6e6;
}

#links {
  background-image: url('./img/testimonials-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
}
#links .section-heading {
  color: #f6f6f6;
}
#links h3 {
  color: #f0f0f0;
  font-weight: 600;
}

#contact {
  background-color: #f6f6f6;
}

/* ----- Research links (as button-style tags) ----- */
.research-links a {
  display: inline-block;
  margin: 0.3rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #777;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.research-links a:hover {
  border-color: var(--efdi-dark-bg);
  background-color: var(--efdi-dark-bg);
  color: #fff;
  text-decoration: none;
}

/* ----- Game thumbnails ----- */
.game-thumb {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 3px solid #ddd;
}
.game-caption {
  color: #777;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ----- Image containers ----- */
.image-placeholder {
  background-color: #f5f5f5;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-placeholder img {
  width: 100%;
  height: auto;
}

/* ----- Video container ----- */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 560px;
  margin: 1.5rem auto;
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ----- Sponsor logos ----- */
.sponsor-img {
  max-width: 160px;
  max-height: 120px;
  width: auto;
  height: auto;
  margin: auto;
  display: block;
  filter: brightness(1);
  transition: filter 0.2s;
}
.sponsor-img:hover {
  filter: brightness(1.15);
}

/* ----- Footer ----- */
footer.footer {
  background-color: var(--efdi-dark-bg);
  color: #777;
  padding: 1.5rem;
}
footer.footer a {
  color: #999;
}
footer.footer a:hover {
  color: var(--efdi-brand-color);
}

/* ----- Fixed Top button ----- */
.go-to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--efdi-brand-dark);
  color: var(--efdi-brand-color);
  border: none;
  z-index: 1000;
  display: none;
}
.go-to-top:hover {
  background-color: var(--efdi-brand-dark);
  color: #fff;
}

/* ----- Lists ----- */
ol, ul {
  margin-left: 1.25rem;
}
ul li {
  list-style-type: disc;
  margin-bottom: 0.4rem;
}
ol li {
  list-style-type: decimal;
  margin-bottom: 0.5rem;
}

/* ----- About section checkmark list ----- */
.about-checklist li {
  list-style: none;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.3rem;
}
.about-checklist li::before {
  content: "✓";
  color: var(--efdi-dark-bg);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* ----- Research & BibTeX pages ----- */
.page-hero {
  background-color: var(--efdi-dark-bg);
  color: #fff;
  padding: 1rem 1.5rem;
}
.page-hero .title {
  color: #fff;
}

.bibtex-block {
  background: #f4f4f4;
  border-left: 4px solid var(--efdi-brand-color);
  padding: 0.75rem 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 1rem;
}

/* ----- Avoid page breaks inside common elements (for print/PDF) ----- */
td, h1, h2, h3, h4, h5, p, ul, ol, li {
  page-break-inside: avoid;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  #hero .title {
    font-size: 2.5rem;
  }
  .video-container {
    max-width: 100%;
  }
}
