/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.rotating-words-wrap {
  position: relative;
  display: inline-block;
  height: 1.75em;
  width: 13ch;
  overflow: hidden;
  vertical-align: bottom;
}

.rotating-word {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1.75em;
  will-change: opacity;
}

.rotating-word.active {
  opacity: 1;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

/* About section – image carousel */
.about-carousel-wrap {
  width: 414px;
  height: 400px;
  flex-shrink: 0;
  margin: auto 0;
}

.about-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 0.15rem solid rgb(230, 230, 230);
}

.about-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.about-carousel-slide {
  flex: 0 0 400px;
  width: 400px;
  height: 100%;
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.about-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

.about-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: rgb(53, 53, 53);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.about-carousel-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.08);
}

.about-carousel-prev {
  left: 0.5rem;
}

.about-carousel-next {
  right: 0.5rem;
}

.about-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}

.about-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 0.15rem solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.about-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

.about-carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}


/* EXPERIENCE SECTION */

#experience {
  position: relative;
  height: auto;
  min-height: 96vh;
  padding-bottom: 6rem;
}

.experience-stacked {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.experience-block {
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  padding: 1.75rem 2rem;
}

.experience-block-title {
  color: rgb(53, 53, 53);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.15rem solid rgb(200, 200, 200);
}

/* Languages – experience bars */
.language-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.language-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
}

.language-bar-wrap {
  background: rgb(230, 230, 230);
  border-radius: 0.5rem;
  height: 1.25rem;
  overflow: hidden;
  min-width: 0;
}

.language-bar {
  height: 100%;
  border-radius: 0.5rem;
  transition: width 0.5s ease;
}

.language-python { background: linear-gradient(90deg, #3776ab, #ffd43b); }
.language-java { background: linear-gradient(90deg, #ed8b00, #ffffff); }
.language-html { background: linear-gradient(90deg, #e34f26, #f06529); }
.language-cpp { background: linear-gradient(90deg, #00599c, #659ad2); }
.language-css { background: linear-gradient(90deg, #264de4, #2965f1); }

.language-name {
  font-weight: 500;
  color: rgb(53, 53, 53);
  min-width: 4rem;
}

.language-years {
  font-size: 0.9rem;
  color: rgb(85, 85, 85);
  min-width: 4.5rem;
  text-align: right;
}

/* Frameworks – colored bubbles */
.tech-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-bubble {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #4a6fa5, #2d4a6f);
}

.tech-bubble:nth-child(2n) { background: linear-gradient(135deg, #5a9c6a, #2d6b3d); }
.tech-bubble:nth-child(3n) { background: linear-gradient(135deg, #c17a4a, #8b5a2b); }
.tech-bubble:nth-child(4n) { background: linear-gradient(135deg, #7b68a5, #4a3d6b); }
.tech-bubble:nth-child(5n) { background: linear-gradient(135deg, #c75a6a, #8b3a4a); }

/* Work experience */
.work-entries {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.work-entry {
  padding-bottom: 1.75rem;
  border-bottom: 0.1rem solid rgb(220, 220, 220);
}

.work-entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.work-entry-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.work-org-logo {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  border-radius: 0.5rem;
  flex-shrink: 0;
  background: rgb(248, 248, 248);
  padding: 0.2rem;
}

.work-entry-meta {
  flex: 1;
  min-width: 0;
}

.work-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgb(30, 30, 30);
  margin-bottom: 0.2rem;
}

.work-org {
  font-size: 0.95rem;
  color: rgb(85, 85, 85);
  margin-bottom: 0.2rem;
}

.work-dates-loc {
  font-size: 0.85rem;
  color: rgb(120, 120, 120);
}

.work-subprojects {
  margin-top: 0.75rem;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 0.15rem solid rgb(200, 200, 200);
}

.work-subproject {
  margin-bottom: 1rem;
}

.work-subproject:last-child {
  margin-bottom: 0;
}

.work-subproject-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.work-client-logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  border-radius: 0.35rem;
  flex-shrink: 0;
  background: rgb(248, 248, 248);
  padding: 0.15rem;
}

.work-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(53, 53, 53);
  margin-bottom: 0.2rem;
}

.work-sub-dates {
  font-size: 0.85rem;
  color: rgb(120, 120, 120);
  margin-bottom: 0.4rem;
}

.work-bullets {
  margin: 0;
  padding-left: 1.25rem;
  color: rgb(85, 85, 85);
  font-size: 0.9rem;
  line-height: 1.5;
}

.work-bullets li {
  margin-bottom: 0.35rem;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
  object-fit: cover;
}

.project-img-screenshot {
  height: auto;
  max-height: 22rem;
  object-fit: contain;
  background: rgb(18, 18, 18);
}

#projects .about-containers {
  flex-wrap: wrap;
  justify-content: center;
}

#projects .details-container {
  flex: 1 1 280px;
  max-width: 400px;
}

.project-title {
  margin: 1rem 1rem 0.25rem;
  color: black;
}

.project-year {
  font-size: 0.9rem;
  color: rgb(85, 85, 85);
  margin: 0 1rem 0.25rem;
}

.project-achievement {
  margin: 0 1rem 0.75rem;
  font-size: 0.9rem;
  color: rgb(48, 105, 78);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-achievement a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-achievement a:hover {
  color: rgb(30, 80, 55);
}

#projects .btn-container {
  margin-top: 0.5rem;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

.project-resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 12rem;
  text-decoration: none;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}
