@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --transition: all 0.3s ease;
}


html,body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: black;
}

img {
    max-width:100%;}

.container{
    align-items: center;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}


                            /* -------------------------------- NAV BAR  ------------------------*/

#nav {
    font-family: 'Inter', sans-serif;
    top: 0;
    right: 0;
    left: 0;
    position: fixed;
    z-index: 1030;
    padding: 1rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: var(--transition);
}

#nav > .container{
    display: flex;
    padding-right: 50px;
    padding-left: 50px;
    width: initial;
}

#name{
    width: 100%;
    padding: 14px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    text-rendering: optimizeLegibility;
}

#menu{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    font-size: 14px;
    justify-content: flex-end;
    list-style-type: none; /* Removes the list points */
}

#menu a:hover:not(:first-child){
    background-color: var(--menu-hover);
    color: var(--text-primary);
}

#menu .icon {
    display: none;
  }

.menu-item{
    padding:14px;
}


                            /* --------------------------- ABOUT ME ------------------------------- */

#aboutme {
    background-color: var(--bg-primary);
    padding: 80px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.row{
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    justify-content: center;
}

.aboutmeColumn{
    position: relative;
    flex-direction: column;
    padding-left: 30px;
    padding-right: 30px;
}

/* ------- ABOUT ME LEFT --------- */

#aboutmeLeft{
    padding-bottom: 20px;
}

#info{
    padding-bottom: 10px;
}

.avatar{
    width: 300px;
    height: 300px;
    padding-top: 50px;
}

#social{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.socialIcons {
    width: 45px;
    height: 45px;
    padding: 8px;
    margin: 0 8px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    transition: var(--transition);
}

.socialIcons:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    filter: brightness(1.1);
}

#myImage {
    display: flex;
    justify-content: center;
}

#info > h1,
#info > h2,
#info > h3,
#info > h4 {
    color: var(--text-primary);
    text-align: center;
}

/* ------- ABOUT ME RIGHT --------- */

#ToolsIcons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tools {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
}

.tools:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.toolsIcons {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.tools:hover .toolsIcons {
    transform: scale(1.1);
}

.tools p {
    margin: 0;
    font-weight: 500;
    color: var(--text-primary);
}

#biography > h2,
#biography > h1
{
    margin-top: 0%;
}

                /* --------------------------------- PROJECTS --------------------------------- */

#projects {
    background-color: var(--bg-secondary);
    padding: 80px 80px;
    min-height: 100vh;
}

#projects {
    text-align: center;
}

#ProjectsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 1rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.Project {
    display: flex;
    flex-direction: column;
    text-align: left;
    background-color: var(--bg-primary);
    word-wrap: break-word;
    height: 100%;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.Project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.Project > img {
    max-width: min(200px, 90%);
    height: auto;
    align-self: center;
    object-fit: contain;
    transition: var(--transition);
}

@media screen and (max-width: 1200px) {
    .Project > img {
        max-width: min(180px, 85%);
    }
}

@media screen and (max-width: 768px) {
    .Project > img {
        max-width: min(150px, 80%);
    }
}

.Project > h3 {
    font-size: 1.3em;
    margin-right: 5%;
    margin-left: 5%;
}

.Project > p {
    margin-right: 5%;
    margin-left: 5%;
}

.ProjectButtons {
    padding: 1rem 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    height: 100%;
    flex-wrap: nowrap;
}

.ProjectButtons > .githubButton {
    align-self: flex-end;
}



                /* --------------------------------- CONTACT --------------------------------- */

#contact {
    background-color: var(--bg-primary);
    padding: 80px 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

label {
    color: #98a6ad;
}

.flex-outer,
.flex-inner {
  list-style-type: none;
  padding: 0;
}

.flex-outer {
  max-width: 800px;
  margin: 0 auto;
}

.flex-outer li,
.flex-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.flex-inner {
  padding: 0 8px;
  justify-content: space-between;  
}

.flex-outer > li:not(:last-child) {
  margin-bottom: 20px;
}

.flex-outer li label,
.flex-outer li p {
  padding: 8px;
  font-weight: 300;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.flex-outer > li > label,
.flex-outer li p {
  max-width: 220px;
}

.flex-outer > li > label + *,
.flex-inner {
  width: 100%;
}

.flex-outer li p {
  margin: 0;
}

.flex-outer li input:not([type='checkbox']),
.flex-outer li textarea {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background-color: var(--bg-secondary);
    transition: var(--transition);
}

.flex-outer li input:focus,
.flex-outer li textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.flex-outer li button {
    margin-left: initial;
    padding: 1rem 2rem;
    border: none;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.flex-outer li button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flex-inner li {
  width: 100px;
}

.flex-outer > li:last-child {
    display: flex;
    justify-content: center;
}



                /* --------------------------------- FOOT --------------------------------- */


#foot{
    background-color: var(--bg-secondary);
    padding: 20px;
}

#foot > .container{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.returnTOP {
    height: 60px;
    width: 60px;
}


 /* --------------------------------- Mobile --------------------------------- */

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    #nav > .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    #menu {
        display: none;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    #menu.responsive {
        display: flex;
        flex-direction: column;
        background-color: var(--bg-primary);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        animation: slideDown 0.3s ease-in-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #menu .icon {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
        font-size: 1.5rem;
    }

    .menu-item {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    #aboutme {
        padding: 100px 20px;
    }

    #biography {
        text-align: center;
    }

    #tools {
        text-align: center;
    }

    #ToolsIcons {
        justify-content: center;
    }

    .tools p {
        text-align: center;
    }

    #ProjectsContainer {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .Project {
        text-align: center;
    }

    .tools {
        padding: 1rem;
    }

    .socialIcons {
        width: 35px;
        height: 35px;
        padding: 6px;
        margin: 0 6px;
    }
}


/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 650px) {
    #menu a {display: none;}
     #menu a.icon {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
  }
  
  /* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
  @media screen and (max-width: 650px) {
    #nav > .container { padding-top: 10px;}
    #menu.responsive {display: flex; flex-direction: column;}
    .menu-item {
        display: flex;
        justify-content: flex-start;
    }
    #menu.responsive a{
        display: flex;
        justify-content: center;
        padding-left: 0%;
    }

    .Project{
        width: 100%;
    }

    .ProjectButtons {
        padding: 0.5rem 0;
        margin: 5%;
    }

    .ProjectButtons a {
        font-size: 0.9rem;
    }
  }





 /* --------------------------------- PROJECTS PAGES --------------------------------- */

.githubButton {
    text-align: center;
}

.githubButton a {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--project-bg);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.githubButton a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.githubButton img.githubLogo {
    width: 24px;
    height: 24px;
    margin: 0.75rem;
}

.githubButton p {
    margin: 0;
    color: var(--project-text);
    font-weight: 500;
}

.githubButton{
    padding: 1%;
}

.githubButton > a{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-style: solid;
    border-color: var(--primary-color);
    border-radius: .3rem;
    padding: 4px;
    margin-top: 20px;
}

.githubLogo {
    width: 30px;
    height: 30px;
    align-self: center;
}

.githubButton > a > p {
    margin: 0px;
    padding: 10px;
    align-self: center;
    color: var(--primary-color);
}

/* Theme toggle button styles */
.theme-toggle {
    margin-right: 1rem;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Show/hide icons based on theme */
[data-theme="light"] .moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}
