html {
  scroll-behavior: smooth;
}

body{
    animation: bgFade 10s infinite ease-in-out;
    text-align: center;
    margin: 0;
    padding: 0;
    cursor: pointer;
}
header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #1F1F1F ;
    box-sizing: border-box;
    margin: 0;
    height: 3.5em; 
    width: 100%; 
    position: relative;
    padding: .5rem;
}
header a {
    font-family: Copperplate, "Copperplate Gothic Light", fantasy;
    color: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 2em;

}
header a:hover {
    color: #585656;
}

p{
    color: rgb(255, 255, 255);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size:1.3em;
}

h1{
    color: rgb(255, 255, 255);
    font-family: Copperplate, "Copperplate Gothic Light", fantasy;
    font-size:7em;
    margin:0;
    padding:0;
    font-stretch:wider;
}
h2{
    color: rgb(255, 255, 255);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2.7em;
}
h3{
    color: rgb(255, 255, 255);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size:2em;
}
.fade-container {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.fade-text {
    opacity: 0;
    text-align: center;
    font-family: Copperplate, "Copperplate Gothic Light", fantasy;
    font-size: 7em;
    color: white;
    animation: fadeInOnce 7s ease-in-out forwards;
}

@keyframes fadeInOnce {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes bgFade {
    0%   { background-color: #1A1F2B; }  
    33%  { background-color: #2C3539; }  
    66%  { background-color: #2C3E50; }  
    100% { background-color: #1A1F2B; }
  }

.resume-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #3A4750;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
.resume-button:hover {
    background-color: #4d555a;
    transform: scale(1.05);
}
  
@media (max-width: 768px) {
    h1 {
      font-size: 3em;
    }
  
    header a {
      font-size: 1.5em;
    }
  
    .resume-button {
      padding: 0.5rem 1rem;
      font-size: 1em;
    }
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }
  }
  .about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; 
    margin-top: 1rem;
}

.about-img {
    width: 14em;
    height: auto;
    border-radius: 10px;
}

.about-text {
    max-width: 50em;
    text-align: left;
}
.button-row {
    display: flex;
    align-items: center;
    gap: 1rem; 
    margin-top: 1rem;
    flex-wrap: wrap; 
}

.linkedin {
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: .5em;

}
.linkedin:hover {
    transform: scale(1.05);
}


.site-footer {
    background-color: #1F1F1F;
    color: white;
    padding: 1rem;
    text-align: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-top: 3rem;
    border-top: 2px solid #333;
}

.site-footer p {
    margin: 0.5rem 0;
    color: rgb(255, 255, 255);
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    margin: 0 1rem;
    color: white;
    text-decoration: none;
    font-family: Copperplate, "Copperplate Gothic Light", fantasy;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #585656;
}

.footer-row{
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.prayer{
    justify-content: center; 
    font-family:'Fantasy', 'Papyrus';
    color: whitesmoke;
}

/* Trip card layout ------------------------------------------------------*/
.trip-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;          /* stacks on mobile */
  margin: 2rem auto;
  max-width: 90rem;
}

/* Text column -----------------------------------------------------------*/
.trip-info {
  flex: 1 1 300px;
  min-width: 260px;
  text-align: left;
}

/* Slideshow frame -------------------------------------------------------*/
.trip-slideshow {
  position: relative;
  flex: 1 1 300px;
  max-width: 35em;         /* tweak to taste */
  aspect-ratio: 4 / 3;      /* keeps consistent height */
  overflow: hidden;
  border-radius: 10px;
}

/* Individual slides -----------------------------------------------------*/
.trip-slideshow .slide {
  position: absolute;
  inset: 0;                
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.trip-slideshow .active {
  opacity: 1;
}

/* Mobile tweaks ---------------------------------------------------------*/
@media (max-width: 768px) {
  .trip-card {
    flex-direction: column;
  }
  .trip-info { text-align: center; }
}

/* ---------- Project card layout (mirrors .trip-card) -----------------*/
.project-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 90rem;
}
.project-info {
  flex: 1 1 300px;
  min-width: 260px;
  text-align: left;
}

/* ---------- Gallery frame -------------------------------------------*/
.project-gallery {
  position: relative;
  flex: 1 1 300px;
  max-width: 35em;          /* tweak as you like */
  aspect-ratio: 16 / 9;     /* widescreen */
  overflow: hidden;
  border-radius: 10px;
}

/* slides --------------------------------------------------------------*/
.proj-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;          /* was cover */
  background: #0d1117;          /* dark fallback behind letterbox bars */
  opacity: 0;
  transition: opacity .4s ease-in-out;
}

.proj-slide.active { opacity: 1; }

/* arrows --------------------------------------------------------------*/
.proj-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 0.2em 0.4em;
  border-radius: 50%;
  cursor: pointer;
}
.proj-prev { left: 0.4rem; }
.proj-next { right: 0.4rem; }
.proj-arrow:hover { background: rgba(0,0,0,0.65); }

/* mobile tweak --------------------------------------------------------*/
@media (max-width: 768px) {
  .project-card { flex-direction: column; }
  .project-info { text-align: center; }
}
