/* This is the required project styling. Will contain essential CSS styles like:
   * Flex property
   * Grid layout
   * Cards and sections
*/

@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

/* variables */
:root {
  /* Colors */
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #ffffff;
  --text-color: #222222;
  --text-color-two: #ffffff;
  --bg-secondary: #000000;
  --card-background: #e1d4da;
  --bg-secondary-two: #111111;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;

  /* Per-school education colors (customize these) */
  --edu-uofm-color: #7a0026; /* accent/border color for U of M */
  --edu-uofm-bg: #f8eef1; /* background tint for U of M card */
  --edu-uofm-bg-image: none; /* optional: url('assets/path-to-image.jpg') */
  --edu-uofm-text: #1b1b1b; /* text color on U of M card */

  --edu-augsburg-color: #7a0026; /* accent/border color for Augsburg */
  --edu-augsburg-bg: #f8eef1; /* background tint for Augsburg card */
  --edu-augsburg-bg-image: none; /* optional: url('assets/path-to-image.jpg') */
  --edu-augsburg-text: #0b0b0b; /* text color on Augsburg card */
}

[data-theme="dark"] {
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #000000;
  --text-color: #ffffff;
  --text-color-two: #222222;
  --bg-secondary: #ffffff;
  --card-background: #111111;
  --bg-secondary-two: #f4f4f4;
  --shadow: 0 2px 10px rgba(95, 95, 95, 0.2);
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

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

/* Main styling */
body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
}

.navbar #logo img {
  display: block;
  width: 80px;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 50%;

}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* hamburger */
.hamburger {
  margin-bottom: 0.1rem;
  display: none;
}

/* Mobile menu hidden by default */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px; /* below navbar */
    right: -100vw; /* hide offscreen */
    width: 70%;
    height: 100%;
    flex-direction: column;
    background: var(--bg-primary);
    gap: 1.5rem;
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 50;
  }

  /* Show menu when active */
  .nav-menu.active {
    right: 0;
  }

  .nav-menu .nav-link,
  .nav-menu .btn {
    width: 100%;
    text-align: left;
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  /* Hamburger styling */
  .hamburger {
    display: block;
    cursor: pointer;
  }

  .hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 3px;
  }

  /* Hamburger animation when active */
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}




.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header two-column layout */
.header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
}

/* Vertical divider between left and right columns */
.header-grid {
  position: relative;
}

.header-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 1px;
  background: rgba(0,0,0,0.08);
  transform: translateX(-0.5px);
  pointer-events: none;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Center profile image and name within the hero column */
.hero-left .profile-avatar {
  align-self: center;
}

.hero-left h1 {
  text-align: center;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Smaller connect button in hero */
.hero-left .btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 6px;
  align-self: center; /* center horizontally within the hero-left column */
}

.hero-right.about {
  background: var(--card-background);
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 18px rgba(186, 132, 132, 0.06);
}

/* About paragraph spacing */
.hero-right.about p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.hero-right.about p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .header-grid {
    grid-template-columns: 1fr; /* stack */
  }
}

.profile-avatar {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  animation: bounce 1s infinite alternate;
}

.profile-image {
  width: 120%; /* zoom effect */
  height: 120%;
  object-fit: cover; /* ensure the image fills the container and is cropped */
  display: block;
  transition: transform 0.4s ease;
}

.profile-avatar:hover .profile-image {
  transform: scale(1.08);
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-10px);
  }
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin-bottom: 4rem;
}

.division.education-divider {
  margin-bottom: 4rem;
}

.division.projects-divider {
  margin-top: 4rem;
}





/* Education section styles */
.education{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 1rem;
}

.education-container {
  max-width: 200px;
  margin: 10px auto;
  padding-bottom: 6rem;
  background-color: #721c17;
}

/* Ensure the Education section title is readable on the maroon band */
.education-container .content-text h1,
#education .content-text h1 {
  color: #ffffff;
}


.edu-column {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* logo left, text right */
  padding: 2.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 18px rgba(255, 254, 254, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin: 1rem 0;
}

/* Per-school specific styling */
.edu-column.uofm {
  background-color: var(--edu-uofm-bg);
  background-image: var(--edu-uofm-bg-image);
  background-size: cover;
  background-position: center;
  border: .5px solid var(--edu-uofm-color);
}

.edu-column.uofm .education-info h3,
.edu-column.uofm .education-info p {
  color: var(--edu-uofm-text);
}

.edu-column.augsburg {
  background-color: var(--edu-augsburg-bg);
  background-image: var(--edu-augsburg-bg-image);
  background-size: cover;
  background-position: center;
  border: .5px solid var(--edu-augsburg-color);
}

.edu-column.augsburg .education-info h3,
.edu-column.augsburg .education-info p {
  color: var(--edu-augsburg-text);
}


.edu-logo {
  flex: 0 0 auto;
  margin-right: 1.25rem;
}

.edu-logo img {
  height: 64px; /* equalized height */
  width: auto;
  display: block;
}

.edu-column .education-info {
  flex: 1 1 auto;
}

/* Status chip (small label) */
.status {
  display: inline-block;
  font-size: 0.5rem;
  padding: 0.25rem 0.60rem;
  border-radius: 10px;
  font-weight: 600;
}
.status.in-progress {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

@media (max-width: 768px) {
  .education {
    grid-template-columns: 1fr; /* stack */
  }
  .edu-column {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  .edu-logo img {
    height: 56px;
  }
}

/* Projects */
#projects {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

#projects .btn {
  align-self: center; /* flex fallback */
  display: inline-block;
  margin: 2rem auto; /* center horizontally */
}

.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  grid-gap: 0.9rem;
}


.project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  position: absolute;
  inset: 0;
  padding: 1rem;
  transition: 0.5s ease-in-out;
}


.project-bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: absolute;
  bottom: 15px;
  left: 10px;
  right: 10px;
}


/* ================================
   Research Section
================================ */
.research-container {
  padding: 4rem 0;
}

.research-info {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.research-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.research-image-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.research-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-card:hover .image-overlay {
  opacity: 1;
}

.image-card:hover .research-image {
  transform: scale(1.05);
}

/* ================================
   Modal
================================ */
.sp-imgbox {
  display: inline-block;
  cursor: zoom-in;
  position: relative;
}

.sp-imgbox:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Poster hover effect */
.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.research-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-card:hover .image-overlay {
  opacity: 1;
}

.image-card:hover .research-image {
  transform: scale(1.05);
}

.research-info a {
  color: rgb(61, 161, 243);
  text-decoration: underline;
}

/* ================================
   Footer
================================ */
#footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

#footer a { color: #fff; }

/* ================================
   Responsive
================================ */
@media (max-width: 900px) {
  .header-grid,
  .education,
  .research-image-wrap,
  .project {
    grid-template-columns: 1fr;
  }

  .header-grid::before {
    display: none;
  }
}