/* +++ FONT IMPORT +++ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;900&display=swap');


/* +++ VARIABLES +++ */

* {
    --blue: #26a8da;
    --light-blue: #94d7f1;
    --black: #0c0c14;
    --dark: #1d2028;
}

/* +++ PAGE CONFIGURATION +++ */

html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: #a5a5a5ad;
    border-radius: 12px;
}

::-webkit-scrollbar-thumb:hover{
    background-color: #a5a5a5;
}

body > :not(.navigation) {
    margin-left: 220px;
}

.btn {
    border: 3px solid;
}


/* +++ COLORS +++ */

/* Default text color */
* {
    color: white;
}

body {
    background-color: var(--black);
}

/* Text colors */
.blue {
    color: var(--blue);
}
.light-blue {
    color: var(--light-blue);
}
.dark {
    color: var(--dark);
}
.black {
    color: var(--black);
}

/* Background colors */
.bg-blue {
    background-color: var(--blue);
    border-color: var(--blue);
}
.bg-dark {
    background-color: var(--dark);
    border-color: var(--dark);
}
.bg-black {
    background-color: var(--black);
    border-color: var(--black);
}

/* Hover colors */
.btn.bg-blue:hover {
    background: none;
    color: var(--blue);
}

/* +++ FONTS & SIZES +++ */

* {
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-size: 3rem;
    letter-spacing: 2px;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin: 10px 0 40px 0;
    letter-spacing: 3px;
}

h2:after {
    content: '';
    position: absolute;
    height: 5px;
    background-color: var(--blue);
    bottom: -15px;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 100px;
}

a {
    text-decoration: none;
}

#skills h3::before, #skills h3::after {
    content: '-';
    color: var(--blue);
    position: relative;
}

#skills h3::before {
    left: -10px;
}

#skills h3::after {
    left: 10px;
}

#modal-header span {
    font-size: xx-large;
    font-weight: 900;
    text-transform: uppercase;
}

.project-modal-subtitle {
    font-size: x-large;
    font-weight: 900;
    color: var(--blue);
}

.project-content-element-title {
    font-size: larger;
    font-weight: 900;
    margin: 0 0 20px 0;
    display: inline-block;
}

.project-modal-technology {
    border: 1px solid var(--light-blue);
    padding: 10px;
    border-radius: 5px;
    background-color: var(--light-blue);
    color: var(--dark);
}

.header-content p {
    line-height: 1.5;
}

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

/* +++ COMPONENTS +++ */

.main-header img {
    width: 300px;
    height: 300px;
    border-radius: 50px;
    border: 5px solid var(--blue);
    animation: avatar-shadows 3s infinite;
}

.brand-container {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background-color: #2a2d35;
    
}

.brand img {
    width: 64px;
    height: 64px;
}

.btn, .shadow-btn {
    border-radius: 6px;
    padding: 10px;
}

.btn-small {
    font-size: small;
    padding: 10px 5px;
}

.shadow-btn:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: #2a2d35;
}

.icon-content {
    border: 2px solid #393d47;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.2s all ease-in;
    height: 100px;
    width: 100px;
}

.icon-content:hover {
    border-color: #94d7f1;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

.devicon {
    font-size: 2rem;
}

svg {
    width: 2rem;
    
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-item {
    display: flex;
    align-items: center;
    background-color: #a5a5a5;
    border-radius: 15px;
    transition: 0.2s all ease;
    border: 2px solid #a5a5a5;
    position: relative;
    transition: 0.2s all ease-in;
    cursor: pointer;
}

.project-item img {
    width: 100%;
}

.project-info {
    background-color: rgba(0, 0, 0, 0.678);
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    padding: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-info button {
    background-color: var(--blue);
    border: 2px solid var(--blue);
    padding: 5px 10px;
    border-radius: 33px;
    cursor: pointer;
    transition: 0.2s all ease;
}

.project-info button:hover {
    background-color: transparent;
    color: var(--blue);
}

.project-item:not(:last-child) {
    margin-bottom: 30px;
}

.project-item:hover {
    /* border: 3px solid var(--blue); */
    box-shadow: #26a8da 0px 7px 29px 0px;
}


/* +++ CONTAINERS +++ */

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

footer {
    text-align: center;
    padding: 30px;
}

section {
    width: 75%;
    margin: 30px auto 75px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.inline-block {
    display: inline-block;
}

.full-screen {
    min-height: 100vh;
}

.navigation {
    position: fixed;
    height: 100vh;
    z-index: 1;
    background-color: var(--dark);
    /* Computer size */
    width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.navigation nav {
    justify-self: center;
}

.navigation nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact {
    padding: 20px 0;
    display: flex;
    gap: 10px;
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 300px;
}

.section-content {
    background-color: #7a7a7a50;
    border-radius: 50px;
    padding: 30px;
    text-align: justify;
    line-height: 2;
    width: 100%;
}

.timeline-container {
    position: relative;
    /* width: 90%; */
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 10px;
    background-color: #a5a5a5;
    top: 0;
    height: 100%;
    border-radius: 5px;
}

.event-container {
    background-color: #94d7f1;
    position: relative;
    border-radius: 30px;
    margin-left: 30px;
    margin-bottom: 30px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    transition: 0.2s all ease-in;
}

.event-container:hover {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

.event-even {
    background-color: #f1f1f1;
}

.event-even .light-blue {
    color: #2a2d35;
}

.event-container::before {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    top: 10px;
    left: -38px;
    background-color: #a5a5a5;
    z-index: 1;
}

.skills-category {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icons-grid {
    width: 90%;
    margin: 15px auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px 40px; 
}

/*  +++ ANIMATIONS +++ */

a {
    transition: 0.2s all ease-in;
}

@keyframes blue-nuances {
    0% {
        color: #26a8da;
    } 
    50% {
        color: var(--light-blue);
    }
    100% {
        color: #26a8da;
    } 
}

@keyframes avatar-shadows {
    0% {
        box-shadow: #26a8da 0px 7px 29px 0px;
    } 
    50% {
        box-shadow: #26a8da 0px 14px 58px 2px;
    }
    100% {
        box-shadow: #26a8da 0px 7px 29px 0px;
    } 
}

#project-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    margin: 0;
    left: 50px;
    top: 50px;
    width: calc(100% - 100px); /* Full width */
    height: calc(100% - 100px); /* Full height */
    border: 3px solid #a5a5a5;
    background-color: var(--black);
    border-radius: 15px;
    border-radius: 15px;
    animation-name: animatetop;
    animation-duration: 0.4s;
  }
  
  /* Add Animation */
  @keyframes animatetop {
    from {
        display: none;
        top: -300px; 
        opacity: 0;
    }
    to {top: 50px; opacity: 1}
  }

  @keyframes animatebottom {
    from {
        top: 50px; 
        opacity: 1;
    } to {
        top: -300px; 
        opacity: 0;  
        display: "none";
    }
  }


#project-modal button {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    transition: 0.25s all ease-in;
}

#project-modal button:hover {
    transform: rotate(180deg);
}

#modal-header {
    text-align: center;
    height: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-content {
    background-color: var(--dark);
    padding: 20px;
    height: 50%;
    overflow: auto; /* Enable scroll if needed */
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.project-content-element {
    margin-bottom: 20px;
}

#project-modal-technologies {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#project-modal-links {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

#project-modal-links > a {
    border: 1px solid var(--blue);
    color: white;
    background-color: var(--blue);
    padding: 5px 10px;
    border-radius: 5px;
}