@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&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 navbar */

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: darkgreen;
    text-decoration: bold;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(101,101,101);
}

.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.3s 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.3s 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.3s 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:nth-child(2) {
    opacity: 1;
}

.hamburger-icon span:last-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-pic-container img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
    border: 4px solid #222;
    gap:0.8rem;
    margin-top: 1rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.section-text{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:0.8rem;
}

.section-text p{
    font-weight: 600;
}

.section-text-p1{
    text-align: center;
}

.section-text-p1{
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.section-text-p2{
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

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

.title{
    font-size: 3rem;
    text-align: center;
}

#social-container{
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 1rem;
}

/* Icons */

.icon{
    height: 2rem;
    width: 2rem;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.icon:hover{
    transform: scale(1.15);
}

/* school icons */

.school-icon{
    height: 7rem;
    width: 7rem;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.school-icon:hover{
    transform: scale(1.15);
}

/* coding icons */

.coding-icon{
    height: 4rem;
    width: 4rem;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.coding-icon:hover{
    transform: scale(1.15);
}

/* Buttons */

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

.btn{
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-colour-1, .btn-colour-2{
    border: rgb(53,53,53) 0.1rem solid;
}

.btn-colour-1:hover, .btn-colour-2:hover{
    cursor: pointer;
}

.btn-colour-1, .btn-colour-2:hover{
    background: black;
    color: white;
}

.btn-colour-2{
    background: none;
}

.btn-colour-2:hover{
    border: white 0.1rem solid;
}

.btn-container{
    gap: 1rem;
}

/* About section */

#about{
    position: relative;
}

.about-container{
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

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

.about-container, .about-details-container{
    display: flex;
}


.about-pic{
    border-radius: 2rem;
}

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

.section-pic-container-2 img{
    width:100%;
    height:80%;
    object-fit:cover;
    border: 4px solid #222;
    gap:0.8rem;
    margin-top: 1rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Experience Section */

#experience{
    position: relative;
}

.experience-subtitle{
    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;
    border: 1px solid black;
    border-radius: 2rem;
    padding: 2rem;
    margin: 1.5rem 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.experience-details-container:hover{
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

.article-container{
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

article{
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
}

article .icon{
    cursor: default;
}

/* open source segment */

.opensource-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.opensource-card {
    display: flex;
    align-items: center;
    gap: 2rem;

    width: 70%;
    padding: 2rem;

    border: 1px solid rgb(163, 163, 163);
    border-radius: 2rem;

    background: white;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    transition: all 0.3s ease;
}

.opensource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.opensource-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.opensource-content {
    flex: 1;
}

.opensource-content h2 {
    margin-bottom: 0.8rem;
}

.opensource-content p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

/* contact */

#contact{
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
}

.contact-info-upper{
    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 solid;
    padding: 0.5rem;
}

.contact-info-upper p{
    font-size: larger;
}

.contact-icon{
    cursor: default;
}

.email-icon{
    height: 2.5rem;
}