@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Poppins:wght@300;400;500;600&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap");

:root {
    --color-primary: #9e9e9e;
    --color-secondary: #ffffff;
    --color-background: #000000;
    --color-text: #e0e0e0;
    --color-link: #bbbbbb;
    --color-hover: #444444;
}

/* GENERAL */
* {
    padding: 0;
    margin: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
}

body {
    font-family: "Space Mono", monospace;
    background-color: var(--color-background);
    color: var(--color-text);
    position: relative;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

::selection {
    color: var(--color-background);
    background: var(--color-link);
}

p {
    color: var(--color-text);
}

.title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    transition: 0.2s ease-in-out;
    text-align: center;
    color: var(--color-text);
}

/* FLASH MESSAGE */
.flash-message {
    margin: 30px 0;
    transition: all 300ms ease;
}

/* TRANSITION */
a, .btn {
    transition: all 300ms ease;
}

/* DESKTOP NAV */
nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
    margin-bottom: 1%;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a {
    color: var(--color-text);
    text-decoration: none;
    text-decoration-color: var(--color-secondary);
}

a:hover {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: var(--color-hover);
}

.logo {
    font-size: 2rem;
}

.logo:hover {
    text-decoration: none;
    color: var(--color-text);
}

/* 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: var(--color-text);
    transition: all 0.3s ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-background);
    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: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.menu-links li {
    list-style: none;
    white-space: nowrap;
}

.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;
    opacity: 1;
}

/* PROFILE */
#profile {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: flex-start;
    margin: 0 45px;
    padding: 5%;
}

.profile-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 0.5rem;
}

.profile-container h2 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    transition: 0.2s ease-in-out;
    margin: 20px 0;
    color: var(--color-text);
}

.profile-container p {
    font-size: 40px;
    line-height: 1.2;
    transition: 0.2s ease-in-out;
    color: var(--color-text);
    opacity: 0.5;
}

/* BUTTONS */
.btn-container {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin: 30px 0;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms ease;
    padding: 1rem;
    height: 2rem;
    width: 11rem;
    /* box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); */
}

.btn-color-1 {
    border: var(--color-primary) thin solid;
    background-color: var(--color-background);
    color: var(--color-text);
}

.btn-color-1:hover {
    cursor: pointer;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(158, 158, 158, 0.6);
}

.btn-color-2 {
    border: var(--color-primary) thin solid;
    background-color: var(--color-secondary);
    color: var(--color-background);
}

.btn-color-2:hover {
    cursor: pointer;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ABOUT */
.about-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.description {
    margin-right: 60px;
    color: var(--color-text);
}

.about-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 66.66666667%;
}

.about-content p {
    /* padding: 1.5rem; */
    flex: 1;
    color: var(--color-text);
}

.about-content i {
    margin-left: 30px;
    font-size: 250px;
    color: var(--color-secondary);
}

/* SKILLS */
.skills-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skills-content-1 {
    padding: 0 10%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.skills-content-1 h2 {
    align-self: flex-start; /* This will ensure the h2 aligns to the left */
    margin: 20px 0;
}

.skills-skills {
    margin-right: 50px;
    justify-content: space-between;
    width: 100%;
}

.skills-skills ul {
    margin-left: 0;
    padding-left: 20px;
}

.skills-skills li {
    margin-left: 0;
    padding-left: 0;
}

.skills-tools {
}

.skills-tools-icons {
    display: grid;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
    grid-template-columns: repeat(4, 1fr);
    justify-items: start;
}

.skills-tools-icons img {
    padding: 7px;
    width: 45px;
    height: 45px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    object-fit: contain;
    overflow: visible;
    margin: 10px 20px;
}

.skills-content-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the start */
    width: 100%;
    padding: 0 10%;
}

.skills-content-2 h2 {
    align-self: flex-start; /* This will ensure the h2 aligns to the left */
    margin: 20px 0;
}

.cards {
    display: grid;
    box-sizing: border-box;
    flex-wrap: wrap;
    flex: 1 1 30%;
    flex-direction: row;
    gap: 50px 5%;
    justify-content: center;
    object-fit: contain;
    max-height: 100%;
    max-width: 100%;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 10%;
    margin: 10px;
    width: auto;
    height: auto;
    border: var(--color-primary) thin solid;
    background-color: var(--color-background);
    color: var(--color-text);
    flex: 1 1 calc(25% - 20px);
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    text-align: center;
    box-sizing: border-box;
}

.card p {
    /* min-height: 30px; */
}

.card p:first-of-type {
    font-weight: bold;
    font-size: 0.7em;
    margin-bottom: auto;
    text-align: center;
    min-height: 40px;
}

.card p:nth-of-type(2) {
    font-size: 0.9em; /* Adjust the font size as needed */
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
}

.card img {
    filter: invert(100%);
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    font-size: 10px;
    overflow: hidden;
    align-items: center;
}

/* PROJECTS */
.projects-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#project-cards {
    padding: 0 10%;
    margin: 0 auto;
}

#project-cards .card {
    transition: all 0.3s ease;
    align-items: flex-start;
    text-align: start;
}

#project-cards a {
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#project-cards a:hover {
    filter: invert(100%);
    transform: scale(1.05);
}

#project-cards .card p:first-of-type {
    text-align: start;
    font-size: 0.9em;
    margin-bottom: 20px;
}

#project-cards .card p:nth-of-type(2) {
    text-align: start;
    font-size: 0.7em;
}

/* CONTACT */
.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 66.66666667%;
}

.contact-info {
    max-width: 50%;
    margin-right: 50px;
}

.contact-form {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 400px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-primary);
    outline: none;
    padding-bottom: 5px;
    color: var(--color-text);
    margin-bottom: 15px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-weight: bold;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: scale(1.05);
}

.contact-form textarea {
    height: 80px;
    resize: vertical;
}

#contact .social-link {
    display: flex;
    gap: 25px;
}

#contact .social-link a {
    background-color: var(--color-secondary);
    color: #000000;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

#contact .social-link a:hover {
    transform: scale(1.2);
    background-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(158, 158, 158, 0.6);
}

/* FOOTER */
footer {
    display: flex;
    height: 17vh;
    margin-top: 5%;
    margin-bottom: 1rem;
    justify-content: center;
    align-items: center;
}

footer p {
    text-align: center;
}
