/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #FCF6E8;
  line-height: 1.6;
  overflow-x: hidden;
}

footer {
  background-color: #0742165c;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 2rem 10vw;
  font-size: 0.9rem;
}

footer li {
  list-style: none;
  display: inline-block;
}


/* Header and Nav Bar */
header {
  position: sticky;
  top: 2vh;
  z-index: 100;
  width: fit-content;
  margin: 0 auto;
  border-radius: 50px;
  height: 60px;
  background-color: #fcf6e8dd;
  box-shadow: 0 2px 4px #39111126;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.5rem;
  transition: box-shadow 0.3s ease;
}

header:hover {
  box-shadow: 0 4px 8px #39111133;
}

header nav {
  display: flex;
  align-items: center; 
  gap: 30px;
  height: 100%;
}

nav a {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: #2b2015;
  font-weight: 500;
  line-height: 1;
  padding: 0 0.25rem;
  transition: all 0.2s ease;
  position: relative;
}

nav a:hover {
  text-decoration: underline;
  font-weight: 600;
}


/* Typography */
h1, h2, h3 { margin-bottom: 1rem; color: #074216; }
h1 { font-size: clamp(36pt, 6vw, 54pt); line-height: 1.1; }
h2 { font-size: clamp(24pt, 4vw, 32pt); }
h3 { font-size: clamp(20pt, 3.5vw, 28pt); font-weight: normal; color: #074216; }
p, li { font-size: clamp(12pt, 1.5vw, 14pt); margin-bottom: 1rem; list-style: circle; color: #2b2015}
ul { padding-left: 30px; }
li { padding-left: 10px; }
a { color: #3A4D49; transition: all 0.2s ease; }
a:hover { font-weight: 500; }

/* Icons and Images*/
.icon {
  height: 40px;
  aspect-ratio: 1/1;
  background-color: #074216;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}
.icons {
  display: flex;
  flex-direction: row;
  gap: 10px
}

.icon:hover {
  box-shadow: 0 4px 8px #39111133;
  background-color: #0742165c;
}
.icon img{
  height: 24px;
}

.external-icon {
  height: 16px;
}

.intro-image {
  flex: 0 1 auto;
  width: 35rem;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0px 0px 10px #1E3231;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
  border-radius: 20px;
  border: 12px solid white;
}


/* Layout Sections */
section {
  min-height: calc(100vh - 60px);
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  position: relative;
  padding: 0 10vw;
  scroll-margin-top: 60px;
  box-sizing: border-box;
}

.intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50vw;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 10vh;
}

.text {
  align-content: center;
  flex: 1;
  min-width: 300px;
  min-height: 50vh;
  text-align: left;
}

.link-next {
  background-color: #074216;
  width: fit-content;
  padding: 10px 20px;
  border-radius: 100px;
}

.link-next a {
  text-decoration: none;
  color: #F9F6EE;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.link-next:hover {
  box-shadow: 0 4px 8px #39111133;
  background-color: #0742165c;
}


/* Projects and Folder Section */
.folder {
  width: 60vw;
  max-width: 900px;
  min-height: unset;
  background-color: #d9d6d6;
  border-radius: 0px 20px 20px 20px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
}

.tab {
  position: absolute;
  top: -50px;
  left: 0;
  width: 200px;
  height: 50px;
  background-color: #d9d6d6;
  border-radius: 20px 20px 0 0;
}

.folder-body {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: clamp(24px, 4vw, 50px);
  gap: clamp(20px, 4vw, 40px);
}

.project-photo {
  flex: 0 0 auto;
  width: clamp(220px, 26vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-color: white;
  overflow: hidden;
}

.project-photo:not(:has(img)) {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  border: 6px solid white;
}

.project-info {
  flex: 1 1 300px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.carousel {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 100vh;
}

.carousel > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 200ms opacity ease-in-out;
  transition-delay: 200ms;
}

.slide[data-active] {
  opacity: 1;
  z-index: 1;
  transition-delay: 0;
}

.carousel-button {
  height: fit-content;
  width: fit-content;
  position: absolute;
  background: none;
  border: none;
  font-size: 4rem;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #FCF6E8;
  cursor: pointer;
  border-radius: 1rem;
  padding: 0 .5rem;
  background-color: #0742165c;
}

.carousel-button:hover {
  color: white;
  background-color: #074216;
  box-shadow: 0 4px 8px #39111133;
}

.carousel-button.prev {
  left: 3rem;
}

.carousel-button.next {
  right: 3rem;
}

[data-slides] {
  list-style: none !important;
}

[data-slides] > li {
  list-style: none !important;
}

/* Animations */
section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 750px) {

  section#intro,
  section#aboutme {
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .icons {
    display: flex;
    justify-content: center;
  }

  .intro-text {
    width: 100%;
    margin-top: 0;
    align-items: center;
  }

  .intro-text .text {
    min-height: unset;
    text-align: center;
  }

  .intro-image {
    width: min(80vw, 300px);
    aspect-ratio: 1 / 1;
    flex: none;
  }

  .intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  .folder {
    width: 90vw;
    height: 70vh;
  }

  .folder-body {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 20px;
  }

  .project-photo {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1/1;
    flex: none;
  }

  .project-info {
    width: 100%;
    text-align: center;
  }
  .project-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .carousel {
    height: auto;
    padding: 5rem 0;
    padding-bottom: 6rem;
  }

  .carousel-button {
  position: fixed;
  bottom: 1.25rem;
  top: auto;
  transform: none;
  font-size: 2.4rem;
  z-index: 50;
  opacity: 0.95;
  }

  .carousel-button.prev {
    left: calc(50% - 3.5rem);
  }

  .carousel-button.next {
    left: calc(50% + 1rem);
  }

}