@font-face {
    src: url(fonts/Montserrat-VariableFont_wght.ttf);
    font-family: Montserrat;
}

@font-face {
    src: url(fonts/Lora-Regular.ttf);
    font-family: Lora;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0px;
  line-height: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #53598C;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: -1;
}

header.visible::before {
  opacity: 1;
}

header * {
  position: relative;
  z-index: 1;
}

.nav-links {
  display: flex;
  padding-right: 40px;
}

.nav-links a:hover {
 transform: scale(1.05);
 transition: transform 0.3s ease;
 color: #b1b1b1;
}

.logo img{
    height: 60px;
    width: 60px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

header.visible .logo img{
  opacity: 1;
}

body {
  margin: 0;
  padding: 0;
  font-family: Lora;
}

body:not(#homepage) .logo img {
  opacity: 1;
}

#homepage main {
  background-image: url('images/homepage_background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  position: relative;
  z-index: 0;
}

#homepage main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.overlay-text {
  position: absolute;
  top: 31%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  font-family: Montserrat;
  padding: 0 1rem;
  max-width: 90%;
}

.overlay-text h1 {
  font-size: 5vw;
  margin-bottom: 0.3rem;
}

.overlay-text p {
  font-size: 2vw;
  margin-top: 0;
}

.scroll-arrow {
  position: absolute;
  bottom: 30px; 
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 30px;
  background: white;
  opacity: 0.9;
}

.scroll-arrow::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  border-right: 4px solid white;
  border-bottom: 4px solid white;
}

.hero {
  background-image: url('images/homepage_background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.overlay-text {
  position: absolute;
  top: 31%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  font-family: Montserrat;
}

.projects {
  padding: 80px 40px;
  background: #f8f8f8;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-card h3 {
  padding: 15px;
  font-size: 1.2rem;
  color: #333;
}

body.subpage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.subpage main {
  flex: 1;
  background: white;
}

.about-main {
  padding: 120px 40px 40px;
  color: #333;
}

.about-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

#about_me {
    height: 400px;
    width: auto;
    max-width: 100%;
    padding-left: 140px;
}

.about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.about-title {
  font-size: 2.5rem;
  font-family: Montserrat, sans-serif;
  margin-bottom: 20px;
  padding-top: 18px;
}

.about-text {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
}

.resume-main {
  padding: 100px 0 40px;
  background: white;
  display: flex;
  justify-content: center;
}

.resume-container {
  width: auto;
  text-align: center;
}

.resume-title {
  font-family: Montserrat, sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.resume-container iframe {
  width: 850px;
  max-width: 95%;
  height: 1097px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contact-main {
    margin-top: 100px;
    padding: 2px 0 40px;
    text-align: center;
    background: white;
}

.contact-title {
    font-size: 2.5rem;
    font-family: Montserrat, sans-serif;
    margin-bottom: 20px;
    padding-top: 0;
}

.contact-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-family: Lora;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.contact-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background-color: black;
    border-radius: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-btn:hover {
    background-color: #333;
    transform: scale(1.05);
}

.btn-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.subject-page {
    padding: 120px 40px 40px;
    background: white;
    text-align: center;
}

.subject-title {
    font-size: 2.5rem;
    font-family: Montserrat, sans-serif;
    margin: 0 0 20px;
}

h3 {
  font-family: Montserrat, sans-serif;
}

.poster-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}


.poster {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
}

.poster2 {
    width: 90%;
    max-width: 1200px;
    height: 110vh; 
}

.subject-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    text-align: left;
    padding: 0 20px;
}

.subject-body p {
    margin-bottom: 1.5rem;
}

.swbli_research-title {
   font-size: 2.5rem;
    font-family: Montserrat, sans-serif;
    margin-bottom: 20px;
    padding-top: 0;
}

.external-link {
  text-align: center;
  margin: 40px 0;
}

.button-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: #53598C;
  color: white;
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.button-link:hover {
  background-color: #3f436f;
}

.aero-photos {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.aero-photos img {
  width: 500px;
  height: auto;
   object-fit: contain;
}

.garmin-photos {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.garmin-photos img {
  width: 350px;
  height: auto;
   object-fit: contain;
}

.aviators-photos {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.aviators-photos img {
  width: 500px;
  height: auto;
   object-fit: contain;
}

.aviators-photos2 {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.aviators-photos2 img {
  width: 328px;
  height: auto;
   object-fit: contain;
}

.structures-photos {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}
.structures-photos img {

  width: 600px;
  height: auto;
   object-fit: contain;
}

.structures-photos2 {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}
.structures-photos2 img {

  width: 300px;
  height: auto;
   object-fit: contain;
}

.solids-photos {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}
.solids-photos img {

  width: 300px;
  height: auto;
   object-fit: contain;
}

.solids-photos2 {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}
.solids-photos2 img {

  width: 300px;
  height: auto;
   object-fit: contain;
}

.comp-photos {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}
.comp-photos img {

  width: 300px;
  height: auto;
   object-fit: contain;
}

.comp-photos2 {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}
.comp-photos2 img {

  width: 300px;
  height: auto;
   object-fit: contain;
}

footer {
  padding: 20px 0;
  text-align: center;
  background-color: #53598C;
  color: white;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.nav-links a,
.dropbtn {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  padding: 0;
  margin: 0 0 0 20px;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-family: Montserrat;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links a:hover,
.dropbtn:hover {
  transform: scale(1.05);
  color: #b1b1b1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: black;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
  z-index: 1000;
  border-radius: 4px;
}


.dropdown-content a {
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-family: Montserrat;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.dropdown-content a:hover {
  color: #b1b1b1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-right {
    align-items: center;
    padding: 0;
  }

  #about_me {
    padding-left: 0;
    height: auto;
    max-width: 80%;
    margin: 0 auto;
  }
}
