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

body {
    font-family: Arial, sans-serif;
    color: #1a1a1a;
}

/* HERO SECTION 

.hero {
    position: relative;
    height: 100vh;
    background: url('mob_base.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
*/
/* Soft overlay to improve readability 
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.2),
        rgba(255,255,255,0.8)
    );
}

*/

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    isolation: isolate; /* prevents blend layer from affecting children */
}
.bg-layers {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bg-layers::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('mob_base.jpg') center/cover no-repeat;
}

.bg-layers::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('mob_struct.jpg') center/cover no-repeat;
    mix-blend-mode: multiply;
    opacity: 0.4;
    animation: pulseGlow2 12s ease-in-out;
}


.brain-layer {
    position: absolute;
    inset: 0;
    background: url('mob_centerlogo.png') center/contain no-repeat;
    z-index: 4;
    pointer-events: none;  
	animation: pulseGlowBrain 4s ease-in-out;
	mix-blend-mode: multiply;
	filter: drop-shadow(0 0 20px rgba(255,255,200,0.3));
}

/* GLOW (separate div so we can animate) */

@keyframes pulseGlow {
    0% { opacity: 0; }
    27% { opacity: 0; }
    33% { opacity: 0.2; }
    40% { opacity: 0; }
    50% { opacity: 0.4; }
    54% { opacity: 0; }
    62% { opacity: 0; }
    66% { opacity: 0.2; }
    70% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes pulseGlow2 {
    0% { opacity: 0; }
    12% { opacity: 0.3; }
    50% { opacity: 0.7; }
    62% { opacity: 0.8; }
    75% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes pulseGlowBrain {
    0% { opacity: 0; transform: scale(0) }
    2% { opacity: 1; transform: scale(0.1) }
    6% { opacity: 0.1; transform: scale(0.3) }
    12% { opacity: 0.1; transform: scale(1.7); }
    84% { opacity: 0.6; transform: scale(0.9);}
    86% { opacity: 0.9; transform: scale(1.2);}
    90% { opacity: 0.7; transform: scale(0.8);}
    96% { opacity: 0.9; transform: scale(1.1);}
    100% { opacity: 1; transform: scale(1); }
}


.glow-layer {
    position: absolute;
    inset: 0;
    background: url('mob_glow_2.jpg') center/cover no-repeat;
    opacity: 0.6;
    z-index: 3;
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite;
	mix-blend-mode: screen;
}

@keyframes flickerGlow {
    0%   { opacity: 0; }
    5%   { opacity: 0; }
    6%   { opacity: 0.2; }
    7%   { opacity: 0; }
    8%   { opacity: 0.1; }
    9%  { opacity: 0; }
    12%  { opacity: 0.4; }
    16%  { opacity: 0.2; }
    18%  { opacity: 0.3; }
    22%  { opacity: 0; }
    25%  { opacity: 0; }
    26%   { opacity: 0.1; }
    27%   { opacity: 0; }
    28%   { opacity: 0.2; }
    31%  { opacity: 0; }
    65%  { opacity: 0; }
    66%   { opacity: 0.3; }
    67%   { opacity: 0; }
    68%   { opacity: 0.4; }
    70%  { opacity: 0; }
    79%  { opacity: 0; }
    82%  { opacity: 0.3; }
    86%  { opacity: 0.3; }
    88%  { opacity: 0.1; }
    92%  { opacity: 0; }
    100% { opacity: 0; }
}

.panel-glow {
    animation: flickerGlow 6s infinite;
	mix-blend-mode: screen;
}

.top-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    pointer-events: none;
}

.panel-base {
    width: 100%;
    display: block;
}

.panel-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
}



/* CONTENT */

.content {
    position: relative;
	z-index:10;
    text-align: center;
	margin-top:300px;
    padding: 20px;
    max-width: 500px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* BUTTONS */

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Main button */
.collaborate {
    width: 260px;
    padding: 14px;
    font-size: 1rem;
    background: #e91e63;
    color: white;
    border-radius: 30px;
}

/* Row below */
.sub-buttons {
    display: flex;
    width: 260px;
    justify-content: space-between;
}

.sub-buttons .btn {
    width: 48%;
    padding: 10px;
    background: #8bc34a;
    color: white;
    border-radius: 20px;
}


.primary {
    background: #8bc34a;
    color: white;
}

.secondary {
    background: #e91e63;
    color: white;
}

/* FEATURES */

.features {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    background: #fff;
}

.feature {
    font-weight: bold;
}

.section {
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
}

.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hidden {
    display: none;
}
/* =========================
   ROLES
========================= */

.role-title {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 10;
}

.role-title.active {
    opacity: 1;
}

.role-menu {
    position: absolute;
    bottom: 100px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.6s;
}

.role-menu.active {
    opacity: 1;
}

.role-thumb {
    cursor: pointer;
    text-align: center;
    color: white;
}

.role-thumb.active {
    transform: scale(1.1);
}

.role-system {
    position: absolute;
    inset: 0;
    z-index: 50; /* was 10 → not enough */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.role-system.active {
    opacity: 1;
}

/* CENTER ROLE */
.role-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* RING */
.role-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
}

/* THUMBNAILS */
.role-thumb {
    position: absolute;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s, opacity 0.3s;
}

.role-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
}

/* Active */
.role-thumb.active {
    transform: translate(-50%, -50%) scale(1.2);
}
/* =========================
   DESKTOP TEMP FIX
========================= */
@media (min-width: 1000px) {
    .top-panel {
        top: 0;
    }

    .panel-base,
    .panel-glow {
        width: 55%;
        margin-left: 22.5%;
    }

    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Keep mobile art */
    .bg-layers::before {
        background: url('mob_base.jpg') center center / cover no-repeat;
    }

    .bg-layers::after {
        background: url('mob_struct.jpg') center center / cover no-repeat;
        opacity: 0.45;
    }

    .glow-layer {
        background: url('mob_glow_2.jpg') center center / cover no-repeat;
        opacity: 0.5;
    }

    /* BIG centered logo */
    .brain-layer {
        background-size: 800px;
        background-position: center 34%;
        opacity: 0.95;
    }

    /* Main content */
    .content {
        position: relative;
        z-index: 20;

        width: 100%;
        max-width: none;

        margin-top: 0;
        padding: 0;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* MUCH larger button group */
    .cta {
        position: absolute;
        top: 58%;

        left: 50%;
        transform: translateX(-50%) scale(2.6);
        transform-origin: center;

        gap: 14px;
    }

    /* Bigger role system */   .role-system {
        top: 8%;
    }

    /* Main role ring */
	 .role-system {
        position: absolute;
        inset: 0;
    }

    .role-ring {
        top: 68%;
        left: 50%;

        width: 900px;
        height: 900px;

        transform: translate(-50%, -50%);
    }

    .role-center {
        top: 68%;
        left: 50%;

        width: 340px;
        height: 340px;

        transform: translate(-50%, -50%);
    }

    .role-thumb {
        width: 120px;
        height: 120px;
    }
	

}