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

*{ 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body { font-family: 'Poppins', sans-serif; }
html{ scroll-behavior: smooth; }
p{ color: rgb(85,85,85); }

/* Transition */
a, .btn{ transition: all 0.3s 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{ 
  text-decoration: none;
  color: black;
}
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; }  /* <-- removed stray '*' */

/* Hamburger menu (hidden on desktop) */
#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{
  height: 2px;
  width: 100%;
  background-color: black;
  transition: all 0.3s ease-in-out;
}

/* Dropdown panel */
.menu-links{
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content; 
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out; 
}
.menu-links.open{ max-height: 300px; }

.menu-links ul,
.menu-links li{ list-style: none; margin: 0; padding: 0; }

/* Correct selector: anchors inside menu */
.menu-links a{
  display: block;
  padding: 10px 16px; 
  text-align: center;
  font-size: 1.5rem; 
  color: black; 
  text-decoration: none;
}

/* Burger to X animation */
.hamburger-icon.open span:nth-child(1){
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-icon.open span:nth-child(2){
  opacity: 0;
}
.hamburger-icon.open span:nth-child(3){
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Sections */
section{
  padding-top: 4vh;
  min-height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
}
.section-container{ display: flex; } /* fixed 'displey' */

/* Profile */
#profile{ 
  display: flex;
  justify-content: center;
  gap: 5rem;
  min-height: 80vh;
}
.profile-info{
  align-self: center;
  text-align: center;
}
.profile-info 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: 2rem;
}
.btn{ 
  font-weight: 600;
  padding: 0.75rem;
  width: 7rem;
  border-radius: 2rem;
  text-align: center;
}
.btn-color-1, .btn-color-2{ 
  border: 0.1rem solid rgb(85,85,85);
  background: transparent;
  color: black;
}
.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
  color: white;
}
/* Distinct hover behaviors */
.btn-color-1:hover{ background-color: rgb(0,0,0); }
.btn-color-2:hover{ background-color: rgb(181,181,181); }

/* About section */
#about { position: relative; }

.about-containers {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

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

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

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

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

.section-container { 
  gap: 4rem; 
  display: flex ;
  align-items: center;
  justify-content: center;
}

.section__pic-container {
  flex: 0  0 350px;
  max-width: 350px;
  overflow: hidden;
  border-radius: 2rem;
}

/* Experience section */

/* Layout for the internships list */
.experience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-top: 1.5rem;
}

/* Override the global article width for experience cards */
.experience-card {
  width: 100%;
  max-width: 700px;        /* so they don’t get too wide */
  margin: 0 auto;          /* center the cards in their column */
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgb(230, 230, 230);
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Make sure the global article style doesn’t shrink these */
article.experience-card {
  width: 100% !important;
}

/* Icon + content */
.experience-icon-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.experience-card .icon {
  width: 24px;
  height: 24px;
}

.experience-content {
  line-height: 1.4;
}

.experience-content h3 {
  margin-bottom: 0.2rem;
}

.experience-meta {
  font-size: 0.9rem;
  color: rgb(120, 120, 120);
  margin-bottom: 0.4rem;
}

.experience-meta span {
  display: block;
}

.experience-dates {
  font-style: italic;
}

.experience-content ul {
  margin-left: 1.1rem;
  margin-top: 0.2rem;
}

/* Contact section */

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


