/* Hypaz Official Color Palette */
:root {
    /* Primary Colors */
    --primary-cyan: #0AC4CC;
    --light-cyan: #80F3F8;
    --deep-blue: #0C5777;
    --teal: #078C91;
    --black: #040404;
    --white: #FCFCFC;
    
    /* Logo Colors */
    --bright-cyan: #3EF3FF;
    --dark-blue: #004979;
    --cyan-alt: #00C8D1;
    
    /* Functional Colors */
    --background-color: #040404;
    --text-color: #FCFCFC;
    --text-muted: #80F3F8;
    --accent-color: #0AC4CC;
    --accent-hover: #078C91;
}

/* Font Import */
@import url('../fonts/stylesheet.css');

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kongress', sans-serif;
    font-weight: 400;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(4, 4, 4, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--primary-cyan);
    box-shadow: 0 4px 20px rgba(10, 196, 204, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--bright-cyan));
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-cyan);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-cyan);
}

/* Main Content Area */
main {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 5%;
    background: linear-gradient(135deg, #040404 0%, #0C5777 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(10, 196, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(62, 243, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Animated Wave Background */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: 
        linear-gradient(0deg, rgba(10, 196, 204, 0.05) 0%, transparent 100%);
    animation: wave 15s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-25%) translateY(-10px);
    }
    50% {
        transform: translateX(-50%) translateY(0);
    }
    75% {
        transform: translateX(-25%) translateY(10px);
    }
}

/* Wave Elements - Tech Particle Effect */
.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(10, 196, 204, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(10, 196, 204, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}

.wave::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 5px;
    height: 5px;
    background: rgba(10, 196, 204, 1);
    border-radius: 50%;
    box-shadow: 
        0 0 10px 3px rgba(10, 196, 204, 0.6),
        10vw 10vh 0 0 rgba(10, 196, 204, 1),
        10vw 10vh 10px 3px rgba(10, 196, 204, 0.6),
        25vw 5vh 0 0 rgba(128, 243, 248, 1),
        25vw 5vh 10px 3px rgba(128, 243, 248, 0.6),
        40vw 15vh 0 0 rgba(10, 196, 204, 1),
        40vw 15vh 10px 3px rgba(10, 196, 204, 0.6),
        55vw 8vh 0 0 rgba(62, 243, 255, 1),
        55vw 8vh 10px 3px rgba(62, 243, 255, 0.6),
        15vw 25vh 0 0 rgba(10, 196, 204, 1),
        15vw 25vh 10px 3px rgba(10, 196, 204, 0.6),
        70vw 30vh 0 0 rgba(128, 243, 248, 1),
        70vw 30vh 10px 3px rgba(128, 243, 248, 0.6),
        85vw 12vh 0 0 rgba(10, 196, 204, 1),
        85vw 12vh 10px 3px rgba(10, 196, 204, 0.6),
        30vw 35vh 0 0 rgba(62, 243, 255, 1),
        30vw 35vh 10px 3px rgba(62, 243, 255, 0.6),
        92vw 28vh 0 0 rgba(128, 243, 248, 1),
        92vw 28vh 10px 3px rgba(128, 243, 248, 0.6),
        12vw 40vh 0 0 rgba(10, 196, 204, 1),
        12vw 40vh 10px 3px rgba(10, 196, 204, 0.6),
        48vw 45vh 0 0 rgba(62, 243, 255, 1),
        48vw 45vh 10px 3px rgba(62, 243, 255, 0.6),
        62vw 50vh 0 0 rgba(128, 243, 248, 1),
        62vw 50vh 10px 3px rgba(128, 243, 248, 0.6),
        78vw 38vh 0 0 rgba(10, 196, 204, 1),
        78vw 38vh 10px 3px rgba(10, 196, 204, 0.6),
        35vw 58vh 0 0 rgba(62, 243, 255, 1),
        35vw 58vh 10px 3px rgba(62, 243, 255, 0.6);
    animation: float 15s ease-in-out infinite;
}

.wave1::after {
    animation: float 15s ease-in-out infinite;
}

.wave2::after {
    top: 18%;
    left: 8%;
    animation: float 18s ease-in-out infinite 3s;
    box-shadow: 
        0 0 10px 3px rgba(128, 243, 248, 0.6),
        18vw 20vh 0 0 rgba(10, 196, 204, 1),
        18vw 20vh 10px 3px rgba(10, 196, 204, 0.6),
        33vw 12vh 0 0 rgba(128, 243, 248, 1),
        33vw 12vh 10px 3px rgba(128, 243, 248, 0.6),
        47vw 22vh 0 0 rgba(10, 196, 204, 1),
        47vw 22vh 10px 3px rgba(10, 196, 204, 0.6),
        63vw 14vh 0 0 rgba(62, 243, 255, 1),
        63vw 14vh 10px 3px rgba(62, 243, 255, 0.6),
        22vw 32vh 0 0 rgba(10, 196, 204, 1),
        22vw 32vh 10px 3px rgba(10, 196, 204, 0.6),
        76vw 38vh 0 0 rgba(128, 243, 248, 1),
        76vw 38vh 10px 3px rgba(128, 243, 248, 0.6),
        88vw 24vh 0 0 rgba(10, 196, 204, 1),
        88vw 24vh 10px 3px rgba(10, 196, 204, 0.6),
        38vw 48vh 0 0 rgba(62, 243, 255, 1),
        38vw 48vh 10px 3px rgba(62, 243, 255, 0.6),
        58vw 42vh 0 0 rgba(128, 243, 248, 1),
        58vw 42vh 10px 3px rgba(128, 243, 248, 0.6),
        8vw 52vh 0 0 rgba(10, 196, 204, 1),
        8vw 52vh 10px 3px rgba(10, 196, 204, 0.6),
        68vw 60vh 0 0 rgba(62, 243, 255, 1),
        68vw 60vh 10px 3px rgba(62, 243, 255, 0.6),
        44vw 68vh 0 0 rgba(128, 243, 248, 1),
        44vw 68vh 10px 3px rgba(128, 243, 248, 0.6);
}

.wave3::after {
    top: 14%;
    left: 12%;
    animation: float 22s ease-in-out infinite 6s;
    box-shadow: 
        0 0 10px 3px rgba(62, 243, 255, 0.6),
        24vw 26vh 0 0 rgba(10, 196, 204, 1),
        24vw 26vh 10px 3px rgba(10, 196, 204, 0.6),
        38vw 18vh 0 0 rgba(128, 243, 248, 1),
        38vw 18vh 10px 3px rgba(128, 243, 248, 0.6),
        52vw 28vh 0 0 rgba(10, 196, 204, 1),
        52vw 28vh 10px 3px rgba(10, 196, 204, 0.6),
        66vw 20vh 0 0 rgba(62, 243, 255, 1),
        66vw 20vh 10px 3px rgba(62, 243, 255, 0.6),
        28vw 36vh 0 0 rgba(10, 196, 204, 1),
        28vw 36vh 10px 3px rgba(10, 196, 204, 0.6),
        80vw 44vh 0 0 rgba(128, 243, 248, 1),
        80vw 44vh 10px 3px rgba(128, 243, 248, 0.6),
        94vw 32vh 0 0 rgba(10, 196, 204, 1),
        94vw 32vh 10px 3px rgba(10, 196, 204, 0.6),
        42vw 54vh 0 0 rgba(62, 243, 255, 1),
        42vw 54vh 10px 3px rgba(62, 243, 255, 0.6),
        56vw 62vh 0 0 rgba(128, 243, 248, 1),
        56vw 62vh 10px 3px rgba(128, 243, 248, 0.6),
        16vw 64vh 0 0 rgba(10, 196, 204, 1),
        16vw 64vh 10px 3px rgba(10, 196, 204, 0.6),
        72vw 72vh 0 0 rgba(62, 243, 255, 1),
        72vw 72vh 10px 3px rgba(62, 243, 255, 0.6);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-40px) translateX(-10px);
    }
    75% {
        transform: translateY(-20px) translateX(15px);
    }
}

.hero-content {
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--bright-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    color: var(--light-cyan);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--teal));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(10, 196, 204, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(10, 196, 204, 0.5);
    border-color: var(--bright-cyan);
}

/* Sections */
section {
    padding: 5rem 5%;
    width: 100%;
    margin: 0 auto;
}

section h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    text-align: center;
}

section .section-subtitle {
    font-size: 1.2rem;
    color: var(--light-cyan);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Services Section */
.services {
    background: linear-gradient(180deg, #040404 0%, #0C5777 50%, #040404 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    background: rgba(12, 87, 119, 0.3);
    border: 1px solid var(--primary-cyan);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--bright-cyan));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 196, 204, 0.3);
    border-color: var(--bright-cyan);
}

.service-item h3 {
    font-size: 1.8rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-item p {
    color: var(--light-cyan);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Articles/Cards */
article {
    margin: 2rem auto;
    max-width: 900px;
    background: rgba(12, 87, 119, 0.2);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--teal);
    transition: all 0.3s ease;
}

article:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(10, 196, 204, 0.2);
}

article h3 {
    color: var(--primary-cyan);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

article p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Customers Section */
.customers {
    background: rgba(12, 87, 119, 0.1);
}

.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.customer-item {
    background: rgba(12, 87, 119, 0.3);
    border: 2px solid var(--teal);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    height: 150px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-item:hover {
    background: rgba(12, 87, 119, 0.5);
    border-color: var(--primary-cyan);
    box-shadow: 0 8px 25px rgba(10, 196, 204, 0.3);
}

.customer-item img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.3s ease;
}

.customer-item:hover img {
    filter: brightness(1.1) contrast(1.2);
    transform: scale(1.05);
}

/* Form Styles */
form {
    background: rgba(12, 87, 119, 0.3);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--teal);
    max-width: 700px;
    margin: 0 auto;
}

form label {
    color: var(--text-color);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1.1rem;
}

form input, form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--teal);
    border-radius: 8px;
    background-color: rgba(4, 4, 4, 0.5);
    color: var(--text-color);
    font-family: 'Kongress', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

form input:focus, form textarea:focus {
    border-color: var(--primary-cyan);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 196, 204, 0.1);
}

form button {
    background: linear-gradient(135deg, var(--primary-cyan), var(--teal));
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(10, 196, 204, 0.3);
}

form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(10, 196, 204, 0.5);
}

/* Footer */
footer {
    background: linear-gradient(180deg, #040404 0%, #0C5777 100%);
    color: var(--light-cyan);
    text-align: center;
    padding: 3rem 5%;
    border-top: 1px solid var(--primary-cyan);
}

footer p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

footer a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--bright-cyan);
}

/* Team member styles */
.team-member {
    max-width: 900px;
    margin: 3rem auto;
    padding: 3rem;
    background: rgba(12, 87, 119, 0.2);
    border-radius: 15px;
    border: 1px solid var(--teal);
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 2rem;
    border: 4px solid var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(10, 196, 204, 0.3);
}

.team-member h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-cyan);
    font-weight: 700;
}

.team-member p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.team-member p strong {
    color: var(--light-cyan);
}

.team-member a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.team-member a:hover {
    color: var(--bright-cyan);
}

/* Chatbot Styles */
#chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#chatbot-toggle {
    width: 64px;
    height: 64px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(10,196,204,0.15);
    border: none;
    background: #0AC4CC;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    transition: box-shadow 0.2s;
    cursor: pointer;
    animation: chatbotBounceIn 1.2s ease-out forwards;
}

#chatbot-toggle:hover {
    box-shadow: 0 4px 16px rgba(10,196,204,0.25);
    background: #078C91;
    animation: none; /* Stop wiggling on hover */
}

#chatbot-toggle svg {
    width: 40px;
    height: 40px;
}

#chatbot-container {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 400px;
    height: 600px;
    max-height: calc(100vh - 120px);
    background: rgba(4, 4, 4, 0.98);
    border: 2px solid var(--primary-cyan);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(10, 196, 204, 0.3);
    flex-direction: column;
    overflow: hidden;
}

#chatbot-container.active {
    display: flex;
}

#chatbot-header {
    background: linear-gradient(135deg, var(--primary-cyan), var(--teal));
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-header h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
}

#chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

#chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

#chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 1rem;
    border-radius: 10px;
    line-height: 1.5;
}

.message.bot {
    align-self: flex-start;
    background: rgba(12, 87, 119, 0.5);
    border: 1px solid var(--teal);
    color: var(--text-color);
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-cyan), var(--teal));
    color: var(--white);
}

#chatbot-input-area {
    padding: 1rem;
    border-top: 1px solid var(--teal);
    display: flex;
    gap: 0.5rem;
}

#chatbot-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--teal);
    border-radius: 20px;
    background: rgba(12, 87, 119, 0.2);
    color: var(--text-color);
    font-family: 'Kongress', sans-serif;
}

#chatbot-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
}

#chatbot-send {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--teal));
    border: none;
    border-radius: 20px;
    color: var(--white);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#chatbot-send:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .services-grid,
    .customers-grid {
        grid-template-columns: 1fr;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    #chatbot-container {
        width: calc(100% - 20px);
        height: calc(100vh - 120px);
        max-height: 600px;
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    #chatbot-toggle {
        bottom: 20px;
        right: 20px;
    }
}

/* Page-specific header styles */
.page-header {
    padding: 8rem 5% 3rem;
    text-align: center;
    background: linear-gradient(135deg, #040404 0%, #0C5777 100%);
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.3rem;
    color: var(--light-cyan);
    font-weight: 300;
}

/* ============================================ */
/* CHATBOT BUTTON ATTENTION ANIMATION */
/* ============================================ */

@keyframes chatbotBounceIn {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    
    /* Primo rimbalzo */
    15% {
        transform: translateY(-20px) scale(1.05);
    }
    
    /* Primo impatto */
    30% {
        transform: translateY(0) scale(0.95);
    }
    
    /* Secondo rimbalzo (più piccolo) */
    45% {
        transform: translateY(-10px) scale(1.03);
    }
    
    /* Secondo impatto */
    60% {
        transform: translateY(0) scale(0.98);
    }
    
    /* Terzo rimbalzo (piccolissimo) */
    75% {
        transform: translateY(-4px) scale(1.01);
    }
    
    /* Assestamento finale */
    85%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ============================================ */
/* HIDE RECAPTCHA BADGE */
/* ============================================ */

.grecaptcha-badge {
    visibility: hidden !important;
}


