/* wth reset */
/* Removed local font imports */
/* wth reset */

/* Global reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: 'Satoshi', Arial, sans-serif; background-color: #111; color: #fff; }

.page { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  display: flex; 
  align-items: center; 
  transition: opacity 0.5s ease, visibility 0.5s ease; 
  padding: 4rem 5rem; /* Equal padding on left and right */
}
.page.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Home page */
#home { justify-content: space-between; }
.intro { max-width: 50%; }
.intro h1 { font-family: 'Satoshi', Arial, sans-serif; font-weight: 900; font-size: 5rem; margin-bottom: 1rem; }
.intro p { font-family: 'Cabinet Grotesk', Arial, sans-serif; font-weight: 500; font-size: 1rem; line-height: 1.6; }

/* Skills section */
/* undo bloody flex  */
.skills {
  text-align: right;
  line-height: 1.4;
  /* REMOVE THE DISPLAYS */
}

/* skills section */
.skills { text-align: right; line-height: 1.4; }
.skills span { 
  font-family: 'Cabinet Grotesk', Arial, sans-serif; font-weight: 500;
  display: block; 
  font-size: 2rem; 
  margin-bottom: 0.5rem; 
  padding: 0.25rem 0.5rem; 
  border: 2px solid transparent; 
  transition: background-color 0.2s, color 0.2s, border-color 0.2s; 
  cursor: pointer; 
}
.skills span:hover { background-color: #fff; color: #000; border-color: #fff; }

/* Graphics skills section */
.graphics-skills {
  padding-left: 5rem;
}

/* Content sections */
.section { justify-content: flex-start; }
.section .content { max-width: 100%; width: 100%; }
.section h2 { 
  font-family: 'Cabinet Grotesk', Arial, sans-serif; font-weight: 500;
  font-size: 2.5rem; 
  margin-bottom: 1rem; 
}
.section h3 { 
  font-family: 'Cabinet Grotesk', Arial, sans-serif; font-weight: 500;
  font-size: 1.5rem; 
  margin: 1.5rem 0 0.5rem; 
}
.section p { 
  font-family: 'Satoshi', Arial, sans-serif; font-weight: 400;
  font-size: 1rem; 
  line-height: 1.6; 
  margin-bottom: 1rem; 
}
.section .back-btn { 
  font-family: 'Satoshi', Arial, sans-serif; font-weight: 700;
  font-size: 1rem; 
  padding: 0.5rem 1rem; 
  background: transparent; 
  border: 2px solid #fff; 
  color: #fff; 
  cursor: pointer; 
  transition: background-color 0.2s, color 0.2s; 
  margin-top: 1rem; 
}
.section .back-btn:hover { background-color: #fff; color: #000; }
.section .proj-btn { 
  font-family: 'Satoshi', Arial, sans-serif; font-weight: 700;
  font-size: 1rem; 
  padding: 0.5rem 1rem; 
  background: none; 
  border: none; 
  color: #fff; 
  cursor: pointer; 
  transition: background-color 0.2s, color 0.2s; 
}
.section .proj-btn:hover { background-color: #fff; color: #000; }

/* Section layout styling */
.section-layout {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 3rem;
}

.text-content {
  flex: 1;
  max-width: 50%;
}

/* Image gallery styling - right aligned with padding */
.image-gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 50%;
}

.gallery-item {
  width: 100%;
  margin-bottom: 1rem;
  text-align: right;
  padding-left: 20%; /* Creates space on the left, pushing content right */
}

.gallery-item img {
  width: 80%; /* Makes image take up only 80% of container width */
  height: auto;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s ease;
  display: inline-block; /* Helps with right alignment */
}

.gallery-item img:hover {
  border-color: #fff;
}

.gallery-item .caption {
  font-family: 'Cabinet Grotesk', Arial, sans-serif; font-weight: 500;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: right;
  padding-right: 00%; /* Aligns caption with the image */
}

/* Responsive styles */
@media (max-width: 768px) {
  .page { 
    flex-direction: column; 
    padding: 2rem; 
    overflow-y: auto;
    height: auto;
    position: relative;
  }
  
  .intro, .skills, .content { 
    max-width: 100%; 
    text-align: center; 
  }
  
  .skills span { 
    font-size: 1.5rem; 
  }
  
  .section-layout {
    flex-direction: column;
    gap: 2rem;
  }
  
  .text-content,
  .image-gallery {
    max-width: 100%;
  }
  
  .gallery-item {
    max-width: 100%;
    text-align: center;
    padding-left: 0;
  }
  
  .gallery-item img {
    width: 100%;
  }
  
  .gallery-item .caption {
    text-align: center;
    padding-right: 0;
  }
}
