/* 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;
  border-radius: 50%;
  overflow: hidden;
}

.mypicture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.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;
}

.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 ME SECTION */
#about {
  padding: 3rem 0;
  max-width: 900px;
  margin: auto;
}

#about .section__text__p1,
#about .title {
  text-align: center;
}

.about-text {
  max-width: 840px;
  margin: 1.5rem auto 2rem;
}

.about-text p {
  text-align: justify;
  font-size: 1.06rem;
  line-height: 1.75;
  color: #444;
}

.about-text p + p {
  margin-top: 1.1rem;
}

.tech-stack-title {
  text-align: center;
  margin-bottom: 1.25rem;
}

.tech-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.tech-carousel .track {
  --icons-per-view: 8;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(
    (100% - (var(--icons-per-view) - 1) * 1rem) / var(--icons-per-view)
  );
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem;
}

.tech-carousel .track::-webkit-scrollbar {
  height: 8px;
}

.tech-carousel .track::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 999px;
}

.tech-carousel .item {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  cursor: grab;
  user-select: none;
  transition: transform 0.15s ease;
}

.tech-carousel .item:active {
  cursor: grabbing;
}

.tech-carousel .item:hover {
  transform: scale(1.1);
  box-shadow: none;
}

.tech-carousel .item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.tech-carousel .item span {
  font-size: 0.9rem;
  color: #333;
}

.tech-carousel .nav {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.tech-carousel .nav:hover {
  background: #f7f7f7;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6d6d6;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dots .dot.active {
  background: #333;
  transform: scale(1.15);
}

.tech-carousel .track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tech-carousel .track::-webkit-scrollbar {
  display: none;
}

/* PROJECTS SECTION */

#projects {
  padding: 3rem 0;
}

#projects .section__text__p1 {
  text-align: center;
  margin: 0 0 0.5rem 0;
}

#projects .title {
  text-align: center;
  margin: 0 0 1.75rem 0;
}

.experience-details-container {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}

.about-containers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.details-container {
  background: #fff;
  border: 1.5px solid #e7e7e7;
  border-radius: 22px;
  padding: 1.25rem 1.25rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.color-container {
  background: #fff;
}

.article-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f6f6;
  margin-bottom: 1.1rem;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-title {
  margin: 0.25rem 0 1.1rem;
  text-align: center;
  color: #0f0f0f;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.2;
}

.btn-container {
  margin-top: auto;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn.project-btn {
  background: #fff;
  border: 1.5px solid #d1d1d1;
  color: #111;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s;
  cursor: pointer;
}

.btn.project-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: #bdbdbd;
}

/* ARTICLES SECTION */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.page-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 1.25rem 2rem;
  align-items: start;
}

.article-main {
  min-width: 0;
}

#articles .title {
  text-align: center;
  margin-bottom: 2rem;
}

.article-title {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  color: #111;
  text-decoration: none;
}

.article-title:hover {
  text-decoration: none;
}

.article-sub {
  color: #4a4a4a;
  margin: 0.5rem 0 0.75rem;
  font-size: 1.05rem;
}

.article-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: #6b6b6b;
  font-size: 0.95rem;
}

.thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f2;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.thumb:hover img {
  transform: scale(1.03);
}

.divider {
  border: 0;
  border-top: 1px solid #e6e6e6;
  margin: 1rem 0;
}

.article-card:hover .article-title {
  text-decoration: none;
}

.read-more-wrapper {
  text-align: center;
  margin-top: 1.5rem; /* tighter spacing */
}

.read-more-wrapper .btn {
  text-decoration: none; /* make sure no underline */
}

/* 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;
}
