@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap');

html,
body {
    width: 100%;
    height: 100%;
    background: #ddd;
    font-family: 'Montserrat', sans-serif;
    font-size: 60px;
    text-align: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

.flex {
    display: flex;
}

.absolute {
    position: absolute;
    height: 100%;
    width: 100%;
}

.relative {
    position: relative;
    top: 0px;
    width: 100%;
    height: 100%;
    display: block;
}

.align-center {
    align-items: center !important;
}

.subtitle {
    font-size: 18px;
    font-family: 'Red Hat Display', sans-serif;
    display: block;
}

.gsap {
    position: relative;
    height: 200%;
    z-index: 99;
}

.top-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.8);
    color: #FFF;
    height: 80px;
    width: 100%;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 99;
    border: 0px;
}

.menu-container {
    position: sticky;
    position: -webkit-sticky;
    top: 0px;
    z-index: 99999999999999999;
}



.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.menu>li {
    margin: 0 0.1rem;
    overflow: hidden;
    font-family: 'Red Hat Display', sans-serif;

}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked+.menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked+.menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked+.menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

.active {
    color: #faabe2 !important;
}

.back {
    font-weight: 900 !important;
    background-color: #333;
    padding: 10px 20px;
    border-radius: 50px;
}


.logo {
    width: 70px;
}

.menu {
    display: flex;
}

.menu>li {
    list-style-type: none;
    color: white;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.menu>li>a {
    color: white;
    text-transform: none;
    text-decoration: none;
    font-weight: 300;
    font-size: 16px;
}

.container {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 90%;
    height: 100%;
    z-index: 999;
}

.primary {
    position: sticky;
    display: flex;
    align-items: center;
    top: 0px;
    height: 100%;
    width: 100vw;
    background-color: white;
    flex-direction: column;
}

.secondary {
    position: sticky;
    display: flex;
    align-items: center;
    top: 0px;
    height: 100%;
    width: 100vw;
    background-color: #ddd;
    flex-direction: column;
}

/* Nuova sezione secondaria per il viewer FBX */
.secondary-bis {
    position: sticky;
    display: flex;
    align-items: center;
    top: 0px;
    height: 100%;
    width: 100vw;
    background-color: #ddd;
    flex-direction: column;
}

.third {
    position: sticky;
    display: flex;
    align-items: center;
    top: 0px;
    height: 100%;
    width: 100vw;
    background-color: white;
    flex-direction: column;
}

.forth {
    position: sticky;
    display: flex;
    align-items: center;
    top: 0px;
    height: 100%;
    width: 100vw;
    background-color: #ddd;
    flex-direction: column;
}

.fifth {
    position: sticky;
    display: flex;
    align-items: center;
    top: 0px;
    height: 100%;
    width: 100vw;
    background-color: white;
    flex-direction: column;
}

.logo-collaborations {
    width: 60%;
    padding: 20px;
}

.pt-4 {
    padding-top: 80px;
}

.pt-3 {
    padding-top: 50px;
}

.pt-2 {
    padding-top: 30px;
}

.pt-1 {
    padding-top: 15px;
}

.pb-4 {
    padding-bottom: 80px !important;
    ;
}

.pb-3 {
    padding-bottom: 50px;
}

.pb-2 {
    padding-bottom: 30px;
}

.pb-1 {
    padding-bottom: 15px;
}

h1 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: rgb(22, 42, 67);
    font-size: 60px;
}

h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: rgb(22, 42, 67);
    font-size: 32px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    transition: color 0.5s ease-in-out;
    line-height: 30px;
}

.flex-start {
    align-items: flex-start;
}

.height-collaborations {
    height: 200px !important;
}

.vh-100 {
    height: 100vh;
}

h3:hover {
    color: #3b86ff;
}

.cv {
    line-height: 25px;
}

.cv:not(:first-child) {
    padding-left: 30px;
}

.btncv-container {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.btn-font {
    color: #162a43;
    font-size: 14px;
    font-family: 'Red Hat Display', sans-serif;
    display: block;
    text-align:center;
}

.btncv {
    text-decoration: none;
    color: white;
    background: rgb(22, 42, 67);
    padding: 10px 20px;
    border: 0px;
    border-radius: 50px;
    font-weight: 800;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 18px;
    display: inline-block;
}

.flag {
    width: 15px;
    padding-right: 10px;
}

.btncv-eng {
    display: inline-block;
    background: rgb(22, 42, 67);
}

.flex-row {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.cursor-link {
    cursor: pointer;
}

.col-2 {
    width: 16.66%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.33%;
}

.col-5 {
    width: 41.66%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.33%;
}

.col-8 {
    width: 66.66%;
}

.col-12 {
    width: 100%;
}

.text-left {
    text-align: left;
}

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

.text-right {
    text-align: right;
}

.showOnMobile {
    display: none;
    background-position: center;
    background-size: contain;
    padding-top: 80px;
}

.showOnMobile>img {
    width: 100%;
}

p {
    font-family: 'Red Hat Display', sans-serif;
    color: #333;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    margin-top: 0px;
    margin-bottom: 0px;
}

label {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 14px;
    display: block;
    padding-bottom: 5px;
}

.title-contacts {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 40px;
    font-weight: 700;
}

.contact-info {
    text-align: left;
    justify-content: flex-start;
}

.contacts-text {
    display: flex;
    flex-direction: row;
    padding: 0px;
}

.text-padding-left {
    padding-left: 20px;
}

textarea {
    width: 100% !important;
    height: 120px !important;
    font-family: 'Red Hat Display', sans-serif;
    resize: vertical;
    -webkit-appearance: textfield;
    padding-top: 10px;
}

textarea::placeholder {
    padding-left: 10px;
    padding-top: 8px;
    font-family: 'Red Hat Display', sans-serif;

}

input {
    width: 100% !important;
    font-family: 'Red Hat Display', sans-serif;
}

.form-input {
    height: 40px;
    width: 90%;
    padding: 0 20px;
    -webkit-appearance: textfield;
    font-size: 20px;
}

.form-input::placeholder {

    font-size: 20px;
    font-weight: 300;
}

.form-input:focus-visible {
    outline-color: rgb(22, 42, 67);
    box-shadow: 0px 0px 10px rgb(22, 42, 67);
}

.btn-form {
    background-color: rgb(22, 42, 67);
    color: white;
    padding: 10px 40px;
    border: 0;
    font-size: 20px;
    text-align: left;
}

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

/* Skills Bar */
.skills-container {
    width: 100%;
    background-color: #ddd;
}

.p-skills {
    padding-top: 7px;
    text-align: left;
}

.container-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-text {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.social {
    display: flex;
    flex-direction: row;
}

.social-icons {
    width: 50px;
}

.social>div:not(:first-child) {
    padding-left: 40px;
}

.required {
    font-size: 12px;
    color: red;
    font-weight: 300;
    font-family: 'Red Hat Display', sans-serif;
}

.skills {
    text-align: right;
    padding-top: 0px;
    padding-bottom: 0px;
    color: white;
    font-weight: 300;
    font-family: 'Red Hat Display', sans-serif;
}

.w80 {
    width: 80%;
}

.bar-text {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.html {
    background-color: rgb(22, 42, 67);
    width: 100%;
    font-size: 10px;
    padding-right: 5px;
    box-sizing: border-box;
}

.css {
    width: 100%;
    font-size: 10px;
    padding-right: 5px;
    box-sizing: border-box;
    background-color: rgb(22, 42, 67);
}

.js {
    width: 95%;
    font-size: 10px;
    padding-right: 5px;
    box-sizing: border-box;
    background-color: rgb(22, 42, 67);
}

.jquery {
    width: 90%;
    font-size: 10px;
    padding-right: 5px;
    box-sizing: border-box;
    background-color: rgb(22, 42, 67);
}

.react {
    width: 50%;
    font-size: 10px;
    padding-right: 5px;
    box-sizing: border-box;
    background-color: rgb(22, 42, 67);
}

.php {
    width: 100%;
    font-size: 10px;
    padding-right: 5px;
    box-sizing: border-box;
    background-color: rgb(22, 42, 67);
}

.laravel {
    width: 75%;
    font-size: 10px;
    padding-right: 5px;
    box-sizing: border-box;
    background-color: rgb(22, 42, 67);
}

.python {
    width: 90%;
    font-size: 10px;
    padding-right: 5px;
    box-sizing: border-box;
    background-color: rgb(22, 42, 67);
}

.mysql {
    width: 95%;
    font-size: 10px;
    padding-right: 5px;
    box-sizing: border-box;
    background-color: rgb(22, 42, 67);
}

.raspi {
    width: 100%;
    font-size: 10px;
    padding-right: 5px;
    box-sizing: border-box;
    background-color: rgb(22, 42, 67);
}

.google {
    width: 90%;
    font-size: 10px;
    padding-right: 5px;
    box-sizing: border-box;
    background-color: rgb(22, 42, 67);
}

.aws {
    width: 65%;
    font-size: 10px;
    padding-right: 5px;
    box-sizing: border-box;
    background-color: rgb(22, 42, 67);
}

.adobe {
    width: 90%;
    font-size: 10px;
    padding-right: 5px;
    box-sizing: border-box;
    background-color: rgb(22, 42, 67);
}

.img-project {
    width: 100%;
    box-shadow: 5px 5px 15px #999;
    border: 15px solid white;
    box-sizing: border-box;
    max-height: 500px;
}

/* Viewer FBX */
.fbx-viewer {
    width: 100%;
    height: 60vh;
    background: #111;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.upload-control input[type="file"] {
    font-size: 16px;
    font-family: 'Red Hat Display', sans-serif;
}

h2 {
    margin-bottom: 0;
}

.w50 {
    width: 50%;
}

.button-send {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Message handling */

.message-form {
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 999999999999999999999;
    top: 0px;
    left: 0px;
    display: none;
}

.text-red {
    color: red;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 26px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    padding: 0px 15px;
}

.text-green {
    color: green;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 26px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    padding: 0px 15px;
}



/* Skills Bar End */



/* SPINNER LOADER */
.spinner-container {
    width: 100vw;
    height: 100vh;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 99999999999999999999999999999999999999999999;
}

.spinner {
    position: relative;
    width: 24.6px;
    height: 24.6px;
}

.spinner div {
    width: 100%;
    height: 100%;
    background-color: #162a43;
    border-radius: 50%;
    animation: spinner-4t3wzl 1.25s infinite backwards;
}

.spinner div:nth-child(1) {
    animation-delay: 0.15s;
    background-color: rgba(22, 42, 67, 0.9);
}

.spinner div:nth-child(2) {
    animation-delay: 0.3s;
    background-color: rgba(22, 42, 67, 0.8);
}

.spinner div:nth-child(3) {
    animation-delay: 0.45s;
    background-color: rgba(22, 42, 67, 0.7);
}

.spinner div:nth-child(4) {
    animation-delay: 0.6s;
    background-color: rgba(22, 42, 67, 0.6);
}

.spinner div:nth-child(5) {
    animation-delay: 0.75s;
    background-color: rgba(22, 42, 67, 0.5);
}

/* SPINNER LOADER END */

.container-footer {
    display: flex;
    justify-content: space-between;
    color: white;
    width: 100%;
    padding: 0px 30px;
    align-items: center;
    height: 100%;
    font-size: 12px;
}

.img-footer {
    height: 30px;
}

footer {
    height: 90px;
    background-color: black;
    position: relative;
    display: flex;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 300;
}

/* STL Prototyping section */
#prototyping {
    background: #0f172a;
}
#prototyping h1 {
    color: #e2e8f0;
}
.container-prototyping {
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: stretch;
}
#stl-viewer.fbx-viewer {
    width: 100%;
    max-width: 100%;
    height: 80vh;
    margin: 20px 0 40px;
    background: linear-gradient(180deg, #0b1220 0%, #0a0f1a 100%);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    position: relative;
}

#stl-viewer.fbx-viewer::after {
    content: "💡 Tip: Cmd+Scroll (Mac) o Ctrl+Scroll (Win) per zoom";
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    font-family: 'Red Hat Display', sans-serif;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#stl-viewer.fbx-viewer:hover::after {
    opacity: 1;
}

/* Loading button and progress styles */
#stl-viewer button:hover {
    transform: translate(-50%, -50%) scale(1.05) !important;
}

#stl-viewer button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: translate(-50%, -50%) scale(1) !important;
}

@media screen and (max-width:1600px) {
    p {
        font-family: 'Red Hat Display', sans-serif;
        color: #333;
        font-size: 18px;
        font-weight: 300;
        line-height: 1.5;
        margin-top: 0px;
        margin-bottom: 0px;
    }

}

@media screen and (max-width:1300px) {
    p {
        font-family: 'Red Hat Display', sans-serif;
        color: #333;
        font-size: 16px;
        font-weight: 300;
        line-height: 1.5;
        margin-top: 0px;
        margin-bottom: 0px;
    }

}

@media screen and (max-width:1060px) {
    h1 {
        font-size: 30px;
    }

    .menu-button-container {
        display: flex;
    }

    .menu {
        position: absolute;
        top: 0;
        margin-top: 80px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    #menu-toggle~.menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    #menu-toggle:checked~.menu li {
        border: 1px solid #333;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    .menu>li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: white;
        background-color: #222;
    }

    .menu>li:not(:last-child) {
        border-bottom: 1px solid #444;
    }

    .back {
        font-weight: 900 !important;
        color: #9fd0ea !important;
        background-color: transparent;
        border-radius: 0;
        padding: 0;
    }

    .audio-item {
        width: 100%;
    }

    .w-60 {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .w-40 {
        display: none;
    }

    .btn {
        height: 100px;
        min-width: 110px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    .contact-info {
        width: 100%;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .map {
        min-height: 400px;
    }

    .contacts-container {
        flex-direction: column;
    }

    .pt-5 {
        padding-top: 50px;
    }

    .contact-form {
        width: 100%;
    }

    .send-message-title {
        font-weight: 300;
        text-align: center;
    }

    input {
        width: 100% !important;
    }

    input::placeholder {
        padding-left: 20px;
    }

    .flex-box {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .text-mobile {
        text-align: justify;
        margin-top: 20px;
        width: 100% !important;
        font-size: 22px;
    }

    .contact-form {
        flex-direction: column;
    }

    .form-input {
        -webkit-appearance: textfield;
        text-indent: 0px;
        box-sizing: border-box;
    }

    .form-input::placeholder {
        padding: 0px;
    }

    textarea {
        -webkit-appearance: textfield;
        padding-top: 10px;
        box-sizing: border-box;
    }

    #name {
        text-transform: capitalize;
    }

    #email {
        text-transform: lowercase;
    }




    .recaptcha {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .bg-img-section {
        background-position-x: 20%;
    }

    .container-footer:first-child {
        font-size: 12px;
    }

    .col-m-12 {
        width: 100%;
    }

    .primary-m {
        position: relative;
        height: 100%;
        width: 100vw;
        background-color: white;
        text-align: center;
    }

    .secondary-m {
        position: relative;
        height: 100%;
        width: 100vw;
        background-color: #ddd;
        text-align: center;
    }

    .third-m {
        position: relative;
        height: 100%;
        width: 100vw;
        background-color: white;
        text-align: center;
    }

    .forth-m {
        position: relative;
        height: 100%;
        width: 100vw;
        background-color: #ddd;
        text-align: center;
    }

    .fifth-m {
        position: relative;
        height: 100%;
        width: 100vw;
        background-color: white;
        text-align: center;
    }

    .hideOnMobile {
        display: none;
    }

    .height-collaborations {
        height: 80px !important;
    }

    .title-contacts {
        font-size: 30px;
    }

    .container-footer:first-child {
        font-size: 12px;
    }

    .btncv-container {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .btncv {
        display: block;
        margin-left: 0px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #prototyping {
        display: none;
    }
}