﻿@import "tailwindcss";
/* NEUMORPHIC STYLES */

:root {
    --neu-bg-color: #0B1221; /* background-dark */
    --neu-surface-color: #162235; /* surface-dark */
    --neu-primary-color: #00e5ff; /* primary */
    --neu-highlight-light: rgba(30, 46, 69, 0.7); /* Lighter shade of surface-dark */
    --neu-shadow-dark: rgba(5, 10, 20, 0.7); /* Darker shade of background-dark */
    --neu-text-color: #E0E0E0;
    --neu-text-color-dark: #A0A0A0;
}

/* Base style for elevated components */
.neu-elevated {
    background: var(--neu-surface-color);
    border-radius: 20px;
    box-shadow: 8px 8px 16px var(--neu-shadow-dark), -8px -8px 16px var(--neu-highlight-light);
    transition: all 0.3s ease-in-out;
}

    .neu-elevated:hover {
        transform: translateY(-2px);
        box-shadow: 10px 10px 20px var(--neu-shadow-dark), -10px -10px 20px var(--neu-highlight-light);
    }

/* Style for inset/pressed components */
.neu-inset {
    background: var(--neu-surface-color);
    border-radius: 20px;
    box-shadow: inset 6px 6px 12px var(--neu-shadow-dark), inset -6px -6px 12px var(--neu-highlight-light);
    transition: all 0.3s ease-in-out;
}

/* === BUTTONS === */
.neu-btn {
    background: var(--neu-surface-color);
    color: var(--neu-text-color);
    font-weight: bold;
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 5px 5px 10px var(--neu-shadow-dark), -5px -5px 10px var(--neu-highlight-light);
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(30, 46, 69, 0.5); /* Subtle border */
}

    .neu-btn:hover {
        color: var(--neu-primary-color);
        transform: translateY(-1px);
    }

    .neu-btn:active, .neu-btn.active {
        box-shadow: inset 4px 4px 8px var(--neu-shadow-dark), inset -4px -4px 8px var(--neu-highlight-light);
        transform: translateY(1px);
    }

.neu-btn-primary {
    background: var(--neu-primary-color);
    color: var(--neu-bg-color);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

    .neu-btn-primary:hover {
        background: #FFFFFF;
        box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
    }

/* === CARDS === */
.neu-card {
    background: var(--neu-surface-color);
    border-radius: 24px;
    box-shadow: 10px 10px 20px var(--neu-shadow-dark), -10px -10px 20px var(--neu-highlight-light);
    border: 1px solid var(--neu-highlight-light);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .neu-card:hover {
        transform: translateY(-5px);
        box-shadow: 15px 15px 30px var(--neu-shadow-dark), -15px -15px 30px var(--neu-highlight-light);
    }

/* === FORMS === */
.neu-form-container {
    position: relative;
    z-index: 50;
    background: var(--neu-surface-color);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 12px 12px 24px var(--neu-shadow-dark), -12px -12px 24px var(--neu-highlight-light);
}

.neu-input, .neu-select, .neu-textarea {
    width: 100%;
    background-color: var(--neu-bg-color);
    color: var(--neu-text-color);
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: inset 4px 4px 8px var(--neu-shadow-dark), inset -4px -4px 8px var(--neu-highlight-light);
    transition: all 0.3s ease;
}

    .neu-input::placeholder, .neu-textarea::placeholder {
        color: var(--neu-text-color-dark);
    }

    .neu-input:focus, .neu-select:focus, .neu-textarea:focus {
        outline: none;
        box-shadow: inset 5px 5px 10px var(--neu-shadow-dark), inset -5px -5px 10px var(--neu-highlight-light), 0 0 0 2px var(--neu-primary-color); /* Focus ring */
    }

.neu-label {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--neu-text-color-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

/* === ICONS & DECORATIVE ELEMENTS === */
.neu-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--neu-surface-color);
    box-shadow: 8px 8px 16px var(--neu-shadow-dark), -8px -8px 16px var(--neu-highlight-light);
    transition: box-shadow 0.3s ease;
}

    .neu-icon-container .material-symbols-outlined {
        font-size: 36px;
        color: var(--neu-primary-color);
        text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    }

.group:hover .neu-icon-container {
    box-shadow: inset 6px 6px 12px var(--neu-shadow-dark), inset -6px -6px 12px var(--neu-highlight-light);
}
/* === FLUO BORDER CORE === */
.neu-btn {
    position: relative;
    overflow: hidden;
}

/*
    .neu-btn::before {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: inherit;
        background: conic-gradient( from 0deg, transparent 0deg, var(--neu-primary-color) 120deg, transparent 240deg );
        animation: spin 6s linear infinite;
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask-composite: exclude;
        padding: 2px;
    }

.neu-btn:hover::before {
    filter: blur(2px);
    opacity: 1;
}

@keyframes spin {
    to {
        transform: translate3d(-100%,10%,100%) ;
    }
}
*/

/* HEADER FLUO*/
.fluo-border-header {
    position: relative;
    overflow: hidden;
}

/*
    .fluo-border-header::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( 90deg, transparent 0%, rgba(0,229,255,0.8) 50%, transparent 100% );
        height: 2px;
        top: 0;
        animation: spin 3000ms infinite alternate;
    }
*/

@keyframes scan-x {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
    to {
        transform: rotate(360deg);
    }
}
@keyframes spin {
    0% {
        background-position: top center;
    }

    100% {
        background-position: bottom center;
    }

}
/*Video background */
#heroVideo {
    filter: saturate(1.2) contrast(1.1) blur(1px);
    transition: opacity 1s ease;
}

@keyframes bar-grow {
    0% {
        transform: rotateX(-90deg) scaleY(0.5);
        opacity: 0.5;
    }

    100% {
        transform: rotateX(-90deg) scaleY(1);
        opacity: 1;
    }
}

.scanner-beam {
    position: absolute;
    left: -10%;
    width: 120%;
    height: 2px;
    background: #00e5ff;
    box-shadow: 0 0 15px #00e5ff;
    animation: scan 3s linear infinite;
    opacity: 0.7;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.nebula-glow {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.3) 0%, transparent 70%);
    animation: pulse-glow 3s infinite ease-in-out;
    transform: translateZ(-10px);
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.circuit-path {
    position: absolute;
    background: #00e5ff;
    height: 2px;
    box-shadow: 0 0 5px #00e5ff;
    opacity: 0;
    animation: circuit-run 2s infinite linear;
}

@keyframes circuit-run {
    0% {
        width: 0;
        opacity: 1;
    }

    80% {
        width: 100px;
        opacity: 1;
    }

    100% {
        width: 100px;
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}
.glass-panel {
    background: rgba(22, 34, 53, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
/* Netflix Row Styles */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.row-container {
    /*position: relative;*/
    margin-bottom: 3.5rem;
}
.row-slider {
    position: relative;
}

.project-card {
    min-width: 220px;
    width: 220px;
    aspect-ratio: 16 / 9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 0 0 rgba(0, 229, 255, 0);
}

    .project-card.featured {
        min-width: 260px;
        width: 260px;
        aspect-ratio: 16 / 10;
    }

@media (min-width: 640px) {
    .project-card {
        min-width: 280px;
        width: 280px;
    }

        .project-card.featured {
            min-width: 360px;
            width: 360px;
        }
}

@media (min-width: 1024px) {
    .project-card {
        min-width: 320px;
        width: 320px;
    }

        .project-card.featured {
            min-width: 480px;
            width: 480px;
        }
}

.category-header {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cinematic-title {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(to bottom, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 48px;
    height: 48px;
    background: rgba(11, 18, 33, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.row-container:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.5);
    color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.scroll-btn.left {
    left: -24px;
}

.scroll-btn.right {
    right: -24px;
}

/* Simulation Stage Styles */
.simulation-grid {
    background-image: linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
}

    .simulation-grid::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, transparent 0%, #162235 100%);
    }

.chart-bar {
    position: absolute;
    bottom: 0;
    width: 12px;
    background: rgba(0, 229, 255, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.8);
    transform-origin: bottom;
    transform: rotateX(-90deg);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

    .chart-bar:nth-child(1) {
        left: 15px;
        height: 25px;
        animation: bar-grow 2s infinite alternate ease-in-out;
    }

    .chart-bar:nth-child(2) {
        left: 35px;
        height: 45px;
        animation: bar-grow 2.5s infinite alternate ease-in-out 0.2s;
    }

    .chart-bar:nth-child(3) {
        left: 55px;
        height: 35px;
        animation: bar-grow 1.8s infinite alternate ease-in-out 0.4s;
    }


.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.to-transparent {
    --tw-gradient-to: transparent var(--tw-gradient-to-position);
}
.via-background-dark {
    --tw-gradient-to: rgb(11 18 33 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), rgb(11 18 33 / 0.8) var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.from-background-dark {
    --tw-gradient-from: #0B1221 var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(11 18 33 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

/*********************ROCKET BUTTON**********************/

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(11, 18, 33, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #00e5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
    overflow: visible !important;
}

    #backToTop.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #backToTop:not(.visible) {
        transform: translateY(20px);
    }

    #backToTop:hover {
        background: #00e5ff;
        color: #0B1221;
        box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
        transform: translateY(-5px);
    }

.rocket-icon {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes rocket-ignition {
    0% {
        transform: translate(0, 0) rotate(-45deg);
    }

    25% {
        transform: translate(-1px, 1px) rotate(-46deg);
    }

    50% {
        transform: translate(1px, -1px) rotate(-44deg);
    }

    75% {
        transform: translate(-1px, -1px) rotate(-46deg);
    }

    100% {
        transform: translate(0, 0) rotate(-45deg);
    }
}

@keyframes rocket-launch {
    0% {
        transform: translate(0, 0) rotate(-45deg);
        opacity: 1;
    }

    100% {
        transform: translate(50px, -100vh) rotate(-45deg);
        opacity: 0;
    }
}
@keyframes trail-fade {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.igniting .rocket-icon {
    animation: rocket-ignition 0.1s infinite;
    transform: rotate(-45deg);
}

.launching .rocket-icon {
    animation: rocket-launch 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00e5ff;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px #00e5ff;
    animation: trail-fade 0.5s forwards;
    z-index: 99;
}

.exhaust-flame {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
    transform-origin: top;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #00e5ff, transparent);
    border-radius: 4px;
    filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.igniting .exhaust-flame {
    height: 20px;
    opacity: 1;
    animation: exhaust-flicker 0.1s infinite;
}

@keyframes exhaust-flicker {
    0%, 100% {
        opacity: 0.8;
        height: 15px;
    }

    50% {
        opacity: 1;
        height: 25px;
    }
}

.launching .exhaust-flame {
    opacity: 0;
}

/* Nasconde il backToTop quando la modale video YouTube è aperta */
body.video-modal-open #backToTop {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
}

/* Modale YouTube */
#youtubeModal {
    overflow: hidden;
}

    #youtubeModal iframe {
        display: block;
    }

/* Bottone chiusura visibile sempre, anche su mobile landscape */
.modal-close-btn {
    position: fixed;
    top: max(12px, calc(env(safe-area-inset-top, 0px) + 12px));
    right: max(12px, calc(env(safe-area-inset-right, 0px) + 12px));
    z-index: 9999;
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 18, 33, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 229, 255, 0.10);
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .modal-close-btn .material-symbols-outlined {
        font-size: 32px;
        line-height: 1;
        font-variation-settings: 'wght' 500;
    }

    .modal-close-btn:hover,
    .modal-close-btn:focus-visible {
        background: rgba(0, 229, 255, 0.18);
        color: #00e5ff;
        border-color: rgba(0, 229, 255, 0.45);
        outline: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 229, 255, 0.25);
    }

/* Mobile portrait */
@media (max-width: 768px) {
    #youtubeModal {
        padding: 12px;
    }

    .modal-close-btn {
        width: 54px;
        height: 54px;
        top: max(10px, calc(env(safe-area-inset-top, 0px) + 10px));
        right: max(10px, calc(env(safe-area-inset-right, 0px) + 10px));
    }

        .modal-close-btn .material-symbols-outlined {
            font-size: 34px;
        }
}

/* Mobile landscape */
@media (max-width: 932px) and (orientation: landscape) {
    #youtubeModal {
        align-items: center;
        padding-top: 56px;
        padding-right: 8px;
        padding-left: 8px;
        padding-bottom: 8px;
    }

        #youtubeModal > .relative {
            max-height: calc(100vh - 64px);
        }

    .modal-close-btn {
        top: max(8px, calc(env(safe-area-inset-top, 0px) + 8px));
        right: max(8px, calc(env(safe-area-inset-right, 0px) + 8px));
        width: 48px;
        height: 48px;
    }

        .modal-close-btn .material-symbols-outlined {
            font-size: 30px;
        }
}