/* ===== Base Styles ===== */
:root {
  --primary-color: #2CD2B1;
  --secondary-color: #37e67a;
  --accent-color: #01abdf;
  --text-color: #333;
  --white: #fff;
  --gradient: linear-gradient(0deg, #8CE96C 0%, #2CD2B1 100%);
  --light-bg: rgb(133, 255, 247);
  --dark-bg: rgba(53, 189, 181, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto Condensed", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: var(--white);
}

h1, h2, h3 {
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  color: var(--primary-color);
}

/* ===== Layout Components ===== */
.wrapper {
  background: var(--white);
  min-height: 100vh;
  position: relative;
}

.background {
  position: fixed;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.content-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: var(--primary-color);
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-img {
  width: 60px;
  height: auto;
  transition: transform 0.3s ease;
}


.logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  color: var(--white);
  font-family: "Russo One", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.nav-item a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.nav-item.active a {
  background: rgba(255, 255, 255, 0.2);
  font-weight: bold;
}

.nav-item.contact a {
  background: var(--secondary-color);
  color: var(--text-color);
  font-weight: bold;
}

.nav-item a:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== Content Styles ===== */
.neuron-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.neuron-info h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.neuron-info h2 {
  margin: 1.5rem 0;
  font-size: 1.7rem;
  color: var(--primary-color);
  padding-bottom: 0.5rem;
}

.neuron-structure, .synapse-info, .microenvironment, .biological-networks {
  margin-bottom: 3rem;
}

.neuron-figure, .synapse-figure {
  margin: 2rem 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}

.neuron-img, .synapse-img {
  width: 50%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  object-fit: contain;
}

.neuron-caption, .synapse-caption {
  flex: 1;
  padding: 1rem;
  background: var(--dark-bg);
  border-radius: 10px;
}

.neuron-caption p, .synapse-caption p {
  margin-bottom: 1rem;
}

.neuron-caption strong, .synapse-caption strong, .microenvironment-caption strong, .network-text-caption strong{
  color: var(--primary-color);
}

.microenvironment-caption, .network-text-caption {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--dark-bg);
  border-radius: 10px;
  list-style-position: inside;
  line-height: 1.7;
}

.microenvironment-caption p, .network-text-caption p {
  line-height: 1.7;
}

.articles-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.8rem;
  background: var(--secondary-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.articles-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.astocytes-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.astocytes-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.network-caption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-color);
  background: var(--dark-bg);
  border-radius: 10px;
  padding: 1rem 2rem;
  text-align: left;
}

.network-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.network-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ===== Footer Styles ===== */
.main-footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 2.5rem 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: translateY(-5px);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-icon {
  height: 50px;
  width: auto;
}

.footer-text-group {
  display: flex;
  flex-direction: column;
}

.footer-text {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--white);
}

.footer-text a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-text a:hover {
  color: var(--light-bg);
  text-decoration: underline;
}


/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .neuron-figure, .synapse-figure {
    flex-direction: column;
  }
  
  .neuron-img, .synapse-img {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .neuron-info {
    padding: 1.5rem;
  }

  .astocytes-images, .network-images {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .logo-link {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .neuron-info {
    padding: 1rem;
  }

  .neuron-info h1 {
    font-size: 1.8rem;
  }
  
  .neuron-info h2 {
    font-size: 1.4rem;
  }

  .glial-list, .principles-list {
    padding-left: 1.5rem;
  }
  
  .footer-logos {
    flex-direction: column;
    gap: 1rem;
  }
}
