/* DeSciCommons Global Styles */

:root {
  --bg-dark: #121212;
  --bg-darker: #0a0a0a;
  --text-light: #f0f0f0;
  --text-muted: #b0b0b0;
  --accent-primary: #4a9eff;
  --accent-secondary: #00ff88;
  --border-color: #333;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
}

/* Navigation */
.navbar-custom {
  background-color: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-custom .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-light);
}

.navbar-custom .nav-link {
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--accent-primary);
}

/* Breadcrumbs */
.breadcrumb-custom {
  background-color: transparent;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.breadcrumb-custom .breadcrumb-item {
  color: var(--text-muted);
}

.breadcrumb-custom .breadcrumb-item.active {
  color: var(--text-light);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
  content: "›";
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-top: 3rem;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
}

/* Links */
a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
  text-decoration: none;
}

/* Cards */
.card-custom {
  background-color: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--accent-primary);
  border: none;
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-2px);
}

.btn-outline-custom {
  background-color: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background-color: var(--accent-primary);
  color: white;
}

/* Footer */
.footer-custom {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 5rem;
}

.footer-custom h5 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-custom ul {
  list-style: none;
  padding: 0;
}

.footer-custom ul li {
  margin-bottom: 0.5rem;
}

.footer-custom a {
  color: var(--text-muted);
}

.footer-custom a:hover {
  color: var(--accent-primary);
}

/* Person Cards */
.person {
  margin-bottom: 3rem;
}

.person img {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Carousel */
.carousel {
  height: 10rem;
  margin-bottom: 3rem;
}

.carousel-item {
  height: 100%;
}

.carousel-inner {
  padding: 4rem 0;
}

/* Logo Animation */
@keyframes svg-fly-in {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

#svg-logo,
#Layer_1 {
  animation: svg-fly-in 1s ease-out forwards;
  max-width: 600px;
  width: 100%;
  height: auto;
}

/* Utility Classes */
.spacer {
  height: 50px;
}

.display-3 {
  font-weight: 700;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.text-muted-custom {
  color: var(--text-muted);
}

.section-padding {
  padding: 4rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .carousel {
    height: 12rem;
  }
}

/* List Styles */
ul.sublist > li { 
  list-style-type: "🤜🏻 "; 
}

/* Timeline for Roadmap */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  padding: 2rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  border-radius: 50%;
  top: 2rem;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 4rem;
    text-align: left;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-dot {
    left: 1.25rem !important;
  }
}