/* ========================================
   HOME TOMICL.AI EFFECTS - NUOVA VERSIONE
   ======================================== */

/* Cerchi 3D Hero */
.circle-3d {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 4px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 1; /* Sempre visibile */
}

.circle-3d[data-theme="security"] {
    border-color: #00D9FF;
    box-shadow: 0 0 60px rgba(0, 217, 255, 0.6), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 1s ease-out 1s both;
}

.circle-3d[data-theme="automation"] {
    border-color: #C084FC;
    box-shadow: 0 0 60px rgba(192, 132, 252, 0.6), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 1s ease-out 1.3s both;
}

.circle-3d[data-theme="backup"] {
    border-color: #FCD34D;
    box-shadow: 0 0 60px rgba(252, 211, 77, 0.6), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 1s ease-out 1.6s both;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.circle-3d::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: inherit;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.circle-3d:hover::before {
    opacity: 0.6;
}

.circle-3d:hover {
    transform: translateY(-10px) scale(1.1);
}

.circle-inner {
    text-align: center;
}

.circle-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.circle-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}

.circle-3d[data-theme="security"] .circle-label {
    color: #00D9FF;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

.circle-3d[data-theme="automation"] .circle-label {
    color: #C084FC;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.8);
}

.circle-3d[data-theme="backup"] .circle-label {
    color: #FCD34D;
    text-shadow: 0 0 10px rgba(252, 211, 77, 0.8);
}

/* Mobile circles */
@media (max-width: 768px) {
    .circle-3d {
        width: 120px;
        height: 120px;
    }

    .circle-icon {
        font-size: 2rem;
    }

    .circle-label {
        font-size: 0.65rem;
    }
}

/* ========================================
   CATALOG CIRCLES SOVRAPPOSTI
   ======================================== */

.catalog-circles-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -100px;
    min-height: 600px;
    position: relative;
    flex-wrap: wrap;
}

.catalog-circle-item {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(30px);
    border: 4px solid var(--circle-color);
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 60px var(--circle-color);
    margin: -80px;
}

.catalog-circle-item:hover {
    transform: scale(1.15) translateY(-20px);
    z-index: 100;
    box-shadow: 0 0 100px var(--circle-color), 0 30px 80px rgba(0, 0, 0, 0.5);
}

.catalog-circle-content {
    position: absolute;
    inset: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.circle-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    color: var(--circle-color);
    opacity: 0.5;
}

.circle-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px var(--circle-color));
}

.circle-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--circle-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    max-width: 280px;
}

.circle-subtitle {
    font-size: 0.875rem;
    color: #CBD5E1;
    margin-bottom: 1rem;
    max-width: 260px;
}

.circle-solutions {
    opacity: 0;
    transition: opacity 0.3s;
    margin-top: 1rem;
}

.catalog-circle-item:hover .circle-solutions {
    opacity: 1;
}

.circle-solutions ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    font-size: 0.75rem;
    color: #94A3B8;
    text-align: left;
}

.circle-solutions li {
    margin: 0.25rem 0;
}

.circle-cta {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--circle-color);
    color: #0F172A;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s;
}

.circle-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--circle-color);
}

/* Mobile catalog circles */
@media (max-width: 768px) {
    .catalog-circles-wrapper {
        flex-direction: column;
        gap: 20px;
        min-height: auto;
    }

    .catalog-circle-item {
        width: 300px;
        height: 300px;
        margin: 0;
    }

    .circle-title {
        font-size: 1.2rem;
    }

    .circle-emoji {
        font-size: 3rem;
    }
}

/* ========================================
   PARTNER MARQUEE SLIDER
   ======================================== */

.partner-marquee {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.partner-track {
    display: flex;
    gap: 3rem;
    animation: scroll-marquee 40s linear infinite;
    width: fit-content;
}

.partner-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-card {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 217, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.partner-logo-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.5);
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo-container img {
    filter: grayscale(0%) brightness(1);
}

.partner-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: #64748B;
    transition: color 0.3s;
    font-family: 'Courier New', monospace;
}

.partner-card:hover .partner-name {
    color: #00D9FF;
}

/* Mobile partners */
@media (max-width: 768px) {
    .partner-card {
        width: 120px;
        height: 80px;
        padding: 1rem;
    }

    .partner-track {
        gap: 2rem;
        animation-duration: 30s;
    }
}

/* ========================================
   LOGO LETTERS ANIMATION
   ======================================== */

.logo-letter {
    display: inline-block;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    animation: fadeInBounce 0.8s ease-out both;
    opacity: 1; /* Visibile di default */
}

.logo-letter:nth-child(1) { animation-delay: 0s; }
.logo-letter:nth-child(2) { animation-delay: 0.2s; }
.logo-letter:nth-child(3) { animation-delay: 0.4s; }
.logo-letter:nth-child(4) { animation-delay: 0.6s; }

.logo-letter:hover {
    transform: scale(1.1) translateY(-5px);
    filter: brightness(1.3);
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
    60% {
        transform: translateY(5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* Claim animation */
#claim-text {
    animation: fadeInUp 1s ease-out 2s backwards;
    opacity: 1 !important;
}

#logo-hero {
    opacity: 1 !important;
}

#convergence-circles {
    opacity: 1 !important;
}

/* ========================================
   RESPONSIVE HERO
   ======================================== */

@media (max-width: 768px) {
    #logo-hero h1 {
        font-size: 3rem;
    }

    #claim-text h2 {
        font-size: 1.5rem;
    }

    #claim-text p {
        font-size: 1rem;
    }
}

/* ========================================
   TOMICL-AI INLINE LOGO
   ======================================== */

.logo-tomicl-ai-inline {
    background: linear-gradient(90deg, #00D9FF 0%, #C084FC 33%, #FCD34D 66%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 0.05em;
    display: inline-block;
    position: relative;
}

/* ========================================
   COMPONENT CARDS (ToMiClAi Methodology)
   ======================================== */

.component-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.component-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.component-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.component-card:hover::before {
    opacity: 1;
}

.component-letter {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Inter', 'Arial', sans-serif;
    margin-bottom: 16px;
    display: inline-block;
    line-height: 1;
}

.component-card h3 {
    color: #FFFFFF;
}

.component-card[data-component="TO"]:hover {
    border-color: #00D9FF;
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.3);
}

.component-card[data-component="MI"]:hover {
    border-color: #C084FC;
    box-shadow: 0 20px 40px rgba(192, 132, 252, 0.3);
}

.component-card[data-component="CL"]:hover {
    border-color: #FCD34D;
    box-shadow: 0 20px 40px rgba(252, 211, 77, 0.3);
}

.component-card[data-component="AI"]:hover {
    border-color: #FFFFFF;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3);
}

/* Responsive Component Cards */
@media (max-width: 768px) {
    .component-card {
        padding: 24px;
    }

    .component-letter {
        font-size: 3rem;
    }

    .component-card h3 {
        font-size: 1.5rem;
    }
}
