/*Website: Look of the entire page*/
html, body {
  height: 100%;
  margin: 0;            
}

body {
  background-color: rgb(46, 44, 44);
}

body{ font-size: 16px; }         
main.about p{ font-size: 16px; }  

main.about h2{
  font-size: 40px;   
  margin-bottom: 18px;
}

/*Header: HERO Image (first image people see when they visit my website)*/
header.tabs {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background-image: url("../images/header/girl.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;

  background-position: 30% 10%;

  padding: 10px 40px;
}

header.tabs::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}

header.tabs {
  position: relative; 
}

header.tabs nav {
  position: relative; 
  z-index: 1;
}

/*Header: tabs*/
header.tabs nav ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    justify-content: center;  
    align-items: center;

    gap: clamp(12px, 4vw, 40px); 
    flex-wrap: wrap;          
}

header.tabs nav ul li {
    margin: 0;                 
    color: azure;
}

a {
  text-decoration: none;
  color: azure;
}

a:hover:not(.resume-open):not(.btn) {
  color: rgb(173,147,76);
  text-decoration: underline;
}

header.tabs nav a.active:not(.resume-open):not(.btn) {
  color: rgb(173,147,76);
  font-weight: bold;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  header.tabs {
    background-attachment: scroll;
  }
}

/*Text: body paragraphs*/
h2 {
    color: rgb(173,147,76);
    font-size: 30px;
    text-align: center;
    text-decoration: none;
}

p {
    color: azure;
    font-size: 20px;
    text-align: center;
}

main.about{
  width: 100%;    
  margin: 0 auto;       
  padding: 48px 40px;
  box-sizing: border-box;
}

main.about h2{
  text-align: center;
  margin-bottom: 24px;
}

main.about p{
  text-align: left;     
  line-height: 1.7;
  font-size: 20px;
  margin: 0 0 18px 0;
}

section.about-wrap{
  display: grid;
  grid-template-columns: minmax(560px, 1fr) clamp(280px, 35vw, 470px);
  gap: 28px;
  padding: 0;                
  box-sizing: border-box;
}

div.photo-col{
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start; 
}

div.photo-col img.about-photo{
  width: 100%;
  height: 360px;     
  border-radius: 18px; 
  object-fit: cover; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.35); 
}

#cropped-photo{
  object-position: center 30%;
}

div.card{
  flex: 1;                 
  background-color: rgb(64,79,81);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px;
}

/* Responsive: stack image under the card on small screens */
@media (max-width: 900px){
  section.about-wrap{
    grid-template-columns: 1fr;
  }
  img.about-photo{
    max-width: 520px;
    justify-self: center;
  }
}

/*Timeline Section*/
.timeline{
  margin-top: 64px;
  padding: 12px 0 48px;
}

.timeline-title{
  text-align: center;
  margin: 0 0 18px;
  padding-bottom: 10px;
  font-size: 50px;
  color: rgb(173,147,76); 
}

.timeline-viewport{
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 26px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.timeline-viewport::before,
.timeline-viewport::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 90px;
  pointer-events:none;
  z-index: 3;
}

.timeline-viewport{
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 26px 0;

  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.timeline-viewport{ scroll-snap-type: x mandatory; }
.tl-item{
  scroll-snap-align: center;
  scroll-snap-stop: always; 
}

.timeline-track{
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 42px;

  padding-inline: 40vw;   
  width: max-content;      
  min-width: 100%;       
  min-height: 800px;
  box-sizing: border-box;
}

.timeline-track::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:50%;
  height:2px;
  background: rgba(255,255,255,0.18);
  z-index: 0;
}

.tl-item{
  position: relative;
  flex: 0 0 320px;
  height: 800px;
}

.tl-item::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:12px; height:12px;
  border-radius:50%;
  transform: translate(-50%, -50%);
  background: rgb(173,147,76);
  box-shadow: 0 0 0 4px rgba(0,229,168,0.15);
  z-index: 2;
}

.tl-item:nth-child(odd) .tl-card{
  position: absolute;
  left:0; right:0;
  bottom: calc(50% + 85px);
  z-index: 2;
  background: rgb(64,79,81);         
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  padding: 18px;
  border-radius: 18px;
}

.tl-item:nth-child(odd)::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:50%;
  width:2px;
  height:70px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.18);
  z-index: 1;
}

.tl-item:nth-child(even) .tl-card{
  position: absolute;
  left:0; right:0;
  top: calc(50% + 85px);
  z-index: 2;
  background: rgb(64,79,81);         
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  padding: 18px;
  border-radius: 18px;
}

.tl-item:nth-child(even)::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:2px;
  height:70px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.18);
  z-index: 1;
}

.tl-card, .tl-card *{
  color: azure;  
}

.tl-year{
  color: azure;
  font-weight: 700;
}

.tl-item li:hover {
  color: rgb(173,147,76);
  text-decoration: underline;
}

.tl-card li + li{
  margin-top: 15px;
}

/* Mobile: single column (optional) */
@media (max-width: 900px){
  .timeline-track{
    padding: 0 25vw;
    min-height: 460px;
  }
  .tl-item{
    flex-basis: 280px;
  }
}

/*Buttons for tabs*/
.buttons{
  display: flex;
  justify-content: space-evenly;
  align-items: center;

  width: 100%;

  padding: 24px 40px;   
  box-sizing: border-box;
}

.buttons button{
  color: azure;
  background:  rgb(64,79,81);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}

/*Hobbies Section*/

.pictures{
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 32px 24px;      
  display: grid;
  gap: 28px;               
}

.pictures .card{
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  color: azure;
}

.pictures .card h2{
  margin: 0 0 16px 0;
  grid-column: 1 / -1;
}

.pictures .card{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  align-items: start;
}

.pictures .card img{
  width: 100%;
  aspect-ratio: 4 / 3;     
  object-fit: cover;      
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pictures .card img:hover{
  transform: scale(3.1);
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}

@media (max-width: 600px){
  .pictures .card{
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/*Certifications Section*/
.certs-section{
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 28px;
  margin: 32px auto;
  width: min(1200px, 92vw);
  color: azure;
}

.certs-section .cert-item{ 
  display: grid;
  grid-template-columns: 1fr;  
  gap: 16px;
  margin-top: 18px;
}

.certs-section .cert-media{ order: 1; }
.certs-section .cert-text{ order: 2; }

.certs-section .cert-media{
  max-width: 520px;    
  justify-self: center;
}

.certs-section .cert-text{
  background: rgb(64,79,81);
  border-radius: 18px;
  padding: 20px;
}

.certs-section h2{
  margin: 0 0 12px;
}

.certs-section .cert-text h3{
  margin: 0 0 10px;
}

.certs-section .cert-text p{
  text-align: left;
  margin: 0;
  line-height: 1.7;
  font-size: 18px;
}

.certs-section .cert-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

@media (max-width: 900px){
  .certs-section .cert-item{
    grid-template-columns: 1fr;
  }
  .certs-section .cert-media{
    max-width: 520px;
  }
}

/*Projects Section*/
.project-section{
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 28px;
  margin: 32px auto;
  width: min(1200px, 92vw);
  color: azure;
}

.project-item{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-section .project-media{ order: 1; }
.project-section .project-text{ order: 2; }

.project-section .project-text{
  background: rgb(64,79,81);
  border-radius: 18px;
  padding: 20px;
}

.project-section h2{
  margin: 0 0 12px;
}

.project-section .project-text h3{
  margin: 0 0 10px;
}

.project-section .project-text p{
  text-align: left;
  margin: 0;
  line-height: 1.7;
  font-size: 18px;
}

.project-section .project-media{
  --tile-max: 520px;             
  --tile-h: 400px;                
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, var(--tile-max)));
  justify-content: center;        
  justify-items: center;          
  gap: 12px;
  padding: 12px 0;                
}

.project-section .project-media img{
  width: 100%;
  max-width: var(--tile-max);
  height: var(--tile-h);
  border-radius: 18px;
  display: block;
  background: rgba(255,255,255,0.06); 
}

.project-section .project-media img.fit-cover{
  object-fit: cover;
  object-position: center;
}

.project-section .project-media img.fit-contain{
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px){
  .project-section .project-item{
    grid-template-columns: 1fr;
  }
  .project-section .project-media{
    max-width: 520px;
  }
}
