/* =============================================
   InfinitySpace42 - Page-Specific Styles
   Hero, Team, Financing, Affiliate, E-Book
   ============================================= */

/* =============================================
   Hero & Button Styles
   ============================================= */

/* Essential button styles */
.cta-button {
    display: inline-block;
    background: var(--dark-bg);
    color: var(--primary-cyan) !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid var(--primary-cyan);
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: var(--dark-bg) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.cta-button.ghost {
    background: rgba(12, 18, 34, 0.78);
    border-color: rgba(var(--page-accent-rgb, 0, 255, 255), 0.35);
    color: var(--page-accent, var(--primary-cyan)) !important;
    box-shadow: none;
}

.cta-button.ghost:hover {
    background: linear-gradient(135deg,
            rgba(var(--page-accent-rgb, 0, 255, 255), 0.22),
            rgba(var(--page-accent-secondary-rgb, 139, 92, 246), 0.22));
    color: #071021 !important;
}

.cta-button:disabled,
.cta-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.clickable-card {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


/* Essential hero styles */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero.hero-transparent {
    background: transparent;
}

.hero.hero-transparent .hero-background {
    background: transparent;
}

.hero.hero-transparent .hero-background::before {
    content: none;
}

.hero.compact-hero {
    min-height: 60vh;
    padding: 4rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    overflow: hidden;
}


.hero .particles,
.page-banner .particles,
.banner .particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--particle-color, rgba(0, 255, 255, 0.65));
    opacity: var(--particle-opacity, 0.45);
    box-shadow: 0 0 var(--particle-blur, 10px) currentColor;
    animation: floatParticle var(--float-duration, 18s) ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
    will-change: transform, opacity;
    mix-blend-mode: screen;
}

.hero-page-icon {
    font-size: clamp(2.75rem, 5vw, 4rem);
    color: var(--primary-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 1.1rem;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.35));
}

.hero-text .hero-page-icon,
.hero-content .hero-page-icon {
    align-self: center;
}

@keyframes floatParticle {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: var(--particle-opacity, 0.45);
    }
    50% {
        transform: translate3d(var(--float-x, 24px), var(--float-y, -60px), 0) scale(1.1);
        opacity: var(--particle-opacity-active, 0.65);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: var(--particle-opacity, 0.45);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(var(--page-accent-rgb), 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--page-accent-rgb), 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    opacity: 0.3;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Essential loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top: 3px solid var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Space animation enhancements */
@keyframes glow-pulse {
    0% {
        text-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 60px rgba(0, 255, 255, 0.3);
        filter: hue-rotate(0deg);
    }
    33% {
        text-shadow: 0 0 35px rgba(138, 43, 226, 0.7), 0 0 70px rgba(138, 43, 226, 0.4), 0 0 100px rgba(138, 43, 226, 0.2);
        filter: hue-rotate(120deg);
    }
    66% {
        text-shadow: 0 0 40px rgba(255, 20, 147, 0.6), 0 0 80px rgba(255, 20, 147, 0.3);
        filter: hue-rotate(240deg);
    }
    100% {
        text-shadow: 0 0 40px rgba(0, 255, 255, 0.8), 0 0 80px rgba(0, 255, 255, 0.4), 0 0 120px rgba(0, 255, 255, 0.2);
        filter: hue-rotate(360deg);
    }
}

.hero .hero-background::before {
    content: none;
}

.hero.hero-layered,
.hero.hero-layered .hero-background {
    background: var(--hero-gradient, var(--page-gradient, var(--body-gradient)));
}

.hero.hero-layered .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(var(--page-accent-rgb), 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(var(--page-accent-secondary-rgb), 0.12) 0%, transparent 50%),
                radial-gradient(circle at 60% 20%, rgba(var(--page-accent-rgb), 0.08) 0%, transparent 50%);
    animation: nebula 15s ease-in-out infinite alternate;
}

@keyframes nebula {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: rotate(5deg) scale(1.1);
        opacity: 0.8;
    }
}

/* Essential hero content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--primary-cyan);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 60px rgba(0, 255, 255, 0.3);
    letter-spacing: 2px;
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-third-title {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#infinity-designs {
    margin-top: 5rem;
}

#infinity-designs .hero {
    padding: 6rem 0 4rem;
}

#infinity-designs .hero .hero-description {
    max-width: 640px;
}

#infinity-designs .infinity-designs-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (max-width: 768px) {
    #infinity-designs {
        margin-top: 3.5rem;
    }

    #infinity-designs .hero {
        padding: 4rem 0 3rem;
    }
}

#cta-hero {
    margin: 1.75rem 0 1.25rem;
}

.hero-description {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.85rem 1.6rem;
    font-size: 1.2rem;
    color: #f7fbff;
    margin: 0 auto 1.5rem;
    max-width: 820px;
    line-height: 1.6;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--page-accent-secondary-rgb), 0.28), rgba(var(--page-accent-rgb), 0.2));
    border: 1px solid rgba(var(--page-accent-rgb), 0.45);
    box-shadow: 0 0 28px rgba(var(--page-accent-rgb), 0.25), inset 0 0 22px rgba(var(--page-accent-secondary-rgb), 0.35);
    letter-spacing: 0.01em;
    overflow: visible;
    isolation: isolate;
}

.hero-upgrade-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-upgrade-link:hover,
.hero-upgrade-link:focus-visible {
    box-shadow: 0 0 35px rgba(var(--page-accent-rgb), 0.45), inset 0 0 28px rgba(var(--page-accent-secondary-rgb), 0.42);
    transform: translateY(-2px);
}

.hero-description::before {
    content: '';
    position: absolute;
    inset: -28% -20%;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, rgba(var(--page-accent-rgb), 0.45), transparent 70%);
    filter: blur(48px);
    opacity: 0.55;
    z-index: -2;
    animation: hero-description-glow 7s ease-in-out infinite alternate;
}

.hero-description::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid rgba(var(--page-accent-rgb), 0.5);
    box-shadow: inset 0 0 18px rgba(var(--page-accent-secondary-rgb), 0.32);
    opacity: 0.85;
    z-index: -1;
    pointer-events: none;
}

@keyframes hero-description-glow {
    0% {
        opacity: 0.35;
        transform: scale(0.92);
    }
    100% {
        opacity: 0.75;
        transform: scale(1.06);
    }
}

.hero-dynamic-word {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7ch;
    padding: 0.35rem 0.75rem;
    vertical-align: bottom;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--primary-cyan);
    background: radial-gradient(circle at 50% 50%, rgba(0, 162, 255, 0.28), rgba(0, 34, 63, 0.65));
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 255, 0.48);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.32), inset 0 0 20px rgba(0, 160, 255, 0.35);
    overflow: visible;
    isolation: isolate;
}

.hero-progress-note {
    margin: 1.5rem auto 0;
    padding: 1rem 1.4rem;
    max-width: 720px;
    background: linear-gradient(135deg, rgba(15, 45, 70, 0.85), rgba(8, 18, 45, 0.9));
    border: 1px solid rgba(0, 255, 200, 0.35);
    border-radius: 16px;
    color: #e6f9ff;
    font-size: 1.05rem;
    line-height: 1.65;
    box-shadow: 0 12px 32px rgba(0, 200, 255, 0.18);
    text-align: center;
}

.hero-progress-note strong {
    color: var(--primary-cyan);
}

.hero-dynamic-word::before {
    content: '';
    position: absolute;
    inset: -38% -25%;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.55), transparent 65%);
    filter: blur(32px);
    opacity: 0.7;
    z-index: -2;
}

.hero-dynamic-word::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 70%);
    opacity: 0.6;
    mix-blend-mode: screen;
    z-index: -1;
    pointer-events: none;
}

.hero-dynamic-word .dynamic-viewport {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: var(--word-height, 1.35em);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(var(--surface-dark-rgb), 0.92) 18%, rgba(var(--surface-dark-rgb), 0.92) 82%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(var(--surface-dark-rgb), 0.92) 18%, rgba(var(--surface-dark-rgb), 0.92) 82%, transparent 100%);
}

.hero-dynamic-word .dynamic-words-wrapper {
    display: flex;
    flex-direction: column;
    will-change: transform;
    animation: hero-word-scroll var(--word-animation-duration, 22000ms) linear infinite;
}

.hero-dynamic-word .dynamic-word {
    flex: 0 0 auto;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    padding: 0.05rem 0;
}

@keyframes hero-word-scroll {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(calc(-1 * var(--word-loop-height, 0px)));
    }
}

.hero-navigation {
    margin-top: 2rem;
}

.hero[data-reserve-nav-space="pending"]::after {
    content: "";
    display: block;
    height: var(--hero-navigation-reserved-height, 6.5rem);
}

.hero-navigation[data-auto-generated="true"] {
    min-height: var(--hero-navigation-reserved-height, auto);
}

.hero-navigation[data-auto-generated="true"].hero-navigation--pending {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.hero-navigation .nav-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-button:hover,
.nav-button:focus-visible {
    background: var(--primary-cyan);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.25);
}

.development-notice {
    margin: 1.5rem auto 0;
    padding: 1rem 1.5rem;
    max-width: 800px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.35);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.12);
}

.development-notice strong {
    color: var(--primary-cyan);
}

.inline-link {
    color: var(--primary-cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.inline-link:hover {
    border-bottom-color: var(--primary-cyan);
    text-shadow: 0 0 5px var(--primary-cyan);
}


/* Sections */
.active-areas {
    padding: 60px 0 0 0;
    background: var(--bg-primary);
}

.phases {
    padding: 1rem 0 1rem 0;
}

.center-vision {
    padding: var(--section-padding);
    padding-top: 1rem;
    text-align: center;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #00ffff, #ff00ff, #00ff00);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 2px;
}




/* =============================================
   Phases & Vision
   ============================================= */

/* Essential phases section */
.phases {
    background: var(--bg-primary);
    padding: 1rem 0;
}

/* Phases Timeline - Compact Version: 1.1 - Cache Bust */
.phases-timeline-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 4rem;
    align-items: start;
}

.phases-timeline-compact .phase-item h3 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.phases-timeline-compact .phase-item h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.phases-timeline-compact .phase-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    margin: 0 auto;
}

.service-feature-card {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    overflow: hidden;
}

.expandable-service-card {
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.expandable-service-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.2);
}

.expandable-features {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    margin-top: 0.5rem;
}

.expandable-service-card:hover .expandable-features {
    max-height: 200px;
    opacity: 1;
}

.expandable-service-card .feature-subtitle {
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 0.25rem;
}

.expandable-service-card:hover .feature-subtitle {
    opacity: 1;
}

.phases-timeline-compact .phase-item:hover {
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    border-color: var(--primary-cyan);
}

.phase-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 1rem;
}

.phase-details ul {
    list-style: none;
    text-align: left;
}

.phase-details ul li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.phase-details ul li::before {
    content: '•';
    color: var(--primary-purple);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.phase-item:hover .phase-details {
    max-height: 200px;
    opacity: 1;
}

.phase-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.phase-details li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    position: relative;
    padding-left: 1.2rem;
}

.phase-details li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
    font-size: 0.7rem;
}

.phase-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1rem auto;
    font-family: 'Orbitron', sans-serif;
}

.phases-timeline-compact .phase-item.completed .phase-number {
    background: #00ff00;
}

.phases-timeline-compact .phase-item.in-progress .phase-number {
    background: #ffaa00;
}

.phases-timeline-compact .phase-item.planned .phase-number {
    background: rgba(0, 255, 255, 0.3);
}

.phases-timeline-compact h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
}

.phases-timeline-compact p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Center Vision */
.center-vision {
    background: var(--bg-primary);
}

.center-vision .features-grid {
    justify-items: center;
}

.center-vision .features-grid .feature-card {
    max-width: 360px;
    width: min(100%, 360px);
    margin: 0 auto;
}


/* =============================================
   Team Page
   ============================================= */

/* Team Page Styles */

.team-leadership {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.leadership-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(var(--surface-dark-rgb), 0.3);
    max-width: 1000px;
    margin: 0 auto;
}


.ai-label i.fa-robot {
    font-size: 1.1rem;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.leader-image {
    flex-shrink: 0;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-image-inner {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.leader-card:hover .leader-image-inner,
.leader-card:focus-visible .leader-image-inner,
.leader-card:focus-within .leader-image-inner {
    transform: rotateY(180deg);
}

.leader-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--page-accent, var(--primary-cyan));
    box-shadow: 0 0 20px rgba(var(--page-accent-rgb, 0, 255, 255), 0.3);
    backface-visibility: hidden;
}

.leader-image-front {
    object-position: center 85%;
    transform: rotate(-45deg);
}

.leader-image-back {
    transform: rotateY(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .leader-image-inner {
        transition: none;
    }
}

.leader-content h3 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.leader-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.leader-content h3 a:hover {
    color: #0056b3;
}

.leader-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.team-openings {
    padding: 4rem 0;
    background: radial-gradient(circle at top, rgba(0, 255, 255, 0.08), transparent 60%), var(--darker-bg);
}

body[data-page-theme="team-career"] .team-cta {
    padding: 4rem 0;
    background: var(--section-panel-background);
}

.team-openings .section-title {
    text-align: center;
}

.job-listing {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid rgba(var(--page-accent-rgb, 0, 255, 255), 0.15);
}

.job-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.job-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(var(--page-accent-rgb, 0, 255, 255), 0.25), rgba(var(--page-accent-secondary-rgb, 139, 92, 246), 0.25));
    border: 1px solid rgba(var(--page-accent-rgb, 0, 255, 255), 0.3);
    box-shadow: 0 12px 30px rgba(var(--surface-dark-rgb), 0.35);
}

.job-tag {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.35rem;
}

.job-listing h3 {
    margin: 0;
    color: var(--page-accent, var(--primary-cyan));
    font-size: 1.6rem;
}

.job-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.job-meta li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(var(--page-accent-rgb, 0, 255, 255), 0.15);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.job-meta li strong {
    color: var(--page-accent, var(--primary-cyan));
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.job-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.job-section h4 {
    margin: 0;
    color: var(--page-accent, var(--primary-cyan));
    font-size: 1.15rem;
}

.job-section ul {
    padding-left: 1.25rem;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.job-section ul li {
    line-height: 1.6;
}

.job-section ul li strong {
    color: var(--page-accent-secondary, var(--primary-purple));
    font-weight: 600;
}

.job-listing.clickable-card {
    cursor: pointer;
}

.job-preview-note {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.job-cta ul {
    list-style: none;
    padding-left: 0;
}

.job-cta ul li {
    background: rgba(var(--page-accent-rgb, 0, 255, 255), 0.08);
    border: 1px solid rgba(var(--page-accent-rgb, 0, 255, 255), 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.job-footer {
    border-top: 1px solid rgba(var(--page-accent-rgb, 0, 255, 255), 0.1);
    padding-top: 1rem;
}

.job-slogan {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-logo {
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }

    .job-listing h3 {
        font-size: 1.35rem;
    }
}

.team-vision {
    padding: 4rem 0;
    background: var(--darker-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.financing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card.wide-card {
    grid-column: span 1;
}


/* =============================================
   Financing & Donations
   ============================================= */

/* Donation Styles for Financing Page */
.donation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.equal-donation-card {
    min-height: 600px;
}

.donation-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    position: relative;
    cursor: pointer;
}

.feature-card.expandable-support-card .cta-buttons {
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature-card.expandable-support-card .expandable-support-list {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
    margin-top: 0;
    list-style: disc;
    padding-left: 1.5rem;
}

.feature-card.expandable-support-card:hover .expandable-support-list,
.feature-card.expandable-support-card:focus-within .expandable-support-list {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1.5rem;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-cyan));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 10;
    border-radius: 15px 15px 0 0;
}

.donation-card:hover {
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.donation-card:hover::before {
    transform: scaleX(1);
}

.primary-donation {
    border-color: rgba(0, 255, 255, 0.4);
}

.donation-subtitle {
    color: var(--text-accent);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.qr-donation-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    margin: 1.5rem 0;
}

.qr-code-section {
    text-align: center;
}

.donation-qr-code {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    border: 2px solid var(--primary-cyan);
    margin-bottom: 0.5rem;
}

.qr-instruction {
    color: var(--primary-cyan);
    font-weight: 600;
    font-size: 0.9rem;
}

.bank-details {
    background: rgba(var(--surface-dark-rgb), 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.bank-details h4 {
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.bank-details p {
    margin: 0.2rem 0;
    font-family: monospace;
    color: var(--text-primary);
}

.donation-benefits ul {
    list-style: none;
    padding: 0;
}

.donation-benefits li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.transparency-note {
    background: rgba(0, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.support-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.support-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.support-icon {
    font-size: 1.5rem;
    min-width: 2rem;
}

.support-item h4 {
    color: var(--primary-cyan);
    margin: 0 0 0.5rem 0;
}

.backup-donation {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.paypal-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.support-item p {
    margin: 0;
    color: var(--text-secondary);
}


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

.role-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(var(--surface-dark-rgb), 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-cyan);
}

.role-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.2);
}

.role-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.role-card h3 {
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.role-subtitle {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.role-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-primary);
}

.role-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
    font-weight: bold;
}

.role-card li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .leadership-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }
    
    .leader-image img {
        width: 150px;
        height: 150px;
    }
    
    .team-roles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .role-card {
        padding: 1.5rem;
    }
}

/* KI-Automatisierung Styles */
.offer-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-purple);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.offer-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.offers-header {
    grid-column: 1 / -1;
    text-align: center;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0 0 2rem 0;
}

.offers-header .section-title {
    margin: 0;
}

.offer-badge {
    top: 15px;
    right: 15px;
}


/* Essential calendar styles */
.calendar-container iframe {
    border-radius: 10px;
    width: 100%;
    min-height: 600px;
}


/* =============================================
   Affiliate Shop & Social
   ============================================= */

/* Affiliate Shop Enhancements */
.affiliate-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 4rem;
}

.hero.hero-affiliate {
    min-height: auto;
    position: relative;
}

.hero-affiliate {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(var(--surface-dark-rgb), 0.35);
}

.hero-affiliate .hero-emoji {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 0 0 18px rgba(0, 255, 255, 0.6);
}

.hero-affiliate h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.hero-affiliate p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
}

.affiliate-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Affiliate product layout */
.affiliate-grid {
    display: grid;
    gap: 2rem;
    align-items: stretch;
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 1100px) {
    .affiliate-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.affiliate-card {
    padding: 2rem;
    width: min(100%, 340px);
}

.affiliate-card .feature-icon {
    font-size: 3rem;
}

.affiliate-card .feature-subtitle {
    margin-bottom: 1.5rem;
}

.affiliate-card ul li::before {
    content: '▹';
    color: var(--primary-cyan);
}

.affiliate-note {
    margin-top: 1.75rem;
    padding: 1.2rem 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 255, 0.35);
    background: rgba(0, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 720px;
    line-height: 1.6;
}


.legal-note {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    background: rgba(var(--surface-dark-rgb), 0.4);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(var(--surface-dark-rgb), 0.3);
    text-align: center;
    line-height: 1.6;
}

.category-navigation {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem 0.5rem;
}

.back-link {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.back-link:hover {
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

.more-discover {
    color: var(--text-secondary);
}

.more-discover a {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
}

.more-discover a:hover {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.nav-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0 1.5rem;
}

.nav-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.8rem 1.2rem;
    background: rgba(10, 10, 25, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 18px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav-card-icon {
    font-size: 2rem;
}

.nav-card-title {
    font-size: 1.1rem;
}

.nav-card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
}

.nav-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-cyan);
    box-shadow: 0 18px 35px rgba(0, 255, 255, 0.18);
}

.affiliate-teaser {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .affiliate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .nav-card-grid {
        grid-template-columns: repeat(4, minmax(160px, 1fr));
    }
}

@media (max-width: 992px) {
    .nav-card-grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-affiliate {
        padding: 3rem 1rem 2rem;
    }

    .affiliate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-card-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 560px) {
    .affiliate-grid {
        grid-template-columns: 1fr;
    }

    .nav-card-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand .footer-logo {
    margin-bottom: 1rem;
}

.footer-brand .footer-logo-img {
    height: 120px;
    width: 120px;
}

.footer-brand .footer-tagline {
    color: var(--primary-cyan);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-brand .footer-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal ul li {
    margin-bottom: 0.5rem;
}

.footer-legal ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal ul li a:hover {
    color: var(--primary-cyan);
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 5px var(--primary-cyan);
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    padding: 8px;
}

.social-icon:hover {
    transform: translateY(-2px);
}

/* Social Media Brand Colors */
.social-icon[title="Discord"] {
    color: #5865F2;
}

.social-icon[title="WhatsApp"] {
    color: #25D366;
}

.social-icon[title="Instagram"] {
    background: linear-gradient(45deg, #833ab4, #c13584, #e1306c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-icon[title="Facebook"] {
    color: #1877F2;
}

.social-icon[title="TikTok"] {
    color: #ff6b6b;
}

.social-icon[title="YouTube"] {
    color: #FF0000;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
}


/* =============================================
   Area Voting & E-Book
   ============================================= */

/* Area Voting System Styles */
#start-voting-btn {
    margin: 1rem 0;
    display: block;
}

#start-voting-btn.voting-active {
    background: linear-gradient(135deg, #ff4444, #cc0000);
}

.feature-card.voting-mode {
    border: 2px dashed var(--primary-purple);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.feature-card.voting-mode:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.feature-card.selected-for-voting {
    border: 2px solid var(--primary-cyan);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(0, 255, 255, 0.1));
    position: relative;
}

.priority-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-cyan);
    color: var(--dark-bg);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    z-index: 10;
}

#voting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--surface-dark-rgb), 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.voting-panel {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--primary-purple);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.voting-panel h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
    text-align: center;
}

.voting-panel p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

#selected-areas-list {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.no-selection {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

.priority-list {
    color: var(--text-light);
    margin: 0.5rem 0;
}

.priority-list li {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 5px;
}

.voting-form .form-group {
    margin-bottom: 1rem;
}

.voting-form label {
    display: block;
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.voting-form input,
.voting-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    background: rgba(26, 26, 46, 0.8);
    color: var(--text-light);
    font-size: 1rem;
}

.voting-form input:focus,
.voting-form textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.voting-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.voting-buttons button {
    flex: 1;
}


.leader-content h3 {
    color: var(--primary-cyan);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.leader-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.leader-content h3 a:hover {
    color: var(--primary-purple);
}

.leader-content p {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

body.ebook-feedback-active .ebook-overview {
    display: none;
}

