/* 
* Tech Banner Styles per Studio Innovativo
* Created: 2025-05-11
* Updated: 2025-07-25 - Design minimal moderno con tagli diagonali
*/

.tech-banner {
    position: relative;
    background: transparent;
    padding: 0;
    overflow: hidden;
    z-index: 1;
    /* Forma minimal moderna con angoli diagonali */
    clip-path: polygon(
        0% 8%,          /* Inizio a sinistra con taglio diagonale minimal */
        100% 0%,        /* Angolo diagonale pulito in alto a destra */
        100% 92%,       /* Mantenimento forma dritta a destra */
        0% 100%         /* Taglio diagonale minimal in basso a sinistra */
    );
    margin: 4rem 0;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 187, 0.15);
    position: relative;
    border: none;
}

/* Stile rimosso: ora utilizziamo direttamente il polygon nel selettore principale */

/* Responsive design con forme minimal moderne */
@media (max-width: 768px) {
    .tech-banner {
        clip-path: polygon(
            0% 5%,          /* Taglio diagonale più sottile su mobile */
            100% 0%,        /* Angolo diagonale pulito in alto a destra */
            100% 95%,       /* Mantenimento forma dritta a destra */
            0% 100%         /* Taglio diagonale minimal in basso a sinistra */
        );
        margin: 3rem 0;
        box-shadow: 0 8px 25px rgba(0, 0, 187, 0.12);
    }
}

/* SVG Wave Background */
.wave-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.08;
    transform: scale(1.1); /* Ampliamo leggermente per coprire i bordi inclinati */
}

/* Minimal Grid Background */
.tech-banner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L40 0L40 40L0 40Z' fill='none' stroke='%230000bb' stroke-width='0.3' opacity='0.5'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    z-index: -1;
    opacity: 0.08;
    transform: rotate(2deg); /* Rotazione più subtile per effetto moderno */
}

/* Animated Particles */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(0, 0, 187, 0.5);
    animation: particle-animation 15s infinite linear;
    z-index: 1;
}

/* Generate 20 particles with different positions and animation delays */
@keyframes particle-animation {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--end-x), var(--end-y)) scale(1);
        opacity: 0;
    }
}

/* Digital Circuit Lines */
.circuit-line {
    position: absolute;
    background-color: rgba(0, 0, 187, 0.1);
    z-index: 0;
}

.horizontal-line {
    height: 1px;
    width: 100%;
}

.vertical-line {
    width: 1px;
    height: 100%;
}

.circuit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 187, 0.2);
    z-index: 1;
}

.pulse-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0000bb;
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Content Styles */
.tech-banner-content {
    position: relative;
    z-index: 10;
    padding: 140px 0 120px;
}

/* Elementi decorativi con animazione a onde rimossi */
.tech-banner::before {
    content: none;
}

.tech-banner::after {
    content: none;
}

/* Montagne animate rimosse */
.tech-banner .mountains {
    display: none;
}

/* Decorazione angolare rimossa */
.tech-banner .corner-decoration {
    display: none;
}

/* Particelle fluttuanti */
.tech-banner .floating-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 187, 0.3);
    border-radius: 50%;
    filter: blur(2px);
    z-index: 3;
    animation: float-up 8s ease-in-out infinite;
}

@keyframes wave-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.25;
        transform: scale(1.1);
    }
}

@keyframes pulse-slow {
    0% {
        opacity: 0.05;
    }
    100% {
        opacity: 0.1;
    }
}

@keyframes float-up {
    0% {
        transform: translateY(100%) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: translateY(50%) translateX(30px);
    }
    100% {
        transform: translateY(0%) translateX(0);
        opacity: 0;
    }
}

.tech-banner h2 {
    font-weight: 700;
    color: #0000bb;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.tech-banner h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #0000bb;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.tech-banner .highlight {
    display: inline-block;
    padding: 0 8px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.tech-banner .highlight::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background-color: rgba(0, 0, 187, 0.2);
    bottom: 0;
    left: 0;
    z-index: -1;
}

.tech-banner p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(0, 0, 187, 0.9);
}

.tech-banner-btn {
    display: inline-block;
    background-color: #0000bb;
    color: #ffffff;
    font-weight: 600;
    padding: 14px 32px;
    border: 2px solid #0000bb;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tech-banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #ffffff;
    transition: all 0.3s ease;
    z-index: -1;
}

.tech-banner-btn:hover {
    color: #0000bb;
    background-color: #ffffff;
    border-color: #ffffff;
}

.tech-banner-btn:hover::before {
    width: 100%;
}

.tech-banner .typing-text {
    color: #0000bb;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 0 5px;
    background-color: rgba(0, 0, 187, 0.1);
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tech-banner-content {
        padding: 70px 0;
    }
    
    .tech-banner h2 {
        font-size: 2rem;
    }
    
    .tech-banner p {
        font-size: 1.1rem;
    }
}
