:root {
    --bg-color: #0F172A;
    --accent-color: #3B82F6;
    --primary-color: #F8FAFC;

    --primary-font: "Inter";
    --secondary-font: "Playfair Display";
}

body {
    margin: 0;
    padding: 0;
    min-height: 100svh;
    background-color: var(--bg-color);
}



.header h1,
.header h2 {
    color: var(--primary-color);
    margin: 0;
}

.header h1 {
    font-family: var(--secondary-font);
    font-size: 24px;
}

.header h2 {
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: 400;
}

.header {
    border-bottom: 2px solid var(--accent-color);
    width: 100%;
    height: 130px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 100%;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    height: 100%;
    margin: .5rem;
}

.header-portrait {
    width: 72px;
    height: 72px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid var(--accent-color);
    margin-left: 2rem;
}

.header-text {
    margin-left: .5rem;
}

.header-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: .5rem;
}

.nav {
    display: flex;
    gap: 10px;
}

.nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--primary-font);
}

.cta-button {
    margin-top: .25rem;
    box-sizing: border-box;
    display: block;
    text-decoration: none;
    background-color: var(--bg-color);
    text-align: center;
    font-family: var(--primary-font);
    font-size: 16px;
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    width: 100%;
}

.offer {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: calc(100svh - 130px);
}

.offer-title {
    color: var(--primary-color);
    margin-top: 4rem;
    font-family: var(--primary-font);
    text-align: center;
}

.offer-text {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: var(--primary-font);
    font-size: 20px;
    font-weight: 200;
    max-width: 40%;
}

.about {
    display: flex;
    align-items: center;
    flex-direction: column;
    border-top: 2px solid var(--accent-color);
}

.about-title {
    color: var(--primary-color);
    margin-top: 4rem;
    font-family: var(--primary-font);
    text-align: center;
}

.about-text {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: var(--primary-font);
    font-size: 20px;
    font-weight: 200;
    max-width: 40%;
}

.carousel {
    display: grid;
    width: fit-content;
}

.carousel-image {
    grid-area: 1 / 1;
    max-width: 480px;
    aspect-ratio: 1.47;
    border: 2px solid var(--accent-color);
    border-radius: 8%;
    overflow: hidden;
}

.carousel-image:nth-child(1) {
    transform: translateX(-25%) scale(.80);
    z-index: 1;
}

.carousel-image:nth-child(2) {
    transform: translateX(0%) scale(1);
    z-index: 2;
}

.carousel-image:nth-child(3) {
    transform: translateX(25%) scale(.80);
    z-index: 1;
}

/* contact me modal */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    background-color: rgba(0, 0, 0, .75);
}

.contact-box {
    width: 40vw;
    height: fit-content;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 1rem;
    padding: 1.5rem;
}

.contact-me h2 {
    color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

.contact-me label {
    color: var(--primary-color);
    font-family: var(--primary-font);
    margin-bottom: .25rem;
}

.contact-field {
    min-height: 2.5rem;
    margin-bottom: .25rem;
    padding: .5rem .75rem;
    box-sizing: border-box;
    background-color: var(--primary-color);
    border: 2px solid var(--accent-color);
    box-shadow: none;
}

.contact-field:focus {
    box-shadow: none;
    outline: none;
}

.contact-field:focus-visible {
    box-shadow: 0 0 8px var(--accent-color);
}

#message {
    min-height: 5rem;
    resize: vertical;
}

.contact-buttons {
    display: flex;
    gap: .5rem;
}

.contact-button {
    min-height: 2.5rem;
    padding: .5rem .75rem;
    border: 2px solid var(--accent-color);
    box-sizing: border-box;
    background-color: #0F172A;
    color: var(--primary-color);
    font-family: var(--primary-font);
    height: 2rem;
    width: 200px;
    border-radius: 4px;
}

.contact-button:active {
    border: 2px solid var(--primary-color);
}

.contact-me {
    display: flex;
    flex-direction: column;
}

.thanks-box {
    color: var(--primary-color);
    font-family: var(--primary-font);
}

/* Skills tree */
.skills {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.skills>h2 {
    color: var(--primary-color);
    margin-top: 4rem;
    font-family: var(--primary-font);
}

.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    max-width: 40%;
}

.skill {
    color: var(--primary-color);
    font-family: var(--primary-font);
    border: 2px solid var(--accent-color);
    padding: .25rem .75rem;
    box-shadow: 0 0 4px var(--primary-color);
    width: fit-content;
}

.hidden {
    display: none;
}

.footer {
    border-top: 2px solid var(--accent-color);
    color: var(--primary-color);
    font-family: var(--primary-font);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.footer p {
    margin: 0;
}

@media (max-width: 1000px) {
    .header {
        grid-template-columns: 50% 50%;
    }

    .carousel-image:nth-child(1),
    .carousel-image:nth-child(3) {
        display: none;
    }

    .carousel {
        justify-items: center;
    }

    .carousel-image:nth-child(2) {
        max-width: 90%;
    }

    .offer-title,
    .about-title,
    .skills-title {
        max-width: 90%;
    }

    .offer-text,
    .about-text,
    .skills-container {
        max-width: 90%;
    }

    .contact-box {
        width: 80vw;
        padding: .5rem;
    }
}

@media (max-width: 580px) {
    .header {
        display: flex;
        flex-direction: column;
        height: auto;
    }
}