@keyframes float-hero {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* --- Agency Page Hero --- */
.agency-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    min-height: 80vh;
    margin-bottom: 120px;
    position: relative;
}

@media (min-width: 992px) {
    .agency-hero {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 80px;
    }
}

.agency-hero__content {
    z-index: 10;
    position: relative;
    text-align: left;
    /* Enforce left align */
}

.agency-hero__title {
    font-size: 3.5rem;
    /* Standardized size */
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

@media (min-width: 768px) {
    .agency-hero__title {
        font-size: 4rem;
        /* Matching other pages */
    }
}

.agency-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: visible;
    /* Fix glow clipping */
}

.astronaut-hero {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 0 50px rgba(147, 51, 234, 0.3));
    animation: float-hero 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.agency-hero__glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* --- Comparison Section (Chaos vs Order) --- */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .comparison-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 20px;
    }
}

.comparison-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chaos-card {
    border-color: rgba(239, 68, 68, 0.3);
}

.order-card {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.02);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.05);
}

[data-theme="light"] .comparison-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .chaos-card {
    background: #fff5f5;
    /* Very light red */
    border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .order-card {
    background: #f0fdf4;
    /* Very light green */
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
}

.chaos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            rgba(239, 68, 68, 0.03),
            rgba(239, 68, 68, 0.03) 10px,
            transparent 10px,
            transparent 20px);
    pointer-events: none;
}

.order-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Feature Deep Dive Grid --- */
.deep-dive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 120px;
}

@media (min-width: 992px) {
    .deep-dive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card-lg {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.feature-card-lg h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    margin-top: 0;
}

.feature-card-lg p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 90%;
}

/* Simulated UI Elements */
.ui-mockup-frame {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
    flex-grow: 1;
    width: 100%;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* tilt effect */
    transform: perspective(1000px) rotateX(2deg) translateY(10px);
    transform-origin: bottom center;
    transition: transform 0.4s ease;
}

.feature-card-lg:hover .ui-mockup-frame {
    transform: perspective(1000px) rotateX(0deg) translateY(0);
}

.ui-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.ui-dots {
    display: flex;
    gap: 6px;
}

.ui-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.ui-title-bar {
    height: 8px;
    width: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Specific Card Themes */
.theme-portal .ui-mockup-frame {
    border-top: 2px solid #10b981;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.theme-ops .ui-mockup-frame {
    border-top: 2px solid #9333ea;
    background: linear-gradient(180deg, rgba(147, 51, 234, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.theme-ai .ui-mockup-frame {
    border-top: 2px solid #f205e2;
    background: linear-gradient(180deg, rgba(242, 5, 226, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.theme-crm .ui-mockup-frame {
    border-top: 2px solid #3b82f6;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.ui-row {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
    margin-bottom: 8px;
}

.ui-row.short {
    width: 60%;
}

.ui-row.highlight {
    background: rgba(255, 255, 255, 0.1);
}

.ui-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.ui-tag.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.ui-tag.purple {
    background: rgba(147, 51, 234, 0.2);
    color: #9333ea;
}

.ui-tag.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.card-header-chaos h3 {
    color: #ef4444;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header-order h3 {
    color: #10b981;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chaos-item,
.order-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.order-item {
    background: rgba(16, 185, 129, 0.05);
}

.x-mark {
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2rem;
}

.check-mark {
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

.chaos-item strong {
    color: #fca5a5;
    display: block;
    margin-bottom: 4px;
}

.order-item strong {
    color: #86efac;
    display: block;
    margin-bottom: 4px;
}

.chaos-item p,
.order-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.vs-badge {
    background: #000;
    color: #fff;
    font-weight: 900;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid #333;
    z-index: 10;
}

[data-theme="light"] .vs-badge {
    background: #ffffff;
    color: #000000;
    border-color: #e5e7eb;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chaos-item {
    background: rgba(239, 68, 68, 0.1);
}

[data-theme="light"] .order-item {
    background: rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .chaos-item strong {
    color: #991b1b;
    /* Dark Red */
}

[data-theme="light"] .order-item strong {
    color: #065f46;
    /* Dark Green */
}

[data-theme="light"] .chaos-item p,
[data-theme="light"] .order-item p {
    color: var(--text-secondary);
}

/* Ensure left alignment for items inside cards */
.comparison-card h3,
.chaos-item,
.order-item {
    text-align: left;
    justify-content: flex-start;
}

/* --- Visibility Fixes for Bento Grid --- */
.bento-grid {
    opacity: 1 !important;
    /* Force visible if JS fails */
    visibility: visible !important;
}

.fade-in-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- Pricing Page --- */
.pricing-section {
    padding: var(--section-padding) 0;
    position: relative;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-switch.active {
    background: var(--brand-pink);
    border-color: var(--brand-pink);
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toggle-switch.active .toggle-thumb {
    transform: translateX(28px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card-highlight {
    border-color: var(--brand-pink);
    box-shadow: 0 0 40px rgba(242, 5, 226, 0.15);
    background: rgba(242, 5, 226, 0.05);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 24px 0 8px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.feature-list {
    list-style: none;
    margin: 32px 0;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.feature-icon {
    color: var(--brand-pink);

    font-size: 1.2rem;
}

/* --- About/Team Page --- */
/* --- Emergency Clean Titles --- */
.clean-hero-section {
    max-width: 900px;
    margin: 0 auto 120px;
    text-align: center;
    padding: 0 20px;
}

.clean-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-primary);
    text-align: center;
    word-break: normal;
    overflow-wrap: break-word;
    /* Safe wrapping */
    hyphens: none;
}

.clean-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.clean-vision-container {
    text-align: left;
    /* Container left */
    width: 100%;
}

.clean-vision-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    text-align: left;
    /* Specific align */
    word-break: normal;
    hyphens: none;
}

/* Gradient Text Reset */
.clean-gradient {
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    /* Important: strictly inline */
}

/* --- About/Team Page (Editorial Redesign) --- */
.team-grid-editorial {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    /* More compact */
    gap: 32px;
    margin-top: 60px;
}

.team-card-editorial {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    /* Center align for professional profile */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card-editorial:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--brand-pink);
    transform: translateY(-5px);
}

.editorial-image {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 50%;
    /* Circular Avatar */
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.editorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(0.5);
    /* Slight filter */
}

.team-card-editorial:hover .editorial-image img {
    transform: scale(1.1);
    filter: grayscale(0);
}

.editorial-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 700;
}

.role-text {
    display: block;
    font-size: 0.8rem;
    color: var(--brand-pink);
    margin-bottom: 16px;
    font-family: var(--font-family);
    /* Use main font, cleaner */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.bio-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 100%;
}

/* Space Mini Cards (Vision Section) */
.space-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Thinner border */
    padding: 24px 16px;
    /* balanced padding */
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.space-mini-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    /* Soft background container */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--brand-pink);
    transition: all 0.3s ease;
}

.space-mini-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brand-pink);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.space-mini-card:hover .space-mini-icon {
    background: var(--brand-pink);
    color: #fff;
    box-shadow: 0 0 15px rgba(242, 5, 226, 0.4);
}

.space-mini-card.disabled {
    opacity: 0.5;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
}

.space-mini-card.disabled .space-mini-icon {
    filter: grayscale(1);
    background: transparent;
    color: var(--text-muted);
}

/* --- Features Page --- */
.feature-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 60px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    background: rgba(242, 5, 226, 0.1);
    border-color: var(--brand-pink);
    color: var(--brand-pink);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}

.detail-grid.reversed {
    direction: rtl;
    /* Simple hack for layout swap, text needs explicit ltr */
}

.detail-grid.reversed>* {
    direction: ltr;
}

.detail-grid .detail-content {
    text-align: left;
}

.detail-grid.reversed .detail-content {
    text-align: right;
}

.detail-grid.reversed .feature-item {
    flex-direction: row-reverse;
}

.detail-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .detail-image {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(242, 5, 226, 0.05) inset;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Contact Page --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--brand-pink);
    flex-shrink: 0;
}

/* --- Blog/Resources Styles (Refer to components.css for Grid) --- */
.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-image {
    height: 200px;
    background: #2a2a3e;
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Blog Light Mode Fixes */
[data-theme="light"] .blog-image {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.05);
}

.blog-card:hover .blog-image {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 5, 226, 0.3);
}

[data-theme="light"] .blog-card:hover .blog-image {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08),
        0 0 15px rgba(242, 5, 226, 0.05) inset;
    border-color: rgba(242, 5, 226, 0.2);
}


/* Handle .blog-image-wrapper as used in HTML */
.blog-image-wrapper {
    height: 200px;
    background: #2a2a3e;
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .blog-image-wrapper {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.05);
}

.blog-card:hover .blog-image-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 5, 226, 0.3);
}

[data-theme="light"] .blog-card:hover .blog-image-wrapper {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08),
        0 0 15px rgba(242, 5, 226, 0.05) inset;
    border-color: rgba(242, 5, 226, 0.2);
}

.blog-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 968px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        margin-bottom: 80px;
    }

}

/* --- 3D Spaces Carousel (Ultramodern Revamp) --- */
.spaces-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    margin: 0 auto 80px;
    perspective: 1500px;
    /* Enhanced depth */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spaces-carousel {
    position: relative;
    width: 750px !important;
    /* Wide Imposing Width */
    min-width: 750px !important;
    height: auto;
    min-height: 520px;
    display: grid;
    align-items: center;
    justify-items: center;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
}

/* --- THE CARD --- */
.space-card {
    grid-area: 1 / 1;
    position: relative;
    width: 100% !important;
    height: auto;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.6;
    /* Dim inactive cards */
    z-index: 0;
    box-sizing: border-box;

    /* Glassmorphism Construction */
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border initially */
    border-radius: 32px;
    /* Softer corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 40px 32px;
    overflow: hidden;
    transform: scale(0.9);
    /* Inactive are smaller */
    filter: grayscale(0.4);
    /* Fade color on inactive */
}

/* Light Mode Override */
[data-theme="light"] .space-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* --- ACTIVE CARD (The Star) --- */
.space-card.active {
    opacity: 1;
    z-index: 10;
    transform: scale(1);
    filter: grayscale(0);

    /* Neon Glow Effect */
    background: rgba(20, 20, 25, 0.85);
    /* Slightly more opaque */
    border-color: rgba(242, 5, 226, 0.5);
    /* Pink Border */
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        /* Deep Shadow */
        0 0 0 1px rgba(242, 5, 226, 0.3),
        /* Outer Ring */
        0 0 30px rgba(242, 5, 226, 0.15);
    /* Ambient Glow */
}

[data-theme="light"] .space-card.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--brand-pink);
    box-shadow:
        0 20px 60px rgba(100, 100, 100, 0.15),
        0 0 20px rgba(242, 5, 226, 0.1);
}

/* --- Card Body --- */
.space-card .card-body {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    margin-top: 10px;
}

/* --- Typography --- */
.card-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-pink);
    font-weight: 700;
    margin-bottom: 12px;
    opacity: 0.9;
}

.space-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 24px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

[data-theme="light"] .space-card h2 {
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Features List (Grid Layout) --- */
.card-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Columns */
    gap: 16px 32px;
    /* Row Gap / Column Gap */
}

.card-features-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left aligned within cell */
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}


/* Centered Items (Handled by previous block) */


[data-theme="light"] .card-features-list li {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

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

.feature-dot {
    width: 6px;
    height: 6px;
    background: var(--brand-pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--brand-pink);
}

/* --- Floating Isotype (Animated) --- */
.card-floating-iso {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iso-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle backdrop */
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Pulse Animation Wrapper */
.card-floating-iso::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--brand-pink);
    opacity: 0;
    z-index: -1;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.space-card.active .card-floating-iso::before {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.card-iso-icon {
    width: 40px;
    height: 40px;
    /* filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); Removed per user request */
}

/* --- Action Button --- */
.card-floating-action {
    width: 100%;
    margin-top: auto;
    /* Push to bottom */
    padding-top: 24px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
    /* Slight delay */
    pointer-events: none;
}

.space-card.active .card-floating-action {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-card-action {
    background: var(--brand-pink);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(242, 5, 226, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-card-action:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(242, 5, 226, 0.6);
}

.btn-card-action.disabled {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* --- Card Content Distribution --- */
.card-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-pink);
    margin-bottom: 8px;
    font-weight: 700;
}

.space-card h2 {
    font-size: 2rem;
    margin: 0 0 16px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.1;
}

.card-divider {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 20px;
}

[data-theme="light"] .card-divider {
    background: rgba(0, 0, 0, 0.1);
}

.card-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

.card-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 6px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

[data-theme="light"] .card-features-list li {
    background: rgba(0, 0, 0, 0.02);
}

.feature-dot {
    width: 5px;
    height: 5px;
    background: var(--brand-pink);
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Buttons --- */
.btn-card-action {
    background: var(--brand-pink);
    color: white;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(242, 5, 226, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-card-action:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(242, 5, 226, 0.5);
}

.btn-card-action.disabled {
    background: #2a2a3e;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.8;
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 3D Transforms & Logic --- */
.space-card.active {
    opacity: 1 !important;
    z-index: 20 !important;
    transform: translateX(0) scale(1) translateZ(0) !important;
    filter: none;
}

.space-card.next {
    opacity: 0.5 !important;
    z-index: 10 !important;
    transform: translateX(300px) scale(0.85) translateZ(-100px) rotateY(-15deg) !important;
    filter: blur(4px) grayscale(100%);
    pointer-events: none;
}

.space-card.prev {
    opacity: 0.5 !important;
    z-index: 10 !important;
    transform: translateX(-300px) scale(0.85) translateZ(-100px) rotateY(15deg) !important;
    filter: blur(4px) grayscale(100%);
    pointer-events: none;
}

/* --- Controls (Arrows) --- */
.carousel-controls {
    position: absolute;
    top: 65%;
    /* Visual center */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 950px;
    /* Calculated: 750px card + 100px padding each side */
    max-width: 100vw;
    /* Responsive safety */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    /* Small safety padding */
    pointer-events: none;
    /* Pass clicks */
    z-index: 50;
    /* Above everything */
}

.control-btn {
    width: 48px;
    /* Reduced */
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    /* Reduced */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    /* Re-enable clicks */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.control-btn:hover {
    background: var(--brand-pink);
    color: white;
    border-color: var(--brand-pink);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(242, 5, 226, 0.5);
}

/* Mobile Fallback */
@media (max-width: 768px) {
    .spaces-carousel-wrapper {
        height: 600px;
        perspective: none;
        overflow: hidden;
    }

    /* .spaces-carousel {
        width: 100%;
        padding: 0 20px;
    } */

    .space-card {
        width: calc(100% - 40px);
        left: 20px;
    }

    .space-card.next,
    .space-card.prev {
        opacity: 0 !important;
    }
}

/* Grid utilities moved to components.css */

.feature-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon-small {
    background: rgba(147, 51, 234, 0.1);
    color: var(--brand-pink);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}