* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body{
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    background-color: #F9FAFB;
    /* color: #333 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}




/* NAVIGATION BAR - PORTOFOLIO */
nav {       /* Navigation  bars of the program: */
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    background: transparent;
    z-index: 1000;
    color: grey;
}

nav.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

nav.nav-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Glassmorphism effect on hover */
nav ul:hover {
    backdrop-filter: blur(20px);
}

nav ul {    /* center the rows */
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 1.3rem 0;
    border-radius: 40px;  
    background-color: rgba(255, 255, 255, .6);
}

nav li {    /* Space between the objects */
    margin: 0 1rem;
    position: relative;
}

nav a {     /* link of each item */
    padding: .8rem 1rem;
    text-decoration: none;
    display: center;
    text-align: center;
    font-size: 1.5rem; 
    border-radius: 40px;
    font-weight: bold;
    color: black;
    transition: background-color 0.4s ease;
}

nav a:hover { 
    background-color: rgba(255, 255, 255, .63);
}

nav li.active::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    z-index: 1;
}

nav li.active a {
    color: #111;
    font-weight: bold;
}










/* SECTIONS : Home - PORTOFOLIO */
.section {
    min-height: 100vh;
    display: flex;
}

#home {
    margin-bottom: 2rem;
    flex-wrap: wrap;

    display: flex;
    background-image: url(../images/pain-build.jpg);
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
    justify-content: center;

    flex-direction: row;
    padding: 7rem;
    gap: 5rem;
    color: black;
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 00); 
    z-index: 1;
}

#home > * {
    position: relative;
    z-index: 2;
}

#profile-img img {
    object-fit: cover; 
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

#profile-img img:hover {
    transform: scale(1.07);
}

.introduction h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    align-items: center;
    justify-content: center;
    display: flex;
    font-weight: bold;
    color: black;    
}

.introduction h3 {
    font-size: 2rem; 
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: black;

}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    display: flex;
    justify-content: center;
    align-items:center;
    gap: 3rem;
}

.social-links a{
    background:#ffffffcc;
    padding:0.5rem 1.2rem;
    border-radius:2rem;
    font-weight:600;
    font-weight: bold;
    color:#111;
    text-decoration:none;
    gap:0.5rem;
    transition:background 0.25s ease;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: bold;
}

.social-icon img{
    width: 40px;
    height: 40px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.social-icon img:hover {
    transform: scale(1.1);
}

.social-links :hover {
    background-color: #444;
    transform: scale(1.2)
}








/* SECTIONS : Project - PORTOFOLIO */
#project {
    display: flex;
    gap: 3rem;
}

.project-heading {
    position: relative;
    text-align: 2vh 0 0 5vw;
    padding-top: 4%;
    padding-left: 5%;
    font-size: 5rem;
    font-weight: bolder;
    margin-bottom: 2rem;
}

.project-list {
    padding-top: 8%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-right: 2%;
    margin: 0 auto;
}

.project-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.9);

    padding: 2rem;
    max-width: 100%;
    max-height: 100%; /**/
    height: 480px;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    gap: 2rem;
}

.project-card img:hover {
    transform: scale(1.02);
}

.project-image {
    flex: 0 0 40%;
    width: 40%;
    height: 100%;
    object-fit: contain;
    object-position: center;

    border-radius: 1rem;
    object-fit: cover;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    height: 100%;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: black;
}

.project-info p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

.project-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;

    display: inline-block;
    margin-right: 1rem;
    padding: 0.5rem 1.2rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: bold;
    transition: background-color 0.4s ease;
}

.project-links a:hover {
    background-color: #444;
    transform: scale(1.1)
}


.tools-used {
    font-weight: bold;
    color: #007acc;
}







/* EXPERIENCE : HUB - PORTOFOLIO */
#experience {
    padding: 5rem 5vw;
    flex-direction: column;
}

.experience-heading {
    font-size: 5rem;
    text-align: left;
    padding-top: .7rem;
    padding-left: 3%;
    font-size: 5rem;
    font-weight: bolder;
}

.experience-list {
    flex-direction: column;
    align-items: center;
    justify-content: left;
    padding-top: 1rem;
    display: flex;
    gap: 1.5rem;
    width: 102.5%;
}

.experience-card {
    display: flex;
    flex-direction: row;
    align-items: stretch; /* Changed from center to stretch */
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.9);
    width: 100%;
    box-sizing: border-box;

    padding: 2rem;
    max-width: 100%;
    height: 400px; /* Fixed height for all cards */
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    background-size: cover;
    background-position: center;
    position: relative;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3); /* Light overlay */
    z-index: 1;
}

.experience-card > *{
    position: relative;
    z-index: 2;
}

.experience-card:hover {
    transform: scale(1.004)
}

.experience-card img {
    flex: 0 0 30%; 
    max-width: 30%; 
    min-width: 250px; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
    margin-left: 2rem; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.experience-card img:hover {
    transform: scale(1.02); 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); 
}

/* EXPERIENCE: Jobs*/
.job-title {
    font-size: 2rem;
    padding-left: 2%;
    text-decoration: underline;
    font-weight: bold;
    border-left: 4px solid red;
    margin-bottom: 1rem; /* Added margin */
}

.job-title:hover {
    border-left: 3px red;
    border-left: 6px solid red;
}

.job-description {
    font-size: large;
    font-size: 200%;
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    height: 100%;
    overflow: hidden; 
}

.company-details {
    padding-top: 0%;
    display: flex;
    flex-direction: row;
    font-weight: bolder;
    justify-content: space-between; 
    align-items: flex-start;
    margin-bottom: 1rem; 
    width: 100%; 
}

.company-name {
    flex: 1; /* Take available space */
}

.comapany-date {
    flex-shrink: 0; 
    text-align: right;
    min-width: fit-content; 
}

.job-description ul{
    padding-left: 50px;
    font-size: 60%;
    flex: 1; 
    overflow-y: auto; 
}

.bullet-exp {
    font-size: 0.9rem; 
    line-height: 1.4;
    margin-bottom: 0.5rem;
}





/* EXPERIENCE    : GOFUNDME - Background Images for the cards */
#card-image1 {
    background-image: url();
}
#card-image2 {
    background-image: url();
}
#card-image3 {
    background-image: url();
}
#card-image4 {
    background-image: url();
}






/* EDUCATION : GOFUNDME - PORTOFOLIO */
#education {
    padding: 5rem 5vw;
    flex-direction: column;
}

.experience-title{
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    padding: 0 5vw;
}






/* EDUCATION : HUB - PORTOFOLIO */
#education {
    padding: 4rem 0;
    display: flex;
    flex-direction: column;

    border-bottom: 1px solid #bfbfbf;
}

.education-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    padding: 0 5vw;
    text-align: right;
    padding-top: 1rem;
    font-size: 5rem;
    align-items: right;
    font-weight: bolder;
}

.education-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.education-card {
    border-radius: black;
    box-sizing: border-box;
    text-align: left;
    max-width: 900px;
    width: 100%;
    padding: 2rem 5vw; 
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.9); 
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.school-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.date {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; 
    font-size: 1.2rem;
    margin-bottom: 1rem;
    width: 100%; 
}

.date p:first-child {
    flex: 1; 
}

.date p:last-child {
    flex-shrink: 0; 
    text-align: right; 
    font-weight: bold; 
    min-width: fit-content; 
}

.education-details{
    list-style-type: disc;
    padding-left: 1.5rem;
    line-height: 1.6;
    text-align: left;
    display: block; 
}





/* CONTACT: END - PORTOFOLIO */
#contact {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 0%;
    font-family: 'Georgia', serif;
    font-size: x-large;
    gap: .8rem;
    box-sizing: border-box;

    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#contact p {
    width: 100%;
    text-align: center;
    max-width: fit-content;
}

.contact-info {
    margin: 0.25rem;
}

.contact-info h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
    align-items: center;
}

.contact-info p a{
    color: #007acc;
    margin: 0.25rem 0;
    text-decoration: none;
}