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

.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;
  width: 2rem;
  display: inline-block;
}

/* BUTTONS */

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

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 0.75rem 1.25rem;
  min-width: 12rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.btn-color-1 {
  background-color: #d0aa92; /* brand beige */
  color: #302d2c;            /* dark text */
  border: 0.1rem solid #d0aa92;
}
.btn-color-1:hover {
  background-color: #302d2c; /* charcoal */
  color: #ffffff;
  border-color: #302d2c;
}
.btn-color-2 {
  background: transparent;
  color: #302d2c;
  border: 0.1rem solid #302d2c;
}
.btn-color-2:hover {
  background: #302d2c;
  color: #ffffff;
  border-color: #302d2c;
}

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

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

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

.experience-details-container .about-containers {
  display: flex;
  flex-direction: column;   /* stack cards vertically */
  gap: 2rem;
  align-items: center;      /* center cards horizontally */
  justify-content: flex-start;
}

.experience-details-container .details-container {
  width: 100%;
  max-width: 900px;   /* extend card width */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 2rem;
  margin: 0;                /* spacing handled by parent gap */
  background: #fff;
  border: 1px solid #E5E7EB; /* light gray */
  border-radius: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Role/company heading */
.experience-details-container .details-container .experience-sub-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin: 0 0 1rem 0;
}

/* Bullet list container */
.experience-details-container .details-container .article-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Individual bullet rows */
.experience-details-container .details-container .article-container article {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;                 /* reset previous margins */
  width: 100%;               /* override earlier fixed width */
}

.experience-details-container .details-container .article-container article .icon {
  height: 1.25rem;
  width: 1.25rem;
  flex: 0 0 1.25rem;
  margin-top: 0.2rem;        /* align with heading text */
}

.experience-details-container .details-container .article-container article h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.experience-details-container .details-container .article-container article p {
  font-size: 0.9rem;
  margin: 0;
  color: #4B5563;            /* neutral-600 */
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .experience-details-container .details-container {
    max-width: 860px;
  }
}
@media (max-width: 640px) {
  section {
    margin: 0 1.5rem;
  }
  .experience-details-container .details-container {
    padding: 1.5rem;
    min-width: 100%;
    max-width: 100%;
  }
}

/* ==== Contact Section Cards ==== */
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 60vh;
}

.contact-info-upper-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;               /* stack on small screens */
  padding: 2rem;
  margin: 2rem auto;
  max-width: 700px;
  background: #f9f9f9;
  border: 1px solid #E5E7EB;
  border-radius: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #E5E7EB;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  min-width: 260px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.contact-info-container p,
.contact-info-container a {
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
}

.contact-info-container a:hover {
  text-decoration: underline;
  color: #302d2c; /* brand dark */
}

.contact-icon {
  height: 1.5rem;
  width: 1.5rem;
}

/* ==== Spacing Fixes: Contact + Footer ==== */
/* Override the global section height for the contact section so it shrinks to content */
#contact {
  height: auto;            /* don't force 96vh */
  min-height: unset;
  padding-top: 1.5rem;     /* tighter top space */
  padding-bottom: 1.5rem;  /* tighter bottom space */
  margin-bottom: 0;
}

/* Tighten the wrapper card spacing */
.contact-info-upper-container {
  margin: 1rem auto;       /* was 2rem */
  padding: 1.5rem;         /* was 2rem */
  gap: 1.25rem;            /* slightly tighter gap */
}

/* Slightly tighter individual contact chips */
.contact-info-container {
  padding: 0.75rem 1.25rem; /* was 1rem 1.5rem */
  min-width: 240px;         /* was 260px */
}

/* Footer normalization so it hugs content instead of taking viewport height */
footer {
  width: 100%;
  height: auto;            /* remove fixed vh */
  margin-top: 0.5rem;
  padding: 1rem 0;
}
footer p {
  text-align: center;
  margin: 0.25rem 0 0;
}


/* ==== Education with logos ==== */
.edu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: left;
}
.edu-item a {
  color: #111827;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,0,0,0.25);
}
.edu-item a:hover { 
  text-decoration: none;
  border-bottom-color: #302d2c;
}
.edu-logo {
  height: 28px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
/* ==== Education Section Compact Fix ==== */
#education {
  height: auto;          /* shrink to fit content */
  min-height: unset;
  padding: 2rem 0;       /* balanced vertical spacing */
}
#education .education-container {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
#education .details-container {
  max-width: 900px;
  padding: 1.5rem 2rem;
  text-align: left;
}
.edu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.edu-logo {
  height: 32px;
  width: auto;
}

/* ==== Education content alignment tweaks ==== */
.edu-item {
  align-items: center;       /* ensure logos and text align on the middle */
  gap: 0.75rem;
}
.edu-item span {
  display: inline-flex;
  align-items: baseline;     /* keep degree + college on one baseline */
  gap: 0.25rem;
  flex-wrap: wrap;
}
.edu-item a {
  text-decoration: none;     /* remove dashed underline */
  border-bottom: none;
}
.edu-item a:hover {
  text-decoration: underline; /* simple, clean hover */
}
.edu-logo {
  height: 32px;              /* consistent logo height */
  width: auto;
}