/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;

}

body {
    margin: 0;
    position: relative;

}

main {
    display: block
}

h1 {
    font-size: 2em;
    margin: .67em 0
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible
}

pre {
    font-family: monospace, monospace;
    font-size: 1em
}

a {
    background-color: transparent
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted
}

b,
strong {
    font-weight: bolder
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em
}

small {
    font-size: 80%
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

img {
    border-style: none
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0
}

button,
input {
    overflow: visible
}

button,
select {
    text-transform: none
}

[type=button],
[type=reset],
[type=submit],
button {
    -webkit-appearance: button;
}

[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner,
button::-moz-focus-inner {
    border-style: none;
    padding: 0
}

[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring,
button:-moz-focusring {
    outline: 1px dotted ButtonText
}

fieldset {
    padding: .35em .75em .625em
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal
}

progress {
    vertical-align: baseline
}

textarea {
    overflow: auto
}

[type=checkbox],
[type=radio] {
    box-sizing: border-box;
    padding: 0
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
    height: auto
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px
}

[type=search]::-webkit-search-decoration {
    -webkit-appearance: none
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
}

details {
    display: block
}

summary {
    display: list-item
}

template {
    display: none
}

[hidden] {
    display: none
}

html {
    box-sizing: border-box;
    min-height: 100%;
    scroll-behavior: smooth;
    position: relative;
    font-family: "Bodoni Moda", serif;

}


body {
    background: linear-gradient(135deg, #F8F8F8, #A9D5DA 50%, #468FAF 100%);
    background-repeat: no-repeat;
    min-height: 100vh;
    flex-direction: column;
    margin: 0;
    color: #023f5a;
}

.logo {
    max-width: 120px;
    height: auto;
    transition: width 0.5s ease, height 0.5s ease;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 30px;
    top: 0;
    z-index: 100;
}

header h1 {
    position: absolute;
    left: -99999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    margin: auto;
    max-width: 1024px;
    padding: 0 16px;
}

/*Nav Menu*/
.nav-main {
    position: absolute;
    display: flex;
    line-height: 0;
    align-items: center;
    top: 10px;
    right: 10px;
    z-index: 1000;
}


.nav-main-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

.nav-main-menu-toggle svg * {
    transform-box: fill-box;
}

.nav-main-menu-toggle rect:nth-child(1) {
    transition: all 2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transform-origin: center;
}

.nav-main-menu-toggle rect:nth-child(2) {
    transition: all 2.25s cubic-bezier(0.42, 0, 0.01, 0.97);
    transform-origin: center;
}

.nav-main-menu-toggle rect:nth-child(3) {
    transition: all 2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transform-origin: center;
}

.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(1) {
    transform: translateY(6px);
}

.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(2) {
    transform: scaleX(0);
}

.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(3) {
    transform: translateY(-6px);
}

#nav-main-menu {
    display: grid;

    transform: translateY(-100%);
    transition: all 1s ease-in-out;
    position: absolute;
    text-align: center;
    top: 35px;
    right: -15px;
    width: 90vw;
    background-color: #f8f8f8a8;
    border-radius: 2px;
    padding: 5px 0;
    list-style: none;
    visibility: hidden;
    flex-direction: column;
    overflow: hidden;
}



#nav-main-menu:not([hidden]) {
    visibility: visible;
    transform: translateX(0);
    transition: all 1s ease-in-out;
}




#nav-main-menu li:not(:last-child) {
    border-bottom: solid 3px #468FAF;
}

#nav-main-menu li a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #023f5a;
    ;
    font-weight: bolder;
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 2;
    padding: 15px 0;
}

#nav-main-menu li a:hover,
#nav-main-menu li a:focus {
    background-color: #468FAF;
    color: #F8F8F8;
}

/*main content*/
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/*Main page cards*/
.content-main {
    grid-column: span 2;
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.card {
    border-radius: 10px;
    padding: 5px;
    text-align: center;
}

.card-img {
    width: 75%;
    height: auto;
    border-radius: 10px 10px 0 0;
    margin-top: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3), 0 6px 8px rgba(0, 0, 0, 0.15);
}

.card h2,
.card p {
    margin: 10px;
    color: #193446;
    font-size: 1.3em;
}

.card h2 {
    font-size: 1.5rem;
}

.card p {
    max-width: 60ch;
    font-size: 1.4rem;
}

/*About Me page*/
.about-me {
    background-color: #f8f8f885;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    border-radius: 8px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #2c5e7e;
}


.about-me h2 {
    font-size: 2.5em;
    margin: 10px 0 10px 0;
}

.about-me p {
    font-size: 1.2em;
    line-height: 1.6;
    padding: 10px;
    text-align: center;
    max-width: 55ch;
    color: #2c5e7e;
}

.about-me a {
    padding: 5px;
    margin: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.about-me a:hover {
    background-color: #eefdff9e;
}

.fam-photo {
    width: 75%;
    height: auto;
    border-radius: 10px 10px 0 0;
    margin-top: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

/*contact me form*/
main .form {
    margin-top: 0;
}

.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%;
    margin: auto;
    color: #366e90;
    background: linear-gradient(135deg, #F8F8F8, #A9D5DA 50%, #468FAF 80%, #F8F8F8 100%);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.form h2 {
    margin: 20px auto 0;
    border: none;
    text-align: center;
    font-size: 2em;
}

.inputbttn {
    padding: 10px 20px;
    font-size: 18px;
    border: solid 2px #81a8c0;
    border-radius: 5px;
    background-color: #468FAF;
    color: white;
    margin-top: 10px;
    cursor: pointer;
}

.inputbttn:hover {
    background-color: #9cc0c3;
}

legend {
    font-size: 20px;
    font-weight: bolder;
    padding-bottom: 10px;
}

label {
    font-size: 16px;
    font-weight: bold;
    display: block;
    text-align: left;
    line-height: 1.5;

}

form input[type="text"],
form input[type="email"],
textarea {
    line-height: 1.2;
    font-size: 18px;
    padding: 8px;
    width: 100%;
    max-width: 80%;
    box-sizing: border-box;
    border-radius: 4px;
    border: 2px solid #A9D5DA;
    background-color: #fff;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
textarea:focus {
    border-color: #468FAF;
    outline: none;
}

fieldset {
    background-color: rgba(249, 249, 249, 0.7);
    box-shadow: 0 2px 4px rgba(116, 69, 95, 0.64);
    border-color: #A9D5DA;
    margin: 15px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;

}

p,
li {
    max-width: 50ch;
    display: block;
    color: #468FAF;
}


.error-parent {

    border: 2px solid rgba(255, 0, 0, 0.325);
}

.error {
    flex-direction: row-reverse;
    background-color: rgba(255, 0, 0, 0.302);
}

/*Projects Page*/
.projects {
    background: linear-gradient(135deg, #F8F8F8, #A9D5DA 50%, #468FAF 100%);
    border: solid 1px #50798a86;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    padding: 0px 10px;
    margin: auto;
    margin-bottom: 10px;
}

.projects h2 {
    font-size: 2.5em;
    padding: 10px 0;
    margin: 5px;
    border-bottom: solid 2px #023f5a;
}

.projects h3 {
    font-size: 1.8em;
    margin: 0;
}

.projects ol {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 0;
    margin: 7px 0;


}

.projects ol li {
    margin: 3px;
}

.projects iframe {
    min-width: 310px;
    min-height: 310px;
}

.projects button {
    text-decoration: none;
    font-size: 1rem;
    color: #023f5a;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    line-height: 1;
    padding: 7px 8px;
    border: 1px solid #023f5a;
    border-radius: 3px;
    background-color: #dfedee;
    cursor: pointer;
}

.projects button:hover {
    background-color: #023f5a;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/*Skip content link*/
[href="#main-content"] {
    position: absolute;
    z-index: -99999;
    left: 16px;
    top: 16px;
    transform: translate(calc(-100% - 16px), calc(-100% - 16px));


}

/*403 and 404 Error Pages*/
.errorpage,
.axsdenied {
    background-color: rgba(245, 245, 245, 0.711);
    text-align: center;
    align-items: center;
    align-content: center;
    padding: 20px;
    margin: 50px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 80%;
    color: #027fbb;
}

.errorpage .error-message,
.axsdenied .error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
}

.error404,
.error403 {
    width: 90%;
    border: solid 1px #468FAF;
    border-radius: 5px;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);

}

.error403 {
    width: 75%;
    border: solid 1px #468FAF;
    border-radius: 5px;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);

}

.errorpage h2,
.axsdenied h2 {
    position: absolute;
    left: -99999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;


}

.errorpage h3 {
    font-size: 1.6rem;
    padding: 10px;
    margin: 5px;
    color: #027fbb;
}

.errorpage p,
.axsdenied p {
    font-size: 1.4rem;
    margin: 10px 0;
    padding: 0 15px;
    color: #027fbb;
}

.errorpage ul {
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    padding: 0;
}

.errorpage ul li {
    margin: 10px 0;
    font-size: 1.1em;
}

.errorpage ul li a {
    color: #2c5e7e;
    font-weight: bold;
    padding: 5px;
    margin: 5px;
    border-radius: 4px;
}

.errorpage ul li a:hover {
    background-color: #7eb3b97e;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* footer */
footer {
    background-color: #ffffff56;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 3px;
}

footer a {
    font-size: 1.3em;
    color: #023f5a;
    text-decoration: none;
    padding: 5px;
    margin: 5px;
    border-radius: 4px;
}

footer a:hover {
    background-color: #d7eef0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

footer a[href^=javascript] {

    line-height: 2;
    color: inherit;
    text-decoration: none;
    padding: 0 1em;

}

footer a[href^=javascript]:hover {
    background-color: #14033bd1;
    color: white;
    font-size: 18px;
}


/*big size screen size*/
@media (min-width: 768px) {


    .logo {
        margin: auto;
        max-width: 200px;
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        line-height: 1.5;
    }

    .headroom {
        will-change: transform;
        transition: all .5s linear;

    }

    .headroom--pinned {
        transform: translateY(0%);
        opacity: 1;
        filter: blur(0);
    }

    .headroom--unpinned {
        transform: translateY(-100%);
        opacity: 0;
        filter: blur(5px);
    }

    /*Nav Menu*/
    nav.nav-main {
        position: static;
        top: auto;
        left: auto;
        z-index: auto;
    }

    .nav-main-menu-toggle {
        display: none;
    }

    #nav-main-menu {
        position: relative;
        visibility: visible;
        transform: translateX(0);
        transition: none;
        background: transparent;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        width: auto;
    }

    #nav-main-menu li a {
        padding: 2px 35px;
        margin: 0 5px;
        background-color: #ffffff80;
        border-bottom: solid 2px #468FAF;
        border-radius: 5px;

    }

    #nav-main-menu li:not(:last-child) {

        border-bottom: none;

    }

    /*main page main content cards*/
    .cards {
        flex-direction: row;
        gap: 5px
    }

    .card {
        flex: 1;
        max-width: 500px;
        align-content: center;
    }

    .card-img {

        border-radius: 10px;
    }

    /*About me page*/
    .fam-photo {
        width: 65%;
    }

    /*contact me */

    fieldset {
        width: 450px;
    }

    form input[type="text"],
    form input[type="email"],
    textarea {
        width: 80%;
    }

    .inputbttn {
        width: auto;
        padding: 12px 25px;
        font-size: 20px;
    }

    legend {
        font-size: 24px;
    }

    label {
        font-size: 18px;
    }


    /*projects*/
    .projects iframe {
        min-width: 600px;
        min-height: 600px;
    }

    /*Errors pages*/
    .errorpage .error-message {
        align-items: center;
        align-content: center;
    }

    .error404 {
        max-width: 70%;

    }



}



@media (min-width: 1024px) {

    /*projects*/
    .projects iframe {
        min-width: 800px;
        min-height: 600px;
    }
}

@media (min-width: 1024px) {
    header image {
        width: 350px;
    }
}