/* Correct Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;700&display=swap');

/* Define CSS Variables for Colors */
:root {
    --dark-blue: #392f5A;
    --floral-white: #FFF8F0;
    --peach: #FFCC99;
    --orange: #6c7f72;
    --backround: #b4c4b9;
    --text: #000000;
}

/* Global Styles */
body {
    font-family: 'Montserrat Alternates', sans-serif; /* Correct font name */
    background-color: var(--backround); /* Light blue background */
    color: var(--text);
    min-height: 100vh;
    margin: 0;
    top: 0%;
    padding: 0px 40px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
     /* Example of using the CSS variable */
}

main {
    flex: 1; /* This makes the main content take up the available space */
    padding: 20px;
}

button {
    color: var(--dark-blue) ;
    background-color: var(--peach);

}

button:hover{
    background-color: var(--orange);
}

.name {
    color: #392f5A;
    font-size: xx-large;
    font-weight: bold;
}

.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--backround);
    overflow: hidden;
    padding: 0 20px 40px;
}

/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    color: var(--text);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}
  
  /* Change the color of links on hover */
.topnav a:hover {
    background-color: var(--backround);
    color: var(--orange);
    text-decoration: underline;
}
  
  /* Add a color to the active/current link */
.topnav a.active {
    background-color: var(--backround);
    color: var(--orange);
    text-decoration: underline;
    
}

#navbar {
    height: 60px; /* or however tall your nav bar is */
    position: relative;
}

/* Footer */
.footer {
    background-color: var(--backround);
    color: var(--dark-blue);
    font-size: small;
    align-content: center;
    padding: 10px 0;
    width: 100%;
    justify-content: space-between; /* Even spacing between items */
    align-items: center; /* Align items vertically in the center */
    flex-wrap: wrap; 
}

.font-thin {
    font-weight: 100;
}

.font-bold {
    font-weight: 700;
}

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

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

a:hover {
    color: var(--orange);
}

.font-italic {
    font-style: italic;
}

.font-bold-italic {
    font-weight: 700;
    font-style: italic;
}

.flex-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    align-items: center;
    align-content: flex-start;
    justify-content: center;
    width: 100%;
    /*border: 1px solid red; debugging
    padding: 10px; /* Add padding for better spacing */
    gap: 20px;
}

.flex-container1 {
    display: flex; /* Enables Flexbox */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center vertically within the container */
    align-items: center; /* Center horizontally */
    gap: 10px; /* Add space between items */
    height: 100%; /* Ensure container takes up full height */
    text-align: center; /* Center text inside items */
  
}

.flex-item {
    flex: 1;
    padding: 10px;
}

.flex-item {
    flex: 1;
    padding: 10px;
    justify-content: space-between;
}
.image img{
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 10px var(--dark-blue);
    align-self: center;
    border-radius: 5px;
}


.text-group {
    flex: 1; /* Ensures the text group takes up space proportional to the image */
    display: flex;
    width: 100%;
    flex-direction: column; /* Stacks the title and description vertically */
}

.title {
    font-weight: bold;
    color: #392f5A;
    font-size: 35px;
}

.title2 {
    font-weight: bold;
    color: black;
    font-size: 30px;
}

.header {
    font-weight: bold;
    color: #392f5A;
    font-size: 20px;
}


video {
    border-radius: 8px; /* Adds rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a shadow for better aesthetics */
    max-width: 100%; /* Ensures responsiveness */
    height: auto;
}



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

/* Default state: hidden */
.appearbox0 {
    opacity: 0;
    
    animation-timeline: view();
    animation-range: entry 0% cover 50%;

    animation: appear 1s ease-in forwards .3s;
}
.appearbox1 {
    opacity: 0;
    
    animation-timeline: view();
    animation-range: entry 0% cover 50%;

    animation: appear 1s ease-in forwards 1s;
}

.appearbox2 {
    opacity: 0;
    
    animation-timeline: view();
    animation-range: entry 0% cover 50%;

    animation: appear 1s ease-in forwards 2s;
}

.appearbox3 {
    opacity: 0;
    
    animation-timeline: view();
    animation-range: entry 0% cover 50%;

    animation: appear 1s ease-in forwards 3s;
}

.appearbox4 {
    opacity: 0;
    
    animation-timeline: view();
    animation-range: entry 0% cover 50%;

    animation: appear 1s ease-in forwards 4s;
}

.appearbox5 {
    opacity: 0;
    
    animation-timeline: view();
    animation-range: entry 0% cover 50%;

    animation: appear 1s ease-in forwards 5s;
}


.grid-wrapper > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.grid-wrapper{
    display: grid;
    grid-gap: 20px;
    column-gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px) );
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}


.mountain-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 0 10px var(--dark-blue);
}

.peak-dot {
    position: absolute;
    top: 30%; /* Adjust depending on the mountain location */
    left: 52%; /* Adjust to visually land on the peak */
    width: 16px;
    height: 16px;
    background-color: var(--dark-blue);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 2;
    text-decoration: none;
}

.peak-dot:hover {
    transform: scale(1.3);
}

.peak-dot .tooltip {
    visibility: hidden;
    opacity: 0;
    width: 160px;
    background-color: var(--backround);
    color: var(--text);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    top: -70px; /* above the dot */
    left: 40%;
    transform: translateX(-50%);
    z-index: 3;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.peak-dot:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Target only the mountain page layout */
body.mountain-only {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main.mountain-content {
    max-width: 100vw;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.image-container {
    position: relative;
    width: 90vw;         /* Viewport-relative width */
    max-width: 1200px;   /* Cap the width on large monitors */
    margin: 20px auto;
}

/* Smooth page fade-in */
body {
    opacity: 0;
    transition: opacity 0.8s ease-in;
  }
  
  body.loaded {
    opacity: 1;
  }
  
  /* Navbar fade-in delay */
  #navbar {
    opacity: 0;
    transition: opacity 1s ease-in;
  }
  
  #navbar.show {
    opacity: 1;
  }
  .timeline-layout {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
  }
  
  /* Stack with video on top for small screens */
  @media (max-width: 768px) {
    .timeline-layout {
      flex-direction: column-reverse;
      align-items: center;
    }
  }
  
  .timeline {
    flex: 1;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
  }
  
  .timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--text);
  }
  
  .timeline-dot {
    width: 12px;
    height: 12px;
    background-color: #392f5A;
    border-radius: 50%;
    position: absolute;
    left: -6px;
    top: 0.25rem;
  }
  
  .learning-grid {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 1rem;
  }
  
  .learning-step {
    flex: 1 1 200px;
    padding: 1rem;
  }

  .carousel-section {
    padding: 2rem;
    overflow: hidden;
  }

  .carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
  }

  .carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 1rem;
    width: 9999px;
  }

  .carousel-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }

  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #b4c4b9;
    color: var(--text);
    border: none;
    font-size: 2rem;
    font-family: inherit;
    cursor: pointer;
    z-index: 2;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

  .travel-carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    overflow: hidden;
  }

  .travel-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
  }

  .travel-carousel-image {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    padding: 1rem; /* ⬅️ Add padding around the image */
  }
  
  .wwoof-layout {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
  }

  .hidden-text {
    display: none;
    margin-top: 0.5rem;
  }
  
  .expand-btn {
    background-color: #b4c4b9;
    border: none;
    padding: 0.3rem 0.6rem;
    margin-top: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
    font-family: 'Montserrat Alternates', sans-serif; 
  }
  
  /* Travel Section Container */
.travel-section {
    padding: 40px 20px;
   
  }
  
  /* Layout holding the rows */
  .travel-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  /* Each row: text on left, media on right */
  .travel-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  
  /* Left column text */
  .travel-text {
    flex: 1 1 45%;
    min-width: 280px;
  }
  
  .travel-text h3 {
    margin-bottom: 10px;
    color: var(--text, #333);
    font-size: 1.5rem;
  }
  
  .travel-text p {
    font-size: 1rem;
    color: var(--text-light, #555);
    line-height: 1.6;
  }
  
  /* Right column media */
  .travel-media,
  .travel-carousel-container {
    flex: 1 1 50%;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
  }
  
  /* Travel carousel */
  .travel-carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    height: auto;
  }
  
  .travel-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 10px;
  }
  
  .travel-carousel-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
  }
  
  .carousel-btn.travel-prev,
  .carousel-btn.travel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
  }
  
  .carousel-btn.travel-prev {
    left: 10px;
  }
  
  .carousel-btn.travel-next {
    right: 10px;
  }
  
  /* Responsive stacking for smaller screens */
  @media (max-width: 768px) {
    .travel-row {
      flex-direction: column;
    }
  
    .travel-text,
    .travel-media,
    .travel-carousel-container {
      flex: 1 1 100%;
    }
  
    .travel-carousel-image {
      max-width: 100%;
    }
  }
/* Left-align intro text */
.contact-intro {
    text-align: left;
    max-width: 1000px;
    margin: 4rem auto 2rem auto;
    padding: 0 2rem;
    padding-bottom: 20px;
  }
  
  .contact-photo-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 0 2rem;
  }
  
  .contact-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    flex: 1 1 auto;
  }
  
  /* Optional: More spacing for larger screens */
  @media (min-width: 768px) {
    .contact-photo-row {
      gap: 3rem;
    }
  }
  
  @media (min-width: 1024px) {
    .contact-photo-row {
      justify-content: space-around;
      gap: 5rem;
    }
  
    .contact-img {
      max-width: 300px;
    }
  }
  .contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    padding-top: 40px;
    margin: 2rem auto 0 auto;
    font-size: larger;
  }
  
  @media (min-width: 768px) {
    .contact-links {
      gap: 3rem;
    }
  }
  
  @media (min-width: 1024px) {
    .contact-links {
      gap: 5rem;
    }
  }
  
  .contact-links li a {
    text-decoration: none;
    font-size: 2.5rem;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-top: 50px;
  }
  
  
  .resume-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    padding-top: 40px;
    margin: 2rem auto 0 auto;
    font-size: larger;
    
  }
  
  .resume-view,
  .resume-download {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
  }
  
  .resume-view:hover,
  .resume-download:hover {
    color: #6c7f72;
  }
  
 
  .resume-download:hover .download-icon {
    transform: scale(1.2);
  }
  
  