/* 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 ;
    background-color: skyblue;
  }

  html {
    scroll-behavior: smooth;
    background-color: lightgreen;
  }

  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: gray;
    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 {
    display: none;
     /* anchor the menu to the right side of the viewport near the profile section */
    position: fixed;
    top: 8vh; /* aligns with the profile area (adjustable) */
    right: 2rem;
    background-color: #ffffff;
    width: auto;
    max-height: 0;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
    opacity: 0;
    visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    padding: 0.25rem 0;
}

.menu-links a {
    display: block;
    padding: 0.5rem 1.25rem;
    text-align: left;
    font-size: 1.25rem;
    color: black;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

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

.menu-links.open {
    display: flex;
    flex-direction: column;
    max-height: 400px;
    opacity: 1;
    visibility: visible;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

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

/* SECTIONS */

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

.section-container {
    display: flex;
}

/* PROFILE SECTION */

#profile {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 2rem;
    min-height: fit-content;
}

.profile-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-image {
    flex: 0 1 350px;
    max-width: 350px;
    width: 100%;
}

..profile-info {
    flex: 1 1 400px;
    min-width: 280px;
}

.about-text-box,
.profile-text-box {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.about-text-box p,
.profile-text-box p {
    line-height: 1.75;
    color: #333;
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1.5rem;
}

.section__pic-container {
    display: flex;
    height: clamp(250px, 28vw, 400px);
    width: clamp(250px, 28vw, 400px);
    margin: 0 auto;
}

.section__pic-container img {
    width: 70%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
}

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

.section-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

.section-card h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #1f2937;
}

.section-card p {
    line-height: 1.7;
    font-size: 1rem;
}

/* About Us image */
.about-image {
    display: block;
    overflow: hidden;
}
.about-image img {
    float: left;
    width: 40%;
    max-width: 320px;
    min-width: 180px;
    height: auto;
    margin: 0 1.25rem 1rem 0;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    object-fit: cover;
    display: block;
}

.contact-list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-list li {
    color: rgb(85, 85, 85);
}

/* ICONS */

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

/* BUTTONS */

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

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

/* Responsive: show hamburger on small screens */
@media (max-width: 900px) {
    #desktop-nav { display: none; }
    #hamburger-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; }
    section { margin: 0 1.5rem; }
    /* move the fixed menu down slightly on small screens */
    .menu-links { top: 12vh; right: 1rem; }
    #profile { flex-direction: column; gap: 1rem; align-items: center; }
    .section__pic-container { margin: 0; }
    .section__text { text-align: center; }
    .about-image img {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1rem 0;
    }
}