@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

main > section:nth-last-of-type(1) {
    padding-bottom: 50px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
  
header.hidden {
transform: translateY(-100%);
}
  
.nav-links {
display: flex;
margin-left: auto;
list-style: none;
overflow: hidden;
}
  
  .nav-links a {
    text-decoration: none;
    color: #6a9ef7;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    padding: 37px 20px;
    flex-shrink: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .nav-links a:hover, .nav-links a.active {
    background-color: #e9eef7;
    color: #004aad;
  }
  
  body {
    margin-top: 100px;
  }
  
  .upper-hover-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 999;
  }
  
  .logo img {  
    height: 140px;  
    padding: 30px;
}   

/* Section 1: Timeline */

#timeline h2 {  
    font-size: 2.5em;                 
    margin-bottom: 10px;            
    position: relative;             
    display: inline-block;               
}  

#timeline h2::after {  
    content: '';                        
    display: block;                     
    width: 100%;                         
    height: 4px;                      
    background-color: #000;        
    margin-top: 8px;                  
    position: absolute;                
    bottom: 0;                        
    left: 0;                            
}  

#our-team h2 {  
    font-size: 2.5em;                 
    margin-bottom: 10px;               
    position: relative;                 
    display: inline-block;           
}  

#our-team h2::after {  
    content: '';                        
    display: block;                    
    width: 100%;                        
    height: 4px;                       
    background-color: #fff;         
    margin-top: 8px;                  
    position: absolute;              
    bottom: 0;                         
    left: 0;                             
}

#timeline {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 50px auto;
    width: 90%;
    max-width: 1200px;
}

#timeline h2 {
    font-size: 3.5em;
    margin-bottom: 30px;
}

.timeline {
    position: relative;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
    position: relative;
    gap: 20px;
}

.timeline-item.alt {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 3px solid #3498db;
    border-radius: 50%;
    color: #3498db;
    font-size: 1.2em;
    font-weight: bold;
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.timeline-content {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 45%; 
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 45%; 
}

.timeline-image {
    max-width: calc(50% - 10px);
    flex: 1 1 auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #ddd;
    width: 4px;
    height: 100%;
    z-index: 0;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: center;
        margin: 20px 0;
    }

    .timeline-content,
    .timeline-images {
        width: 90%;
        text-align: center;
    }

    .timeline-marker {
        position: relative;
        margin: 10px 0;
    }

    .timeline:before {
        left: 50%;
    }

    .timeline-image {
        max-width: 100%; 
    }
}

.timeline-item {  
    opacity: 0; 
    transform: translateY(20px);  
    transition: opacity 0.3s ease, transform 0.3s ease;
}  

.timeline-item.visible {  
    opacity: 1; 
    transform: translateY(0);  
}

.timeline-item[data-revealed="true"] {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#our-team {
    padding: 40px 20px;
    text-align: center;
    background-color: #192f66;
}

#our-team h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
}

.team {  
    display: flex;              
    justify-content: center;     
    gap: 20px;                 
    flex-wrap: nowrap;          
}  

.team-card {  
    background-color: #f9f9f9;  
    padding: 20px;  
    border-radius: 8px;  
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  
    text-align: center;  
    transition: transform 0.3s ease, box-shadow 0.3s ease;  
}  

.team-card:hover {  
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);   
}  

.team-card img {  
    width: 150px;         
    height: 150px;         
    border-radius: 0;       
    object-fit: cover;       
    margin-bottom: 10px;   
}  

@media (max-width: 768px) {  
    .team {  
        flex-wrap: wrap;    
    }  
}

/* Footer */  
footer {  
    padding: 10px;  
    margin: 0;  
    background-color: white;  
    color: black;  
}  

footer .footer-content {  
    display: flex;  
    justify-content: space-between;  
    align-items: center;  
}  

footer .social-icons {  
    display: flex;  
}   

footer .social-icons img {  
    width: 36px;  
    height: 36px;  
    margin: 0 5px;  
}