/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    background: #1e1e1e;
    color: white;
    font-family: monospace, 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    overflow-y: scroll;
}

a {
    transition: color 0.3s ease, border 0.3s ease;
}

/* Navigation */
nav {
    margin-top: 1em;
    padding: 1em 0;
    text-align: center;
    flex: 0 0 10%;
   
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 1em;
    line-height: 3em;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 0.5em;
    font-size: 1.5em;
    font-weight: bold;
}

nav ul li a:hover {
    color: gray;
}



/* Main content */
.main-content {
    border: 5px solid white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 1em;
    margin: 1em auto;
    min-height: 70vh;
    width: 90%;
    flex: 1 0 auto;
    position: relative;
    overflow-y: auto;
}

/* Bio Section */
.name-bio {
    width: 55%;
    margin-bottom: auto;
}

.name-bio h1 {
    font-size: 3em;
}

.name-bio p {
    font-size: 1.5em;
}

/* Resume & Social Links */
.my-links {
    position: absolute;
    bottom: 1em;
    left: 1em;
    width: fit-content;
}

.my-resume,
.my-email {
    display: flex;
    margin-bottom: 1em;
    justify-content: flex-start;
}

.my-resume a,
.my-email a {
    font-size: 1.5em;
    text-decoration: none;
    color: white;
    font-weight: bold;
    border: 2px solid white;
    padding: 0.5em;
}

.my-resume a:hover,
.my-email a:hover {
    color: gray;
    border: 2px solid gray;
}

.social-links {
    display: flex;
    gap: 1em;
    justify-content: flex-start;
}

.social-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    border: 2px solid white;
    padding: 2px;
}

.social-links a:hover {
    border: 2px solid gray;
    color: gray;
}

/* Profile Image */
.profile-image {
    position: absolute;
    bottom: -1em;
    right: -2.5em;
    width: 35%;
}

.profile-image img {
    width: 100%;
    max-width: 400px;
    object-fit: cover;
    height: auto;
    display: block;
}

/*Work Section*/
/* Work Section */
.my-works {
  padding: 2rem;
}

.my-works h1 {
  font-size: 3em;
  margin-bottom: 1.5rem;
  color: white;
}

/* Container that wraps all projects */
.my-works > div {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Each project card */
.my-projects {
  flex: 1 1 300px; /* Allow it to shrink/grow with a base width */
  max-width: 400px;
  background-color: black;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.my-projects p {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: white;
}


.my-projects a {
    text-decoration: none;
}

.my-projects p:hover {
    color: gray;
}

.my-projects img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

/*Skills Section*/
.my-skills,
.my-education {
    color: #fff;
    padding: 2rem;
    border-radius: 10px;
}

.my-skills h1,
.my-education h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.skill,
.education {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.skill p,
.education p {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 1.5rem;
}

.skill img,
.education img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 5px;
}

.education a {
    color: white;
    text-decoration: none;
}

.education a:hover {
    color: gray;
}



/* Footer */
footer {
    color: lightgray;
    text-align: center;
    padding: 1em 0;
    flex: 0 0 10%;
}

.my-associations {
    padding: 2rem;
    text-align: center;
}

.my-associations h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.my-associations .association {
    display: inline-block;
    margin: 0 1rem;
}

.my-associations .association img {
    width: 50px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.my-associations .association img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


/* Responsive Design */
@media (max-width: 800px) {

    body {
        justify-content: center;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-content {
        flex-direction: column;
        align-items: center;
        width: 90%;
        padding: 1em;
        margin: 1em 0;
    }

    .name-bio,
    .my-links,
    .profile-image {
        width: 100%;
        position: static;
        margin-bottom: 1em;
        text-align: center;
    }

    .my-resume,
    .my-email,
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-image img {
        max-width: 90%;
    }

    .name-bio h1,
    .my-skills h1,
    .my-works h1,
    .my-education h1 {
        font-size: 2.2em;
        text-align: center;
    }

    .name-bio p,
    .my-resume a,
    .my-email a,
    .my-works p,
    .my-skills p,
    .my-education p {
        font-size: 1.2em;
    }

    .my-works {
        justify-content: center;
    }
    
    footer {
        padding: 0.5em;
        font-size: 0.9em;
    }
}