@font-face {
    font-family: "Fredoka";
    src: url("../fonts/Fredoka-VariableFont_wdth,wght.woff2") format("woff2");
}

:root {
    --page-bg: oklch(0.98 0.00 91);
    --text: oklch(0.2134 0 0);
    --pill-bg: oklch(0.8579 0.0322 91.05);
    --pill-bg-hover: oklch(0.7964 0.048 90.9);
    --pill-color: oklch(0.2134 0 0);
    line-height: 1.6;
    font-family: "Fredoka", sans-serif;
    color: var(--text);
    background: var(--page-bg);
    scroll-behavior: smooth;
    justify-content: center;

}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;

}

.container {
    max-width: 80rem;
    margin-inline: auto;
padding-inline: 1rem;
}

main {
    gap: 1.5rem;
    justify-content: center;
}


button,
a {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 100rem;
    background-color: var(--pill-bg);
    color: var(--pill-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 140ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);

    &:hover,
    &:focus {
        background-color: var(--pill-bg-hover);
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12);
    }

    img {
        background-color: transparent;
    }
}

header {
    justify-content: center;
    align-items: center;

    nav {
        position: fixed;
        top: 1rem;
        z-index: 1000;
        background-color: white;
        border-radius: 1000px;
        justify-content: center;
        align-items: center;

        h2 {
            display: none;
            margin-left: 1rem;
            font-weight: 800;
            color: var(--text);
        }

        ul {
            justify-content: center;
            display: flex;
            list-style: none;
            flex-wrap: wrap;
            padding: 0;

            li {
                margin: 0;
            }
        }

        a {
            margin: 0.125rem;
            font-size: 0.7rem;
        }
    }
}

.hero {
    height: 100vh;
    align-items: center;
    justify-content: center;
    display: flex;

    img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.4);
        z-index: 0;
    }

    .hero-content {
        z-index: 1;
        text-align: center;
        flex-direction: column;
        gap: 1rem;
        justify-content: center;

        h2 {
            color: white;
            font-size: 3rem;
            font-weight: 700;
            line-height: 1.2;
        }

        p {
            color: white;
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto;
        }
    }
}

.round-img {
    border-radius: 1000px;
    object-fit: cover;
    object-position: center;
    border: var(--pill-bg-hover) 8px solid;
    width: 300px!important;
    height: 300px;

}

.rounded-img {
    border-radius: 20px;
    object-fit: cover;
    object-position: center;
    border: var(--pill-bg-hover) 8px solid;
    width: 300px!important;
    height: 300px;

}

.social-links {
    gap: 1rem;
    justify-content: center;
    display: flex;
    a{
        background-color: transparent;
        box-shadow: none;
    }
    img {
        max-width: 3rem;
        height: auto;

    }
}

section {
    border: 1px solid oklch(0.8 0.03 91);
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-block: 2rem;

    img {
        height: auto;
        object-fit: cover;
    }
}

.cards {
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    &:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    h2 {
        font-weight: 600;
    }

    a {
        background: transparent;
        text-decoration: none;

        &:hover {
            transform: none;
            box-shadow: none;
        }
    }

    img {
        object-fit: cover;
        width: 100%;
        height: 200px;

    }
}

.about-me-photos {
    h3 {
        display: none;
    }

    img {
        width: 100%;
        border-radius: 12px;
        object-fit: cover;
    }

    li {
        aspect-ratio: 1/1;
    }

    li::after {
        h3 {
            display: block;
        }

        img {
            height: 80%;
        }
    }
}

form.contact-form {
    max-width: 760px;
    width: 90%;
    margin: 1.5rem auto;
    padding: 1rem;

    > div {
        margin-bottom: .9rem;
    }

    h1,
    h2 {
        text-align: center;
    }

    input[type="email"],
    input[type="text"],
    textarea {
        width: 100%;
        padding: .6rem .75rem;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        margin-top: .25rem;
    }

    input[type="submit"] {
        display: inline-block;
        margin: .75rem auto 0;
        padding: .6rem 1rem;
        font-size: 1rem;
        cursor: pointer;
    }
}

.row {
    display: flex;
    flex-wrap: wrap ;
}

[class^="col-"] {
    width: 100%;
    box-sizing: border-box;
}

.text-center{ text-align: center; }
.error {
    color: oklch(0.4979 0.198 29.02);
}

/* Utilities */
.break-word { word-break: break-word; }

.center-vertical { align-items: center; }
.flex { display: flex; }
.flex-wrap {display: flex; flex-wrap: wrap;}
.center { justify-content: center; }

.p-05 { padding: 0.5rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.pt-05 { padding-top: 0.5rem; }
.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }

pl-05{ padding-left: 0.5rem; }

.m-1 { margin: 1rem; }
.m-2 { margin: 2rem; }
.m-3 { margin: 3rem; }
.m-5 { margin: 5rem; }

.mt-05 { margin-top: 0.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mt-5 { margin-top: 5rem; }
.mt-10 { margin-top: 10rem; }

.mbl-05{ margin-block: 0.5rem; }

/* ----------------------------- */
/* TABLET ≥ 650px                */
/* ----------------------------- */
@media (min-width: 650px) {

    .hero .hero-content h1 {
        font-size: 3rem;
    }

    header nav {
        justify-content: center;

        a {
            font-size: 1rem;
        }

        h1 {
            display: none;
        }
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }
}

/* ----------------------------- */
/* DESKTOP ≥ 1200px              */
/* ----------------------------- */
@media (min-width: 1200px) {

    [class^="col-1"] { width: 8.333%; }
    [class^="col-2"] { width: 16.666%; }
    [class^="col-3"] { width: 25%; }
    [class^="col-4"] { width: 33.333%; }
    [class^="col-5"] { width: 41.666%; }
    [class^="col-6"] { width: 50%; }
    [class^="col-7"] { width: 58.333%; }
    [class^="col-8"] { width: 66.666%; }
    [class^="col-9"] { width: 75%; }
    [class^="col-10"] { width: 83.333%; }
    [class^="col-11"] { width: 91.666%; }
    [class^="col-12"] { width: 100%; }

    header nav {
        justify-content: space-between;
        padding-right: 1rem;
        a {
            font-size: 1rem;
        }

        h2 {
            display: block;
        }
    }

    .hero .hero-content h1 {
        font-size: 5rem !important;
    }
}
