/* Custom styles for Delax Website */

/* --- GENERAL & ANIMATIONS --- */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.dna-sphere {
    animation: pulse-sphere 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-sphere {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(168, 85, 247, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 70px rgba(249, 115, 22, 0.4); }
}

.bg-stars-sm {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.55 3.55l1.414 1.414M95.036 95.036l1.414 1.414' stroke='%234c2889' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3Cpath d='M96.45 3.55l-1.414 1.414M4.964 95.036L3.55 96.45' stroke='%234c2889' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.animate-pan-slow {
    animation: pan-background 100s linear infinite;
}

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

.animate-spin-slow {
    animation: spin 20s linear infinite;
}

/* --- TECHNOLOGY SECTION --- */
.tech-cell {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}
.tech-cell:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease-in-out;
}
.tech-cell:hover:before {
    width: 200%;
    height: 200%;
}
.tech-cell:hover {
    transform: translateY(-5px);
    border-color: #A855F7;
}
.tech-cell i {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #A855F7, #F97316);
    transition: transform 0.3s ease-in-out;
}
.tech-cell:hover i {
    transform: scale(1.1);
}

/* --- DNA PRINCIPLE SECTION --- */
.dna-item:hover .dna-line,
.dna-item:hover .dna-icon {
    opacity: 1;
}
.dna-item:hover h4 {
    color: white;
}

/* --- STATS SECTION --- */
.stats-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(168, 85, 247, 0.3) 1px, transparent 1px), linear-gradient(0deg, rgba(168, 85, 247, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: move-grid 4s linear infinite;
    z-index: 0;
}
@keyframes move-grid {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}
    
/* --- STAGES SECTION --- */
.stage-button {
    position: relative;
    transition: all 0.3s ease-in-out;
}
.stage-button.active {
    background-color: rgba(168, 85, 247, 0.1);
    color: white;
}
.stage-button .highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-image: linear-gradient(to bottom, #A855F7, #F97316);
    transform: scaleY(0);
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}
.stage-button.active .highlight {
    transform: scaleY(1);
}

.hologram-bg {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3e%3cpath fill='none' stroke='%23A855F7' stroke-width='1.5' d='M 400 0 A 400 400 0 0 1 400 800 M 400 0 A 400 400 0 0 0 400 800 M 0 400 A 400 400 0 0 1 800 400 M 0 400 A 400 400 0 0 0 800 400 M 400 0 C 179.086 0 0 179.086 0 400 M 800 400 C 800 179.086 620.914 0 400 0 M 400 800 C 620.914 800 800 620.914 800 400 M 0 400 C 0 620.914 179.086 800 400 800'/%3e%3c/svg%3e");
    background-size: cover;
    animation: rotate-sphere 60s linear infinite;
}
@keyframes rotate-sphere {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hologram-icon-wrapper > i {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* --- FOOTER GEO TICKER --- */
.geo-ticker {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.geo-ticker-track {
    display: inline-block;
    animation: ticker-animation 60s linear infinite;
}
@keyframes ticker-animation {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* --- FLOATING ACTION BUTTON (FAB) --- */
#contact-fab.active #fab-main-button i {
    transform: rotate(135deg);
}
#fab-main-button {
    animation: pulse-glow 2s infinite ease-in-out; 
}
.fab-options .fab-option {
    position: absolute;
    left: 8px; /* (64px - 48px) / 2 */
    width: 48px; 
    height: 48px;
    border-radius: 9999px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    transform: translateY(0) scale(0.5);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: calc(0.05s * var(--i));
}
#contact-fab.active .fab-option {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(calc(-64px * (var(--i) + 1)));
}
.fab-option:hover {
    transform: translateY(calc(-64px * (var(--i) + 1) - 5px)) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px 0px rgba(138, 43, 226, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(255, 165, 0, 0.2);
        transform: scale(1.05);
    }
}