/* 
   AVLORY HUB: THE SYSTEM SYNCHRONIZATION (PHASE 8)
   Mastery, Agency, Integrated Launch.
*/

:root {
    --p-base: #C700FF;
    --b-base: #2A65E5;
    --mix: #4942CF;
    --white: #FFFFFF;
    --light: #EBEBEB;
    --black: #000000;
    --dark: #121212;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(40px);
    --transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --plum: #8E4585;
}

.activity-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
    animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 5px #10B981; }
    50% { transform: scale(1.5); opacity: 0.5; box-shadow: 0 0 15px #10B981; }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 5px #10B981; }
}

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

html { scroll-behavior: smooth; }



*:focus-visible {
    outline: 2px solid var(--p-base) !important;
    outline-offset: 4px;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
}

canvas#neuron-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* --- GLOBAL FADE-IN (MASTERY) --- */
.reveal { opacity: 0; transform: translateY(15px); transition: var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); }

p.reveal, h1.reveal, h2.reveal, h3.reveal, label.reveal, .team-item.reveal { transition-delay: 0.1s; }

/* --- TYPEWRITER --- */
.typing-text::after { content: '|'; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- CORE LAYOUT --- */
section, header { position: relative; padding: 6rem 10%; }
.hero { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    height: 60px;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0 1.5rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    z-index: 5000;
}

.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: 'Outfit'; font-weight: 800; }
.nav-brand img { height: 26px; width: auto; }
.nav-brand span { 
    background: linear-gradient(135deg, var(--p-base), var(--b-base));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent; 
    letter-spacing: 2px;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--light); font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; opacity: 0.7; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: white; }

.mobile-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s ease;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }
.overlay-link { text-decoration: none; color: white; font-size: 2.5rem; font-family: 'Outfit'; font-weight: 800; opacity: 0; transform: translateY(20px); transition: 0.5s; }
.mobile-overlay.active .overlay-link { opacity: 0.6; transform: translateY(0); }

/* --- CAROUSEL: RESTORED & ALIGNED --- */
.carousel-view {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.carousel-view::-webkit-scrollbar { display: none; }

.carousel-slide {
    min-width: 350px;
    width: 350px;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    padding: 3.5rem 2.5rem;
    border-radius: 45px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.carousel-slide:hover { transform: translateY(-10px); border-color: var(--p-base); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

.carousel-indicators { display: flex; justify-content: center; gap: 10px; margin-top: 3rem; }
.dot { width: 8px; height: 8px; background: rgba(255,255,255,0.1); border-radius: 50%; transition: 0.3s; }
.dot.active { width: 24px; background: var(--p-base); border-radius: 10px; }

/* --- ELECTRIC FLOW --- */
.timeline-container { position: relative; max-width: 1100px; margin: 4rem auto; }
.circuit-path { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(199, 0, 255, 0.1); transform: translateX(-50%); }
.circuit-path::after {
    content: '';
    position: absolute; top: -100px; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to bottom, transparent, var(--p-base), var(--b-base), transparent);
    filter: blur(2px); animation: electric-flow 4s infinite linear;
}

@keyframes electric-flow {
    0% { top: -100px; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.timeline-row { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 5rem; position: relative; }
.timeline-row:nth-child(even) { flex-direction: row-reverse; }

.timeline-node { position: absolute; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; background: var(--dark); border: 2px solid var(--p-base); border-radius: 50%; box-shadow: 0 0 15px var(--p-base); z-index: 10; transition: 0.3s; }
.timeline-node.active { background: var(--p-base); box-shadow: 0 0 25px var(--p-base); }
.timeline-node.in-progress { background: var(--b-base); border-color: var(--b-base); box-shadow: 0 0 15px var(--b-base); }

.timeline-card { width: 45%; height: 260px; background: var(--dark); border: 1px solid var(--glass-border); border-radius: 40px; perspective: 1000px; cursor: pointer; transition: var(--transition); }
.timeline-card:hover { transform: scale(1.02); border-color: var(--p-base); }

.flip-inner { position: relative; width: 100%; height: 100%; transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1); transform-style: preserve-3d; }
.timeline-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; width: 100%; height: 100%; padding: 3rem; backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; }
.flip-back { transform: rotateY(180deg); background: #080808; border-radius: 40px; border: 1px solid var(--p-base); }

/* --- TEAM GRID & EDITORIAL --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 4rem; perspective: 1000px; }
.team-item { 
    background: var(--dark); 
    border: 1px solid var(--glass-border); 
    padding: 3.5rem 2.5rem; 
    border-radius: 50px; 
    transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1); 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    position: relative;
    overflow: hidden;
}

/* Constant Ethereal Glow */
.note-glow::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(199, 0, 255, 0.05) 0%, transparent 60%);
    animation: pulse-glow 4s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.team-item:hover { 
    border-color: var(--p-base); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
}

/* --- FOOTER: 4-COLUMN MASTERY --- */
footer { padding: 6rem 10% 4rem 10%; border-top: 1px solid var(--glass-border); background: #080808; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 4rem; text-align: left; }
.footer-col h4 { font-family: 'Outfit'; font-size: 0.7rem; letter-spacing: 2px; color: var(--p-base); margin-bottom: 1.5rem; }

.label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--p-base);
    letter-spacing: 3px;
    margin-bottom: 1rem;
}
.footer-col a { display: block; text-decoration: none; color: var(--light); opacity: 0.7; font-size: 0.8rem; margin-bottom: 0.8rem; transition: 0.3s; }
.footer-col a:hover { opacity: 1; color: white; }
.footer-logo { height: 28px; margin-bottom: 1.5rem; }

@media (max-width: 900px) {
    nav { width: 95vw; justify-content: space-between; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    
    footer { padding: 4rem 10%; }
    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 3.5rem; 
        text-align: center; 
    }
    .footer-col { align-items: center; display: flex; flex-direction: column; }
    .footer-col h4 { margin-bottom: 1rem; }
    .footer-col p { max-width: 300px; }

    .timeline-row { flex-direction: column !important; align-items: flex-start; padding-left: 30px; }
    .circuit-path { left: 0; transform: none; }
    .timeline-node { left: 0; transform: translateX(-50%); }
    .timeline-card { width: 100%; height: auto; min-height: 240px; }
    .carousel-slide { min-width: 300px; padding: 2.5rem 2rem; }
}
