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


/* TRANSITIONS */
a,
.button {
    transition: all 300ms ease;
}

/* DESKTOP NAV */
nav,
.nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    /* align-items: center; */
    height: 4vh;
    margin-top: 2rem;
}

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

.name-logo {
    font-size: 2rem;
}

.name-logo:hover {
    cursor: default
}

/* HAMBURGER MENU */
#hamburger-nav {
    display: none;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background-color: white;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#hamburger-nav .hamburger-menu {
    display: flex;
    align-items: center;
    height: auto;
}


.menu-links {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 0 0 0.5rem 0.5rem;
}

.menu-links ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.menu-links a {
    display: block;
    padding: 1rem 2rem;
    text-align: left;
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.menu-links a:hover {
    background-color: #f0f0f0;
}

.menu-links.open {
    max-height: 500px; /* Adjust as needed */
}

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

.hamburger-icon span {
  width: 100%;
  height: 3px;                /* slightly thicker for better visibility */
  background-color: black;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;        /* soft rounded edges */
}

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

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);       /* optional: adds a collapsing effect */
}

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

/* END OF HAMBURGER MENU */

/* SECTIONS */
section {
    position: relative;
    padding-top: 4vh;
    padding-bottom: 6rem; /* ensure space for arrow buttons below content */
    height: 96vh;
    margin: 0 6rem; /* reduced from 10rem to tighten lateral spacing */
    box-sizing: border-box;
    min-height: fit-content;
}

body > section {
    margin-top: 0;
}

#hamburger-nav ~ section {
    margin-top: 7vh;
}

.section-container {
    display: flex;
}

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


.shape {
    border-radius: 50%;
    height: auto;
    width: 400px;
    object-fit: cover;
    object-position: center;
    border: 0.1rem solid rgb(6, 26, 77);
}



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


.section__text__p1 {
    text-align: center;
    font-size: 1.5rem;
}

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

.section__text__p3 {
    font-size: 2rem;
    font-weight: 400;
}

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

}

/* END OF ICONS */

/* BUTTONS */

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

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

/* ABOUT SECTION */

#about {
    position: relative;
    height: auto;
}

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

.section__medallion-pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow {
    position: absolute;
    right: 2rem;
    bottom: 1rem; /* sit 1rem above section bottom */
    display: block;
    width: 3rem;
    height: auto;
    max-height: 3rem;
    cursor: pointer;
    z-index: 5;
}

/* profile-specific placement remains the same (inherits absolute) */
#profile .arrow {
    margin: 0;
}

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

.company-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.company-logo {
    cursor: pointer;
}

.about-pic {
    border-radius: 2rem;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.section-container {
    gap: 4rem;
    height: auto;
    display: flex;
    align-items: flex-start;
}

#about .section__pic-container {
    height: auto;
    width: 400px;
    margin: 2rem 0 0 0;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
}

#about .about-details-container {
    flex: 1;
}

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

.text-container {
    text-align: justify;
}

.education-link,
.education-link:hover {
    color: inherit;
    text-decoration: none;
}

/* TOOLKIT SECTION */

#toolkit {
    overflow: visible; /* allow arrow to be visible */
    height: auto;
    padding-bottom: 6rem; /* reserve space for arrow */
}

/* Place toolkit arrow higher so it sits closer to the content */
#toolkit .arrow {
    bottom: 3rem;
}

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

.toolkit-details-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: nowrap; /* keep three columns side-by-side on most laptop widths */
    margin: 0 0.25rem; /* further reduce lateral spacing */
    padding: 0 0.25rem;
}

/* Align the visible edge of images toward the center for symmetric layout */
.project-details-right .image-container img {
    /* image on the right: align image to the left edge of its container */
    margin-left: 0;
    margin-right: auto;
    object-position: left center;
}
.project-details-left .image-container img {
    /* image on the left: align image to the right edge of its container */
    margin-left: auto;
    margin-right: 0;
    object-position: right center;
}

/* Hover image overlays (absolute) but follow the same object-position rules */
.project-details-right .image-container img.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}
.project-details-left .image-container img.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}

.article-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: initial;
    gap: 2rem;
    justify-items: start;
    margin-left: 0.5rem;
}

/* Reduce lateral margins for mid-size screens so toolkit fits at 125% scaling */
@media (max-width: 1400px) {
    section {
        margin: 0 4rem;
    }
    .toolkit-details-container {
        margin: 0 0.5rem;
        padding: 0 0.5rem;
        gap: 1rem;
    }
}

@media (max-width: 1200px) {
    section {
        margin: 0 2rem;
    }
}

article {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    align-items: center;
    text-wrap: wrap;
}

article .icon {
    cursor: default;
    width: 1.5rem;
    height: auto;
    flex-shrink: 0;
}


/* PROJECTS SECTION */
#projects {
    position: relative;
    height: auto; /*set initial height to auto*/
    margin-top: 0;
    /* padding-top: 1rem; */
    padding-top: 0;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.content h2 {
    transition: color 0.3s ease;
}

.project-link:hover {
    text-decoration: none;
}

.project-link:hover .content h2 {
    color: rgb(0, 102, 204);
    text-decoration: underline;
    text-underline-offset: 0.5rem;
}

.project-link:active .content h2 {
    color: rgb(0, 102, 204);
    text-decoration: underline;
    text-underline-offset: 0.5rem;
}

    
.all-projects-container {
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 5rem;
}
.project-container {
    display: block;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 2rem;
}
.project-details-left,
.project-details-right {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2rem;
}
.project-details-left {
    flex-direction: row-reverse;
}
.project-details-right {
    flex-direction: row;
}
.content {
    text-align: justify;
    flex: 1 1 56%;
    min-width: 240px;
}
.content p{
    margin-top: 1rem;
}
.image-container{
    padding-top: 1rem;
    padding-bottom: 1rem;
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 300px; /* reduced min-width to allow tighter layout */
    position: relative;
    height: 400px;
    overflow: hidden;
}

.image-container img{
    object-fit: contain;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}
.hover-image{
    opacity:0;
    transition: opacity 0.5s ease-in-out;
}
.image-container:hover .hover-image{
    opacity:1;

}

.image-container.show-hover .hover-image{
    opacity:1;
}

#projects .arrow{
    position: absolute;
    bottom: 10rem; /* raised a little more to sit closer to content */
    right: 2rem;
    margin: 0;
}





/* CONTACT */
#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: auto;
}

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

.email-icon {
    height: 2.5rem;
}

/* FOOTER SECTION */

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

footer p {
    text-align: center;
    margin-top: 5rem;
}

 