/*general*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Playfair", serif;
    font-optical-sizing: auto;
    color:#4D0801;
    
}

html{
    scroll-behavior: smooth;
}
p {
    color: #4D0801 (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;
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1000; /* stay on then other element*/
    background-color: #fff; /* background color */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* box shadow */
    margin-bottom: 20px;
    width: 100%;
} /* box nav */

.nav-links{
    gap: 2rem;
    list-style: none;
    font-size: 1.5rems;
}/* element or text iside nav */

a {
    color:#4D0801;
    text-decoration: none;
}

a:hover {
    color:#4A4A4A;
    text-decoration:underline;
    text-decoration-color: #4A4A4A ;
    text-underline-offset: 1rem;
}

.logo {
 font-size: 2rem;
}

.logo:hover {
    cursor: default;
} 

/* hamburger menu (for phone) to make it into line*/

#hamburger-nav {
    display: none;
    position: sticky;
}

.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:#4D0801; /* the color of the line*/
    transition: all 0.3s ease-in-out;
}
.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff; /* this one is the color of inside ham-menu */
    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: #4D0801; /* this on eis the color of text inside ham-menu */
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li {
    list-style: none;
}

/* this on called the one in javascript */

.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;
}

/* section */

section {
    padding-top: 4vh;
    /*height: 96vh; */
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
    margin-top: 7%;
    max-width: 100%;
    padding: 0 5%;
}

.section-container {
    display: flex;
}/* position for about me description
/* profile section */

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text p {
    font-weight: 600;
}

.section__text__p2 {
    font-size: 1.75;
    margin-bottom: 1rem;
    text-align: center;
}

.section__text__p1 {
    text-align: center;
}

.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;
} /* both buttons */

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1 {
    border: rgb(77, 8, 1) 0.1rem solid; /* border color #4D0801 */
}

.btn-color-2 {
    background: none;
    border: rgb(77, 8, 1) 0.1rem solid; /* border color #4D0801 */
    color: rgb(77, 8, 1); /* text color */
}

.btn-color-1:hover, .btn-color-2:hover{
   cursor: pointer;
}

.btn-color-1, .btn-color-2:hover {
    background:rgb(77, 8, 1);
    color:white; /* text color */
}


.btn-color-1:hover {
    background:rgb(74, 74, 74);
    border: rgb(74, 74,74);
}

.btn-color-2 {
    background: none;

}

.btn-color-2:hover {
    border: rgb(255,255,255) 0.1rem solid;
}

.btn-container {
    gap: 1rem;
}

/* for gap each sections */

/* about section */

#about {
    position: relative;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.about-details-container {
    justify-content: center;
    flex-direction:column;
}

.about-containers, .about-details-container {
    display: flex;
}

.about-pic {
    border-radius: 2rem;
}

.details-container {
    background: rgb(255,255,255); /* temporary background for visibility */
    padding: 0.5rem;
    flex: 0.8;
    /*border: 0.1rem solid rgb(77, 8, 1);
    margin-right: -80px;
    border-radius: 10px;*/ /*for border or ox on content */
    text-align: center;
}

.section-container{
    gap: 2rem;
    height: 80%;
    display: flex;
}

.section__pic-container{
    height: 400px;
    width: 400px;
    margin: auto 0;
}

/* experiences section */

.details-containers {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* ensure the container takes up the full width */
    margin-top: 30px; /* adjust this value to increase or decrease the space */
}

article {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 400px; /* control the width of each article */
    width: 100%; /* makes sure the article takes up the width defined by max-width */
    margin: 10px 30px; /* space around the article: top, right, bottom, left */
    flex-wrap: wrap; /* ensures content wraps inside the article if needed */
}

article img.icon {
    margin-right: 15px;
    width: 40px;
    height: 40px;
}

article div {
    display: flex;
    flex-direction: column;
}

.details-containers h2.experience-sub-title {
    text-align: center;
    margin-bottom: 10px; /* space between organizations and box */
    width: 100%; /* ensure the title spans the full width */
}

/* projects section */

.color-container {
    border-color: rgb(77, 8, 1);
    background: rgb(255,255,255);
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}

.project-title {
    margin: 1rem;
}

/* contacts section */

#contacts {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center; /* the box will be in the middle */
    height: 70vh;
    padding: 1rem;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(77, 8, 1) 0.1rem solid;
    border-color: #4D0801;
    background: rgb(255,255,255);
    margin: 2 auto;
    padding: 0.5rem;
    width: 80%; /* set width to control the box size */
    max-width: 400px; /* optional: set a maximum width */

}

.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;
    height: 2rem;
}

footer {
    height: 26vh;
}

footer p {
    text-align: center;
}