/* ====================================================================
   GLOBAL STYLES & VARIABLES
   ==================================================================== */

:root {
  --primary-color: #1a237e;
  --primary-light: #3949ab;
  --text-dark: #2c3e50;
  --text-medium: #555;
  --text-light: #777;
  --border-color: #e0e0e0;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --accent-blue: #1e90ff;
  --accent-green: #157105;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 8px;
  --spacing-sm: 20px;
  --spacing-md: 40px;
  --spacing-lg: 60px;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
}

/* ====================================================================
   LAYOUT CONTAINERS
   ==================================================================== */

.full-width-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
  .full-width-container {
    padding: 0 var(--spacing-sm);
  }
}

/* ====================================================================
   TYPOGRAPHY
   ==================================================================== */

.title.is-3 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: left;
  line-height: 1.3;
}

.subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: var(--spacing-sm);
  text-align: left;
}

.has-text-centered,
.has-text-justified {
  text-align: left !important;
}

/* ====================================================================
   PROJECT OVERVIEW SECTION
   ==================================================================== */

.project-overview {
  background: var(--bg-white);
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.overview-container {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.project-main-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.25;
  color: var(--primary-color);
}

.project-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: var(--text-medium);
}

.project-description {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 30px;
  margin: 25px 0;
  border-left: 4px solid var(--primary-color);
}

.project-description p {
  font-size: 1.1rem;
  line-height: 1.9;
  margin: 0;
  text-align: left;
  color: var(--text-dark);
}

.affiliation-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  margin-top: var(--spacing-sm);
  border: 1px solid var(--border-color);
}

.affiliation-icon {
  font-size: 1.2rem;
}

.affiliation-badge a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.affiliation-badge a:hover {
  text-decoration: underline;
}

/* ====================================================================
   TEASER SECTION
   ==================================================================== */

.teaser {
  background: var(--bg-white);
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--border-color);
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 50px;
  align-items: start;
}

.teaser-text {
  padding-right: var(--spacing-sm);
}

.teaser-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.teaser-description {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-medium);
}

.teaser-video {
  width: 100%;
}

.video-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

@media (max-width: 968px) {
  .teaser-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .teaser-text {
    padding-right: 0;
  }
}

/* ====================================================================
   SECTIONS
   ==================================================================== */

.section {
  padding: var(--spacing-lg) 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
  border-bottom: none;
}

/* ====================================================================
   CAROUSEL & SLIDER STYLES
   ==================================================================== */

.slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 20px;
}

.slider-navigation {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.demo-slider-btn,
.assets-slider-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.demo-slider-btn:hover,
.assets-slider-btn:hover {
  background: var(--primary-light);
  transform: scale(1.08);
}

.dots-container,
.assets-dots {
  display: flex;
  gap: 10px;
}

.dot,
.assets-dot {
  height: 10px;
  width: 10px;
  background-color: var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.assets-dot.active,
.dot:hover,
.assets-dot:hover {
  background-color: var(--primary-color);
  height: 12px;
  width: 12px;
}

.demo-slider-container,
.assets-slider-container {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-top: var(--spacing-sm);
}

.demo-slide,
.assets-slide {
  display: none;
  padding: var(--spacing-sm);
}

.demo-slide.active,
.assets-slide.active {
  display: block;
}

.subtitle-1 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
  padding: 0;
  border-bottom: none;
  flex: 1;
}

.slide-header .subtitle-1 {
  padding-bottom: 0;
  border-bottom: none;
}

.demo-caption {
  font-style: italic;
  color: var(--text-light);
  margin-top: 15px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
}

/* ====================================================================
   ASSETS GRID
   ==================================================================== */

.assets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  width: 100%;
  margin: 0 auto;
}

.asset-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 450px;
  border: 1px solid var(--border-color);
}

.asset-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.asset-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-white);
}

.clickable-image {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.clickable-image:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .assets-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .asset-item {
    height: 240px;
  }
}

/* ====================================================================
   FULLSCREEN IMAGE MODAL
   ==================================================================== */

.fullscreen-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.fullscreen-modal.active {
  display: flex;
}

.fullscreen-content {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.fullscreen-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.fullscreen-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ====================================================================
   CONTRIBUTORS SECTION
   ==================================================================== */

.contributors-section {
  background: var(--bg-light);
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--border-color);
}

.contributors-section .full-width-container {
  text-align: left;
}

.contributors-section .columns {
  margin: 0;
}

.contributors-section .column {
  padding: 0;
}

.contributors-section .title.is-3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: var(--text-medium);
  font-weight: 500;
  text-align: left;
}

.contributors-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 15px;
  justify-content: flex-start;
}

.contributor-card {
  background: var(--bg-white);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.contributor-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.contributor-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-medium);
}

/* ====================================================================
   FOOTER
   ==================================================================== */

.footer {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 50px var(--spacing-lg) 25px;
  border-top: 2px solid var(--border-color);
}

.footer .container {
  max-width: 100%;
  margin: 0;
}

.footer .content {
  text-align: left;
}

.bits-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  margin-bottom: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin-bottom: 15px;
}

.footer-text {
  text-align: left;
}

.footer-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.15rem;
}

.footer-subtitle {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-top: 5px;
}

.footer-copy {
  margin-top: 20px;
  color: var(--text-medium);
  font-size: 0.9rem;
}

/* ====================================================================
   CONTRIBUTION LIST
   ==================================================================== */

.contribution_list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.contribution_list li {
  margin-bottom: 18px;
  padding-left: 30px;
  position: relative;
  line-height: 1.8;
}

.contribution_list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 20px;
  color: var(--primary-color);
  font-weight: bold;
}

.contribution_text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.contribution_text strong {
  color: var(--primary-color);
  font-weight: 600;
}

.highlight {
  color: var(--accent-green);
  font-weight: 600;
}

/* ====================================================================
   RESPONSIVE ADJUSTMENTS
   ==================================================================== */

@media (max-width: 768px) {
  .project-main-title {
    font-size: 2.2rem;
  }

  .project-subtitle {
    font-size: 1.2rem;
  }

  .project-description {
    padding: 20px;
  }

  .project-description p {
    font-size: 1rem;
  }

  .title.is-3 {
    font-size: 1.7rem;
  }

  .subtitle-1 {
    font-size: 1.2rem;
  }

  .slide-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .slider-navigation {
    width: 100%;
    justify-content: center;
  }

  .contributors-grid {
    flex-direction: column;
    gap: 10px;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
  }

  .footer-text {
    text-align: center;
  }
}

/* ====================================================================
   ADDITIONAL LEGACY STYLES (for compatibility)
   ==================================================================== */

.gradient-text {
  background: linear-gradient(to right, #0d47a1, #1976d2, #42a5f5, #90caf9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 100px;
  animation: gradient-wave 20s linear infinite;
  background-size: 400% 100%;
}

@keyframes gradient-wave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.dnerf {
  font-variant: small-caps;
}

.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 0;
}

/* Architecture diagram styles */
.architecture-diagram {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0;
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.mermaid {
  width: 100%;
  max-width: 1200px;
  min-height: 600px;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .architecture-diagram {
    padding: 10px;
  }

  .mermaid {
    min-height: 400px;
  }

  .gradient-text {
    font-size: 70px;
  }
}
