/* Fonts */
@font-face {
  font-family: "Quosm-Bold";
  src: url(fonts/Quosm\ Bold.otf);
}
@font-face {
  font-family: "Quosm";
  src: url(fonts/Quosm.otf);
}

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

html {
  scroll-behavior: smooth;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical center */
  align-items: center;       /* horizontal center */
  /*min-height: 100vh;         /* full screen height */
  padding: 2rem 1rem;        /* breathing room */
  text-align: center;
}

body {
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: auto 40%; 
  background-color: #ffffff;
  position: relative;
  min-height: 100vh;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  touch-action: none;
  font-family: "Quosm", sans-serif;
  color: #ffffff;
}

header {
  background-color: #ffffff;
  text-align: center;
  padding: 20px 10%;
}

.header_title a {
  font-family: "Quosm-Bold";
  font-size: 24px;
  color: black;
  text-decoration: none;
}

.nav_links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px; 
  margin-top: 15px;
}

.nav_links li a {
  font-size: 16px;
  color: #d9246f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav_links li a:hover {
  color: rgb(13, 131, 170);
}

@media (max-width: 768px) {
  .home_vis img {
    width: 100%;     /* on mobile: full width */
    max-width: none; /* allow full bleed */
  }
}

.nav_links {
  gap: 15px;
}

.nav_links li a {
  font-size: 14px;
}

.home_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0rem; /* spacing between image and bio */
}

.home_vis img {
  width: 75%;        /* desktop: takes 60% of screen */
  max-width: 400px;  /* prevents growing too large */
  height: auto;      /* keeps aspect ratio */
  margin-top: 0; /* lift the visual upwards */
}

.bio {
  max-width: 300px;
  text-align: center;
  font-family: "Quosm";
  font-size: 0.7rem;
  line-height: 0.95;
  color: #000;
  margin-top: 0;    /* remove extra top margin */
}

.bio a {
  color: #d9246f;
  text-decoration: none;   /* remove default underline */
  transition: all 0.2s;    /* smooth hover effect */
}

.bio a:hover,
.bio a:active {
  text-decoration: underline;
  text-decoration-color: rgb(13, 131, 170);  /* red underline on hover/click */
  text-underline-offset: 2px;      /* optional: space between text and underline */
}

/* PRESENTATIONS */

.presentations-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #000;
}

.presentations-title {
  font-family: "Quosm-Bold";
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-item {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  font-family: "Quosm-Bold";
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

.video-description {
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  .presentations-container {
    margin: 1rem auto;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* RESEARCH */

.research-container {
      max-width: 800px;
      margin: 2rem auto;
      padding: 0 1rem;
      color: #000;
}

.research_vis img {
  max-width: 200px;  /* prevents growing too large */
  height: auto;      /* keeps aspect ratio */
  margin-top: 0; /* lift the visual upwards */
}

.research-title {
  font-family: "Quosm-Bold";
  color: rgb(13, 131, 170);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.citation-list {
  list-style: none;
}

.citation-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.citation-text {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.citation-link {
  color: #d9246f;
  text-decoration: none;
  font-size: 0.8rem;
}

.citation-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .research-container {
    margin: 1rem auto;
  }
  
  .research-title {
    font-size: 1.5rem;
  }
}

/* WORKSHOPS */
  
.crowd img {
  width: 75%;        /* desktop: takes 60% of screen */
  max-width: 500px;  /* prevents growing too large */
  height: auto;      /* keeps aspect ratio */
  margin-top: -2rem; /* lift the visual upwards */
}


/* CONNECT */
.connect img {
  width: 50%;        /* desktop: takes 60% of screen */
  height: auto;      /* keeps aspect ratio */
  margin-top: -2rem; /* lift the visual upwards */
}

.connect-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #000;
  text-align: center;
}

.connect-title {
  font-family: "Quosm";
  color: rgb(13, 131, 170);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-transform: lowercase;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000;
  transition: transform 0.2s;
  width: 80px;
}

.social-link:hover {
  transform: translateY(-5px);
}

.social-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background-color: #f0f0f0;
}

.social-name {
  font-size: 0.8rem;
  text-transform: lowercase;
}

@media (max-width: 768px) {
  .connect-container {
    margin: 1rem auto;
  }
  
  .social-links {
    gap: 1.5rem;
  }
  
  .social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* SVG hover effects */
#GitHub_balloon:hover,
#Scholar_balloon:hover,
#LinkedIn_balloon:hover,
#BlueSky_balloon:hover,
#Youtube_balloon:hover {
    cursor: pointer;
}