/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;700&display=swap');

/* @import url('themes/default_teal.css'); */
/* @import url('themes/blue_peach.css'); */
@import url('../themes/grey_peat.css');


#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 99;
}

#back-to-top.visible {
  opacity: 1;
}

#back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

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

html {
  scroll-behavior: smooth; /* Enables smooth scrolling */
}

body {
  font-family: 'Roboto', Kaiti, sans-serif !important;
  background-color: var(--background-color); 
  color: var(--text-color);
}



header.hero h1 {
  padding: 3rem 0 0 0;
  font-size: 3rem;
}

header.hero p {
  font-size: 1.2rem;
  margin: 10px 0;
}

header.hero nav {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px; 
  justify-content: flex-start; /* Align nav items to the left */
  margin: 0 auto; /* align to the max-width */
  padding: 0 1rem; 
}

header.hero .nav-links {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  display: flex;
  justify-content: flex-start; /* Align links to the left */
  flex-wrap: wrap;
  width: 100%;
}

header.hero .nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 15px; /* Space out links */
  font-weight: bold;
  padding: 10px;
  position: relative;
  padding-bottom: 5px;
  display: inline-block;
}

header.hero .nav-links a:hover {
  text-decoration: none;
}

header.hero .nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

header.hero .nav-links a:hover::after,
header.hero .nav-links a.active::after {
  width: 100%; /* Keep both hover and active underlines fully expanded */
}
/* Responsive Layout (Mobile) */
@media (max-width: 768px) {
  header.hero {
      padding: 0.5rem 1rem;
  }

  header.hero h1 {
      font-size: 2.5rem;
  }

  header.hero p,
  .contact-teaser {
      font-size: 0.9rem;
  }

  header.hero nav {
      padding: 0px;
      font-size: 0.9rem;
  }
  header.hero .nav-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
  }
  .preview {
      padding: 0 1rem;
  }
}

/* Mobile-first adjustments for smaller devices */
@media (max-width: 480px) {
  header.hero {
    padding: 0.5rem 1rem;
  }
  header.hero h1 {
      font-size: 2rem;
  }

  header.hero p {
      font-size: 0.8rem;
  }

  header.hero nav {
      padding: 0px;
      font-size: 0.9rem;
  }
  header.hero .nav-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
  }
  header.hero .nav-links a {
    margin-top: 1rem;
    padding: 0px;
  }
  .preview {
      padding: 0 1rem;
  }
  .preview p {
    font-size: 1rem;
  }
  .page-section p {
    font-size: 0.9rem;
  }
  .bibliography li {
    font-size: 0.9rem;
  }
}
/* Main content */
main {
  padding: 3rem 1rem;
  max-width: 1200px; /* Restrict width on large screens */
  margin: 0 auto;
}

/* Preview section */
.preview-container {
  display: flex; 
  gap: 1rem; 
  justify-content: space-between; /* Distribute space evenly */
  flex-wrap: wrap; 
  flex-direction: column; /* Stack the preview boxes on top of each other */
  align-items: center; 
}
.preview {
  width: 100%; 
  margin: 0 auto;
  border-radius: 12px;
  padding: 0 1rem;
  margin-bottom: 2rem;
  /* box-shadow: 0 4px 12px var(--primary-color2);  */
  transition: transform 0.3s ease-in-out;
  max-width: 630px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.preview h2 {
  color: var(--secondary-color); 
  margin: 1rem 0rem 1rem 0;
  padding-bottom: 5px;
}

.preview p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.preview .button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 130px; /* Set a fixed or consistent width */
  padding: 12px 20px;
  background-color: var(--secondary-color);
  color: var(--background-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  margin: 15px 8px 15px 0;
  transition: background-color 0.3s ease-in-out, transform 0.2s;
  text-align: center;
  white-space: nowrap; /* Prevent text from wrapping */
}

.preview .button-container {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
}

.preview .button:hover {
  background-color: var(--primary-color2); 
  transform: translateY(-2px); /* Lift effect */
}

/* General page section */
.page-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-section h2 {
  margin-bottom: 1rem;
  padding-bottom: 5px;
  color: var(--secondary-color);
}

.page-section h3 {
  margin-top: 1rem;
  padding-top: 10px;
  font-size: 1.1rem;
  color: var(--secondary-color);
}

.page-section p {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.8;
}


/* General link styles */
a {
  color: var(--secondary-color);  /* Normal link color */
  text-decoration: none;
  transition: color 0.3s ease-in-out;  /* Smooth color change */
}

a:hover {
  color: var(--primary-color3);  /* Brighter blue */
  text-decoration: underline;
}

a:visited {
  color: var(--primary-color2);  /* Softer purple */
}

a:active {
  color: var(--highlight-color);  /* Warm yellow */
}

img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.image-container {
  margin-top: 1rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

.image-container img {
  width: 31.5%;
  aspect-ratio: 1 / 1;
  position: relative;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
  /* border-radius: 10px; */
}

.image-container-auto {
  display: flex;
  height: 300px;
  gap: 10px;
  align-items: center;
  overflow: visible;
  height: 30vw; 
  min-height: 100px;
  max-height: 300px; 
}

.image-container-auto img {
  height: 100%;
  width: auto; 
  object-fit: cover;
  /* border-radius: 10px; */
  flex-shrink: 0;
  overflow: hidden; 
}


/* Responsive adjustments for smaller screens */
@media screen and (max-width: 480px) {
  .image-container {
      flex-direction: column; /* Stack images vertically */
      gap: 10px;
  }

  .image-container img {
      width: 100%;
      height: width; /* Maintain aspect ratio */
  }

}

/* Contact teaser in footer */
.contact-teaser {
  text-align: center;
  font-size: 1.5rem;
  padding-bottom: 2rem;
}

.contact-teaser a {
  font-weight: bold;
}

.contact-teaser a:hover {
  text-decoration: none;
}

/* Social links */
.social-links i {
  margin-right: 1rem;
  font-size: 1.8rem;
  color: var(--secondary-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.social-links a {
  text-decoration: none;
  display: inline-block;
  font-size: 4rem;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover i {
  color: var(--primary-color2);
  transform: scale(1.1);
}

.social-links a.hover-effect i {
  color: var(--primary-color);
  /* transform: scale(1.1); */
}

/* Bibliography styles */
.bibliography {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  box-shadow: 0 4px 8px var(--subtle-shadow);
  border-left: 5px solid var(--secondary-color);
}

.bibliography h2 {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
}

.bibliography ul {
  list-style-type: disc;
  padding-left: 20px;
}

.bibliography li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.bibliography a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

.bibliography a:hover {
  text-decoration: underline;
  color: var(--primary-color2);
}

/* Footer */
footer {
  text-align: center;
  background-color: var(--footer-background-color);
  color: var(--footer-text-color);
  padding: 1rem;
}

/* Decorative Divider */
.decorative-divider {
  position: relative;
  display: flex; /* Keep the dividers centered */
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
  font-size: 2rem;
}

.decorative-divider a {
  display: block;           /* Ensure the anchor is block-level to wrap the image */
  margin: 0;                /* Remove any default margin */
  padding: 0;               /* Remove any default padding */
}

.decorative-divider a:hover .divider-image {
  opacity: 0.8; /* Slight transparency when hovering */
  transition: opacity 0.3s ease; /* Smooth transition */
}

.decorative-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0; /* Start with no width */
  height: 2px; /* Line thickness */
  background-color: white;
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%); /* Center the line */
}

.decorative-divider:hover::after {
  width: 10%; /* Line expands to 2.5 times the width of the divider */
  left: 50%;
}

.divider-icon {
  padding: 0 1rem;
  font-size: 1.5rem;
  color: var(--secondary-color);
}
.divider-image {
  max-width: 100%;          
  height: auto;             
  display: inline-block;    
}




/* Gradient Divider Styles */
.gradient-divider {
  width: 100%;
  height: 5px; /* You can adjust the height as needed */
  background: linear-gradient(45deg, #ff5733, #33c1ff, #39b039);
  background-size: 300% 300%;
  animation: gradientMove 5s ease infinite;
}

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

.sun-icon {
  transition: transform 0.3s ease, filter 0.3s ease;
  width: 4vw;
  height: 4vw;
  max-width: 60px; 
  min-width: 30px; 
  max-height: 60px;
  min-height: 30px;
  /* transition: transform 0.5s ease, filter 0.5s ease; */
}
.sun-icon:hover,
.sun-icon.active {
  transform: rotate(15deg);
  filter: drop-shadow(0 0 8px rgb(235, 223, 166));
}
