@font-face { font-family: TT-HOVES-REGULAR; src: url('./assets/TTHoves-Regular.woff2'); } 
:root {
    --headerSize: 60px;
    --fontFamily: TT-HOVES-REGULAR, 'Roboto Mono', monospace;
    --color-primary: rgba(36, 36, 36, 0.97);
    --color-secondary: wheat;
    --color-alternate: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--fontFamily);
}

html{
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.header-bar {
    z-index: 1000;
    background-color: rgb(33, 33, 33);
    color: white;
    height: var(--headerSize);
    display: flex;
    justify-content: center;
    align-items: stretch;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

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

.nav-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style-type: none;
    height: 100%;
}

.nav-item {
    margin: 0 15px;
    padding: 10px 10px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 2px;
}

.nav-item a:hover {
    text-decoration: underline;
}

.nav-item.active{
    background-color: var(--color-secondary);
}
.nav-item.active a{
    color: black;
    text-transform: uppercase;
}

.content {  
    flex: 1;
}

.content-section {
    width: 100%;
    padding: var(--headerSize) 0;
    scroll-margin-top: var(--headerSize);
    color: var(--color-secondary);
    background-color: rgba(36, 36, 36, 0.97);
    display: inline-block;
}

/* .content-section.active {
    opacity: 1;
    top: 0%;
} */

#home {
    display: grid;
    grid-template-columns: 4fr 6fr;
    height: 100dvh;

}

#contact{
    display: flex;
    align-items: center;
    justify-content: center;
}

#photo, #basic-info{
    display: flex;
    align-items: center;
    justify-content: center;
}

#basic-info{
    justify-content: start;
}

#self-image{
    width: 80%;
    height: auto;
    border-radius: 50%;
}

#basic-info{
    display: flex;
    flex-direction: column;
    color: var(--color-secondary);
    align-items: flex-start;
    justify-content: center;
    padding-right: 20%;
}

#basic-info > h3 {
    letter-spacing: 4px;
    word-spacing: 10px;
    color: white;
    padding-left: 1%;
}

#basic-info > h1 {
    font-size: 4rem;
    padding-left: 1%;
    letter-spacing: 2px;
}

#basic-info > hr {
    opacity: 0.9;
    border: 2px solid white;
    width: 100%;
    margin-top: -5px;
}

#basic-info > p {
    color: white;
    font-size: 1.5rem;
}

#projects{
    padding: 2% 5%;
}

#projects > h1{
    text-align: center;
    color: white;
}

.projects{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 50px;
    align-items: stretch;
    margin-top: 40px;
}

.project{
    border: 1px solid var(--color-secondary);
    row-gap: 10%;
    padding: 1%;
}

.project > ul {
    color: white;
    margin: 2%;
    font-size: 1.3rem;
}

.project a {
    color: white;
}

.project a:visited {
    color: white;
    text-decoration: none !important;
}

#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#about button {
    font-family: inherit;
    border: none;
    cursor: pointer;
}

.carousel-1, .carousel-2, .carousel-3 {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
}

.carousel-1 h2, .carousel-2 h2, .carousel-3 h2{
    padding: 0;
    margin: 0;
} 
.carousel-1::after, .carousel-2::after, .carousel-3::after {
    position: absolute;
    left: 50px;
    top: 60px;
    display: block;
    width: calc(100% - 100px);
    height: 6px;
    content: '';
    background-color: var(--color-secondary);
}


.carousel-1::before, .carousel-2::before, .carousel-3::before {
    position: absolute;
    left: 0;
    top: 60px;
    display: block;
    box-sizing: border-box;
    width: 100%;
    content: '';
    border: 3px dashed var(--color-secondary);
}

.item-header {
    display: flex;
    column-gap: 10px;
    text-transform: uppercase;
}

.item-icon {
    height: 40px;
    filter: invert(91%) sepia(15%) saturate(705%) hue-rotate(339deg) brightness(100%) contrast(93%);
}


.arrow-left {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: rotate(90deg);
    cursor: pointer;
    background: transparent;
    z-index: 200;
}
.arrow-right {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: rotate(-90deg);
    background: transparent;
    z-index: 200;
    cursor: pointer;
}

.arrow-left span,.arrow-right span {
    display: block;
    width: 30px;
    height: 30px;
    border-bottom: 5px solid white;
    border-right: 5px solid white;
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}

.arrow-left span:nth-child(2), .arrow-right span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow-left span.paused, .arrow-right span.paused {
    opacity: 0;
    animation: animate 0s none;
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

.carousel-1 .items, .carousel-2 .items, .carousel-3 .items {
    width: 100%;
    overflow: hidden;
    padding: 0 40px;
}

.cards{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 12px;
    column-gap: max(10%, 250px);
    transition: transform 300ms ease-in-out;
}

.node-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 250px;
    width: 30%;
    justify-content: flex-start;
}

.node-card:first-child {
    margin-left: 40%;
}

.data {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    height: 200px;
    color: var(--color-secondary);
    white-space: pre;
}

.data h3{
    font-weight: 600;
}

.data h4{
    font-weight: 600;
}

.data p{
    font-size: large;
    white-space: pre;
}

.data h4, .data p{
    color: var(--color-alternate);
}


.circle {
    width: 20px;
    height: 20px;
    background-color: var(--color-secondary);
    border-radius: 50%;
}


#contact-form{
    width: max(60%, 70vh);
    display: grid;
    grid-template-columns: 30% 70%;
    box-shadow: 5px 5px 10px 2px rgba(245, 222, 197, 0.15);
}

#left-contact-section{
    background-color: var(--color-secondary);
    color: black;
    padding: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.left-contact-item{
    display: grid;
    grid-template-columns: 10% auto;
    column-gap: 2%;
    align-items: center;
    word-break: break-word;
}

.left-contact-icon{
    width: 100%;
}

.left-contact-item a:visited, .left-contact-item a{
    color: black;
    text-decoration: none !important;
}
.left-contact-item a:hover{
    text-decoration: underline !important;
}

#right-contact-section{
    background-color: rgba(20, 20, 20, 0.7);
    padding: 20px;
}

#mail-form{
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 8%;
    row-gap: 40px;
}

#name-email{
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 20%;
    color: white;
}

.input-field{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    color:white;
}

input{
    border: none;
    background-color: transparent;
    border-bottom: 2px solid white;
    width: 100%;
    color: var(--color-secondary);
    outline: none;
}

input:focus{
    border-bottom: 2px solid var(--color-secondary);
    outline: none;
}

.input-field:has(> input:focus){
    color: var(--color-secondary);
}

textarea{
    width: 100%;
    min-height: 160px;
    scrollbar-width: 5px;
    background-color: transparent;
    color:white;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    padding: 10px;
}

.input-field:has(>textarea){
    min-height: 160px;
}

textarea:focus{
    color:var(--color-secondary);
    outline: none;
    border-color: var(--color-secondary);
}

.input-field:has(>textarea:focus){
    color:var(--color-secondary);
}

button{
    align-self: center;
    padding: 2px 20px;
    background-color: var(--color-secondary);
    color: black;
    width: max-content;
}


@media only screen and (max-width: 1200px) and (min-width: 716px){
  
    .projects{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
        row-gap: 50px;
        align-items: stretch;
    }
}


@media only screen and (max-width: 715px) {
    /* Ensure #home uses a grid with 1 column and center the content */
    #home {
        display: grid;
        grid-template-columns: 1fr; /* 1 column for smaller screens */
        justify-items: center; /* Center horizontally */
        align-items: center; /* Center vertically */
        height: 100dvh;
    }

    /* Fix #basic-info to be centered both horizontally and vertically */
    #basic-info {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center horizontally */
        justify-content: center; /* Center vertically */
        padding: 0% 7.5%;
        text-align: center;
    }

    /* Additional adjustments for text and spacing inside #basic-info */
    #basic-info > h3,
    #basic-info > h1,
    #basic-info > p {
        text-align: center; /* Ensure text is centered */
    }

    .projects{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        column-gap: 20px;
        row-gap: 50px;
        align-items: stretch;
    }
}
