/* Font setup */
@font-face {
    font-family: Nitti;
    src: url("ressources/font/Nitti-Normal.ttf");
}

/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    font-family: Nitti;
    cursor: crosshair;
}

html, body, main, section, .panel, header{
    height: 100vh;
}

body {
    position: relative;
    background-color: black;
}


header{
    display: flex;
    justify-content:center;
    align-items:flex-start;
    color:white;
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
    flex-direction: column;
    gap: 5%;
}

header div{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header p{
    display: flex;
    align-items: center;
    font-weight: lighter;
    letter-spacing: 3px;
    transition: 0.2s all;
}

header p img{
    -webkit-filter: grayscale(1) invert(1);
    filter: grayscale(1) invert(1);
    width: 30px;
    height: 10px;
}


header p:hover{
    letter-spacing: 15px;
    font-weight: bold;
}

header img{
    height: 20vh;
    background-color: white;
    opacity: 85%;
}

.scroll-p{
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    font-weight: lighter;
    font-size: 1em;
}

/* Main layout grid */
main {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: white;
}

/* Section layout */
section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
    position: relative;
    padding-left: 10px;
    padding-right: 10px;
}

/* Anchor styling inside sections */
section a {
    color: blue;
    cursor: cell !important;
    transition: 0.1s all;
}

section a:hover{
    letter-spacing: 2px;
}

/* Fullscreen overlay panel */
.panel {
    width: 100%;
    height: 100%;
    position: absolute;
    top:0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: black;
    color: white;
    transition: 0.2s all;
    box-sizing: border-box;
    z-index: 99;
}

.panel:hover{
    background-color: white !important;
    color: black !important;
    cursor: cell;
    letter-spacing: 150%;
}

.panel:hover img{
      filter: none !important;
}

.panel img{
    width: 20px !important;
    position: static !important;
    animation: myAnim 1s ease 0s infinite normal forwards;
}

/* Title area in a section */
section .title {
    display: flex;
    flex-direction: column;
}

/* About section image */
.about img {
    width: 100%;
}

/* Skills section headings */
.skills h2, .projects h2{
    margin-bottom: 10px;
    transition: all 0.1s;
    display: flex;
    align-items: center;
}


.skills h2 img, .projects h2 img{
    width: 30px;
    height: 15px;
}

.skills h2:hover, .projects h2:hover {
    letter-spacing: 2px;
}

.skills h2:hover img, .projects h2:hover img{
        animation: myAnim 1s ease 0s infinite normal forwards;
}

/* Skills list layout */
.skills ul {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 20px;
    list-style-type: none;
}

/* Projects section image hover effect */
.project-img {
    width: 100%;
    height: 100vh;
    display: none;

}

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

.projects div:hover > .project-img {
    position: absolute;
    top: 0;
    right: 100%;
    display: flex;
    align-items: center;
    z-index: 999;
}

.projects h5 {
    font-weight: lighter;
    color: grey;
}

/* Contact link container */
.contact-link {
    display: flex;
    justify-content: center;
}

/* Contact anchor styling */
.contact a {
    display: flex;
    justify-content: center;
}

/* Contact icons */
.contact-link img {
    width: 45%;
    transition: all 0.1s;
}

.contact-link img:hover {
    transform: scale(1.5);
}

/* Contact form layout */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Form inputs */
.contact form input, .contact form textarea {
    border: none;
    border-bottom: 1px solid black;
}

.contact form input:focus, .contact form textarea:focus {
    outline: none;
}

input[type=submit]{
    transition: 0.1s all;
}

input[type=submit]:hover{
    background-color: black;
    color: white;
    letter-spacing: 5px;
}

/* Blinking animation */
@keyframes myAnim {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}

/* Responsive styles for screens below 1108px */
@media (max-width: 1108px) {
    html,body,main{
        height: auto;
    }

    main {
        display: flex;
        flex-direction: column;
    }

    section{
        background-color: white;
        gap:20px;
    }

    section, header{
        padding-top: 0;
        padding-bottom: 0;
    }

    .panel img{
        -webkit-filter: invert(100%);
        filter: invert(100%);
    }

    .panel:hover{
        background-color: black;
        color:white;
    }

}



@media (max-height: 700px) {

    html, body, main, section, .panel, header{
        height: 700px;
    }
    section{
        min-height: 700px;
        gap:5%;
    }
}