@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
    --primary: #282828;
    --primary-dark: #1d1d1d;
    --secondary: #f9f5d7;
    --secondary-dark: #d5c4a1;
    --highlight: #fabd2f;
}

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

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--secondary);
    /*font-family: "JetBrains Mono", monospace;*/
    font-family: Inter, system-ui, sans-serif;
    text-align: center;
    overflow-x: hidden;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--primary-dark) 60%);
}

body:hover {
    cursor: default;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.04em;
    color: var(--secondary);
}

h2 {
    margin: 0 0 16px;
    font-size: 2rem;
    letter-spacing: -0.04em;
    color: var(--secondary);
}
      
p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary);
}

a {
    color: var(--secondary);
    text-decoration: none;
    text-decoration-color: var(--secondary-dark);
    transition: all 300ms ease;
}

a:hover {
    cursor: pointer;
}

.header a:hover {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: .4rem;
    text-decoration-color: var(--highlight);
    text-decoration-thickness: .1rem;
}

/* --------- BUTTONS --------- */

.button {
    background-color: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary-dark);
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 200ms ease;
}

.button:hover {
    background-color: var(--highlight);
    color: var(--primary);
    border-color: var(--highlight);
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(250, 189, 47, 0.3);
}

.button:active {
    transform: translateY(0px);
}

/* --------- NAVIGATION --------- */

#navigation {
    position: fixed;
    top: 0;
    left: 0;
    padding: 2rem;
    width: 100%;
    background-color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 2;
}

.nav-title {
    display: flex;
    font-size: 1.5rem;
    padding-left: 10%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding-right: 10%;
}


/* --------- HOME --------- */

#home {
    display: flex;
    height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.profile {
    display: flex;
    width: 80%;
    align-items: center;
    justify-content: center;
    justify-items: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.profile-picture {
    width: 25%;
    border-radius: 100%;
    box-shadow: 0px 0px 10px var(--primary-dark);
}

.home-title-text {
    width: fit-content;
    height: fit-content;
    font-size: 6rem;
    color: var(--highlight);
    text-shadow: 0px 0px 10px var(--primary-dark);
}

.home-text-p1 {
    width: fit-content;
    height: fit-content;
    text-shadow: 0px 0px 4px var(--primary-dark);
}

.profile-links {
    display: flex;
    align-content: center;
    justify-content: center;
    gap: 1rem;
}

.icon {
    width: 2rem;
    height: 2rem;
}

.icon:hover {
    cursor: pointer;
}

.home-arrow {
    font-size: 2rem;
    position: relative;
    bottom: -10%;
}

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

#about {
    display: flex;
    height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 1rem;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    gap: 2rem;
}

.about-picture {
    width: 20%;
    border-radius: 100%;
    box-shadow: 0px 0px 10px var(--primary-dark);
}

.panel-2 {
    background-color: var(--primary);
    border-radius: 4rem;
    width: 75%;
    height: 90%;
    padding: 1rem 2rem;
    box-shadow: 2px 2px 10px var(--primary-dark);
    border: 1px solid transparent;
    transition: border-color 200ms ease;
}

.panel-2:hover {
    border-color: var(--highlight);
}

/* --------- ACHIEVEMENTS --------- */

#achievements {
    display: flex;
    height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.panel {
    background-color: var(--primary-dark);
    border-radius: 4rem;
    width: 80%;
    height: 80%;
    padding: 1rem 2rem;
    box-shadow: 2px 2px 10px var(--primary-dark);
    border: 1px solid transparent;
    transition: border-color 200ms ease;
}

.panel:hover {
    border-color: var(--highlight);
}

.about-grid {
    width: 60%;
    display: grid;
    align-items: center;
    justify-content: center;
    justify-items: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

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

#projects {
    display: flex;
    height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.project {
    position: relative;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    border-radius: 0 0 3rem 3rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    box-sizing: border-box;
}

.project-text h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.project-text p {
    font-size: 0.85rem;
    color: var(--secondary-dark);
}

/* --------- CAROUSEL --------- */

.slider-wrapper {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
    overflow: hidden;
    margin-top: 6rem;
}

.slider {
    display: flex;
    aspect-ratio: 16 / 9;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 4rem;
    scrollbar-width: none;
}

.slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.project {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.slider-nav button {
    background: none;
    border: none;
    color: var(--secondary-dark);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.slider-nav button:hover {
    color: var(--highlight);
}

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

#contact {
    display: flex;
    height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
}

/* --------- Footer --------- */

.footer {
    width: 100vw;
    padding: 25px 15%;
    background-color: var(--primary-dark);
    color: var(--secondary);
    display: flex;
    box-sizing: border-box;
    text-align: center;
    align-self: stretch;
    
}

.footer div{

    flex: 1;
    text-align: center;
}

.footer div p{
    color:var(--secondary-dark);
 
}

.footer div a{
    color:var(--secondary-dark);
    display: block;
    text-decoration: none;
    margin-bottom: 10px;
}

/* PROJECTS */

#individual-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "title  text"
        "image  text";
    height: 100vh;
    width: 70%;
    max-width: 100rem;
    margin: 0 auto;
    gap: 2rem;
    align-content: center;
}

#individual-project h1 {
    grid-area: title;
    align-self: end;
    width: 80%;
    margin-left: 10%;
}

#individual-project img {
    grid-area: image;
    width: 80%;
    margin-left: 10%;
    border-radius: 5rem;
    align-self: start;
}

#individual-project #project-text {
    grid-area: text;
    align-self: center;
    text-align: left;
}

@media screen and (max-width: 768px) {

.home-arrow{
    display: none;
}

#navigation{
    width: 100%;
    justify-content: center;
    padding: 10px 0px;
}

p{
    font-size: .8rem;
}

h2{
    font-size: 1.4rem;
}

.nav-links{
    display: none;
}

.nav-title {
    justify-content: center;
    padding-left: 0%;
    width: 100%;
}

.home-title-text{
    font-size: 3rem;
}

.profile {
    flex-direction: column;
    width: 80%;
    gap: 2rem;
}

.profile-picture {
    width: 55%;
}

#about {
    flex-direction: column;
    height: 80vh;
}

.about-container {
    width: 90%;
}

.panel-2 {
    width: 70%;
}

.about-grid {
    grid-template-columns: 1fr;
    width: 90%;
    gap: 2rem;
}

.about-picture{
    display: none;
}

.panel {
    width: 70%;
    font-size: .8rem;
}

#achievements {
    height: 80vh;
}

#projects {
    height: 80vh;
}

.slider-wrapper {
    margin-top: 2rem;
    width: 80%;
    overflow: visible;
}

.slider-nav {
    bottom: -2.5rem;
}

#individual-project {
    grid-template-columns: 1fr;
    grid-template-areas:
        "title"
        "image"
        "text";
    width: 90%;
    height: auto;
}

.slider-nav button {
    font-size: 0.5rem;
}

.project-text h2 {
    font-size: 0.85rem;
}

.project-text p {
    font-size: 0.7rem;
}

.project-info .button {
    padding: 4px 8px;
    font-size: 0.7rem;
}

#individual-project h1,
#individual-project img {
    margin-left: 0;
    width: 100%;
    text-align: center;
}

#individual-project #project-text {
    text-align: center;
}

#contact {
    width: 80%;
    height: auto;
    min-height: 50vh;
    justify-content: center;
    padding: 2rem 1rem;
}

.footer {
    flex-direction: column;
    padding: 25px 5%;
    gap: 1.5rem;
}
}