/* filepath: c:\Users\ETM\Desktop\Vigthoria Ecosystem\Vigthoria Landing Page\dist\css\main.css */
/* Umstrukturierung der Nav-Buttons */
.nav-buttons {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-buttons > * {
    order: 2; /* Default Reihenfolge */
}

.nav-buttons > .btn-primary {
    order: 1; /* Get Started zuerst */
}

.nav-buttons > .theme-toggle {
    order: 2; /* Danach der Theme Toggle */
}

.nav-buttons > .mobile-menu-toggle {
    order: 3; /* Zuletzt der Mobile-Menu-Button */
}

/* Enhanced Glow Animation */
.glow-animation {
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(108, 99, 255, 0.2),
                    0 0 20px rgba(108, 99, 255, 0);
    }
    100% {
        box-shadow: 0 0 20px rgba(108, 99, 255, 0.6),
                    0 0 40px rgba(108, 99, 255, 0.3);
    }
}

/* Float Animations for Ecosystem Nodes */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-reverse-animation {
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Connector Particle Animation */
.connector-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    animation: move-particle 3s linear infinite;
    opacity: 0.8;
    top: -4px;
    left: 0;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

@keyframes move-particle {
    0% {
        left: 0;
    }
    100% {
        left: 100%;
    }
}

/* Ecosystem Connectors */
.ecosystem-connector {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(108, 99, 255, 0.3) 0%, 
        rgba(108, 99, 255, 0.7) 50%, 
        rgba(108, 99, 255, 0.3) 100%);
    transform-origin: 0 0;
    z-index: 1;
    overflow: visible;
}

.ecosystem-connector.secondary {
    opacity: 0.5;
    height: 1px;
}

/* Theme-specific styling for ecosystem nodes */
[data-theme="light"] .ecosystem-node {
    background-color: #ffffff;
    color: #1a202c;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .ecosystem-node {
    background-color: #1e293b;
    color: #f8fafc;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Node type-specific colors */
.ecosystem-node.operator .node-icon {
    color: #6c63ff;
}

.ecosystem-node.coder .node-icon {
    color: #00bfa6;
}

.ecosystem-node.llm .node-icon {
    color: #f59e0b;
}

.ecosystem-node.app .node-icon {
    color: #ef4444;
}

.ecosystem-node.main .node-icon {
    color: #ffffff;
}

/* Advanced reveal animations */
.reveal-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-animation.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for children */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animated Image Container Effects */
.animated-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animated-image-container.hovered {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Prevent display issues when images are missing */
.animated-image-container {
    min-height: 200px;
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .animated-image-container {
    background-color: rgba(255, 255, 255, 0.05);
}

.animated-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, 
        rgba(108, 99, 255, 0.2) 0%, 
        rgba(0, 191, 166, 0.2) 100%);
    z-index: 2;
    opacity: 1; /* Show by default until image loads */
    transition: opacity 0.5s ease;
}

.animated-placeholder .product-logo {
    width: 40%;
    height: 40%;
    opacity: 0.7;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.image-overlay-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(108, 99, 255, 0.2) 0%, 
        rgba(0, 191, 166, 0.2) 100%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animated-image-container:hover .image-overlay-effect {
    opacity: 1;
}

.image-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    animation: shine 4s infinite;
    z-index: 3;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    20%, 100% {
        transform: translateX(100%);
    }
}

/* Enhanced reveal animations with proper active state */
.reveal-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal-animation.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay classes for animations */
.delay-200 {
    transition-delay: 0.2s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-600 {
    transition-delay: 0.6s;
}

.delay-800 {
    transition-delay: 0.8s;
}

/* Added from VigthoriaProducts.css */
/* ===============================
   MAIN PRODUCT SECTION STYLES
   =============================== */

.vigthoria-products-section {
    padding: 80px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.vigthoria-products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-primary);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ===============================
   PRODUCT CARD LAYOUT
   =============================== */

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 40px -15px;
    gap: 0;
}

.col {
    flex: 1;
    min-width: 300px;
    padding: 0 15px;
    margin-bottom: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.product-url {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.product-description {
    color: var(--text-primary);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    opacity: 0.9;
}

.feature-list i {
    color: var(--secondary-color);
    margin-right: 12px;
    font-size: 0.8rem;
    min-width: 16px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Animation related styles from VigthoriaProducts.css, 
   assuming these are not theme-specific and part of main styles 
   or specific component animations that belong in main.css */

/* ===============================
   ANIMATION CONTAINERS
   =============================== */

.animated-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.9) 0%, 
        rgba(30, 41, 59, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================
   OPERATOR ANIMATION STYLES
   =============================== */

.operator-animation-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.9) 100%);
    border-radius: 8px;
}

.operator-dashboard {
    width: 100%;
    height: 100%;
    padding: 10px;
    color: #f8fafc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.3);
}

.dashboard-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.dashboard-status {
    color: var(--secondary-color);
    font-size: 0.7rem;
}

.dashboard-content {
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-section {
    flex: 1;
    min-height: 0;
}

.section-title {
    font-size: 0.7rem;
    color: #e2e8f0;
    margin-bottom: 5px;
    font-weight: 500;
}

.system-metrics, .resource-meters {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric, .resource {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
}

.metric-label, .resource-label {
    min-width: 50px;
    color: #cbd5e1;
    font-size: 0.6rem;
}

.metric-bar, .resource-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.metric-fill, .resource-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    width: 0%;
    transition: width 2s ease;
}

.metric-value, .resource-value {
    min-width: 25px;
    text-align: right;
    font-size: 0.6rem;
    color: var(--secondary-color);
}

.orchestration-diagram {
    position: relative;
    height: 60px;
    margin: 8px 0;
}

.central-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 600;
    z-index: 3;
}

.satellite-node {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--secondary-color);
    color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.55rem;
    z-index: 2;
}

.node-1 { top: 5px; left: 20%; }
.node-2 { top: 5px; right: 20%; }
.node-3 { bottom: 5px; left: 20%; }
.node-4 { bottom: 5px; right: 20%; }

.connection-line {
    position: absolute;
    background: rgba(108, 99, 255, 0.3);
    z-index: 1;
}

.connection-1 {
    top: 25px;
    left: 30%;
    width: 20%;
    height: 1px;
    transform: rotate(-20deg);
}

.connection-2 {
    top: 25px;
    right: 30%;
    width: 20%;
    height: 1px;
    transform: rotate(20deg);
}

.connection-3 {
    bottom: 25px;
    left: 30%;
    width: 20%;
    height: 1px;
    transform: rotate(20deg);
}

.connection-4 {
    bottom: 25px;
    right: 30%;
    width: 20%;
    height: 1px;
    transform: rotate(-20deg);
}

.data-flow {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0;
    animation: dataFlow 3s ease-in-out infinite;
}

.flow-1 { top: 25px; left: 35%; animation-delay: 0s; }
.flow-2 { top: 25px; right: 35%; animation-delay: 0.5s; }
.flow-3 { bottom: 25px; left: 35%; animation-delay: 1s; }
.flow-4 { bottom: 25px; right: 35%; animation-delay: 1.5s; }

.activity-log {
    max-height: 40px;
    overflow: hidden;
}

.log-entries {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    padding: 2px 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.timestamp {
    color: #64748b;
    font-family: monospace;
}

.entry-type {
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.55rem;
    font-weight: 600;
}

.entry-type.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.entry-type.info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.entry-type.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.log-entry.new-entry {
    opacity: 0;
    transform: translateY(-10px);
}

/* ===============================
   CODER ANIMATION STYLES
   =============================== */

.coder-animation-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.9) 100%);
    border-radius: 8px;
}

.code-editor-interface {
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Monaco', 'Menlo', monospace;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.8);
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-bar {
    display: flex;
    gap: 5px;
}

.tab {
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background: var(--primary-color);
    color: white;
}

.editor-controls {
    display: flex;
    gap: 8px;
}

.control {
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 0.8rem;
}

.control:hover {
    color: var(--primary-color);
}

.editor-body {
    padding: 10px;
    height: calc(100% - 40px);
    overflow: hidden;
    position: relative;
}

.code-content {
    font-size: 0.65rem;
    line-height: 1.4;
    color: #e2e8f0;
}

.code-line {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    opacity: 0;
    transform: translateX(-20px);
    animation: codeLineAppear 0.5s ease forwards;
}

.line-number {
    color: #64748b;
    min-width: 20px;
    margin-right: 10px;
    font-size: 0.6rem;
}

.code-text {
    flex: 1;
}

.keyword {
    color: #f472b6;
    font-weight: 600;
}

.string {
    color: #34d399;
}

.comment {
    color: #64748b;
    font-style: italic;
}

.function {
    color: #60a5fa;
}

.variable {
    color: #fbbf24;
}

.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 12px;
    background: var(--primary-color);
    animation: blink 1s infinite;
    margin-left: 2px;
}

.ai-suggestion {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    padding: 6px;
    font-size: 0.6rem;
    color: var(--primary-color);
    opacity: 0;
    animation: suggestionFadeIn 0.5s ease 2s forwards;
}

/* ===============================
   LLM CHAT ANIMATION STYLES
   =============================== */

.llm-chat-animation-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.9) 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.chat-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.model-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #cbd5e1;
}

.model-name {
    color: var(--secondary-color);
    font-weight: 500;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.message {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(10px);
    animation: messageSlideIn 0.5s ease forwards;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: white;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: var(--secondary-color);
}

.message-content {
    flex: 1;
    max-width: 80%;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.message-sender {
    font-size: 0.6rem;
    font-weight: 600;
    color: #cbd5e1;
}

.message-time {
    font-size: 0.55rem;
    color: #64748b;
}

.message-text {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    line-height: 1.4;
    color: #e2e8f0;
}

.message.user .message-text {
    background: rgba(108, 99, 255, 0.2);
}

.typing-indicator {
    display: flex;
    gap: 2px;
    align-items: center;
    padding: 6px 8px;
}

.dot {
    width: 4px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

.chat-input-area {
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.input-container {
    display: flex;
    gap: 6px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 8px;
    color: #e2e8f0;
    font-size: 0.65rem;
    resize: none;
    min-height: 20px;
    max-height: 40px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-buttons {
    display: flex;
    gap: 4px;
}

.attach-button, .send-button {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.send-button {
    background: var(--primary-color);
    color: white;
}

.send-button:hover {
    background: var(--secondary-color);
}

/* === Critical Fixes from style-fixes.css === */
/* These styles were moved to critical.css */

/* === General Styles from style-fixes.css === */
/* ========== Reset & Base Styles ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

p {
  margin: 0 0 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  padding-left: 1.2rem;
  margin-top: 0;
}

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -1rem;
}

.col {
  flex: 1;
  padding: 1rem;
  min-width: 0;
}

section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.text-left {
  text-align: left;
}

/* ========== Navigation ========== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.main-header.scrolled {
  background-color: var(--bg);
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.logo-text {
  color: var(--text);
  transition: color var(--transition-normal);
}

.logo-dot {
  color: var(--primary);
}

.logo-io {
  color: var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

nav ul li a:hover {
  color: var(--primary);
}

.cta-button {
  background-color: var(--primary);
  color: white !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius-md);
  font-weight: 600;
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.mobile-menu span {
  height: 3px;
  width: 100%;
  background-color: var(--text);
  border-radius: 3px;
  transition: all var(--transition-normal);
}

/* Fix for header and hero section connection */
header {
  margin-bottom: 0;
  padding-bottom: 0;
}

.hero-section {
  margin-top: 0;
  padding-top: 0;
}

/* ========== Hero Section Enhanced ========== */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 100px;
  display: flex;
  align-items: center;
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.08) 0%, rgba(56, 178, 172, 0.08) 100%);
  z-index: 1;
}

.hero-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(107, 70, 193, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 70, 193, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}

.hero-bg-circles {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(107, 70, 193, 0.05) 0%, rgba(107, 70, 193, 0) 60%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 1.5rem;
  position: relative;
}

.hero h1 .highlight {
  position: relative;
  display: inline-block;
  color: var(--primary);
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 8px;
  background-color: rgba(107, 70, 193, 0.2);
  z-index: -1;
}

.hero .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 80%;
}

.hero-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.hero-product-item {
  padding: 1.2rem;
  border-radius: var(--border-radius-md);
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}

.hero-product-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.hero-product-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  font-size: 1.5rem;
}

.hero-product-icon.operator {
  background: var(--gradient-operator);
}

.hero-product-icon.coder {
  background: var(--gradient-coder);
}

.hero-product-icon.llm {
  background: var(--gradient-llm);
}

.hero-product-icon.app {
  background: var(--gradient-app);
}

.hero-product-info h3 {
  font-size: 1.1rem;
  margin: 0 0 5px;
}

.hero-product-info p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-muted);
}

/* ========== Enhanced AI Cube Animation ========== */
.ai-ecosystem {
  position: relative;
  width: 400px;
  height: 400px;
  perspective: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-cube {
  width: 240px;
  height: 240px;
  position: relative;
  transform-style: preserve-3d;
  margin: 0 auto;
  /* Remove animation to prevent distortion - now handled by JS */
}

.ai-cube-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  /* Remove animation to prevent distortion - now handled by JS */
}

.ai-cube-face {
  position: absolute;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: rgba(107, 70, 193, 0.1);
  border: 1px solid var(--primary);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  font-size: 1.5rem;
  color: var(--primary);
  transition: all var(--transition-normal);
  overflow: hidden;
  padding: 20px;
  box-shadow: 0 0 20px rgba(107, 70, 193, 0.2);
  backface-visibility: visible;
  transform-style: preserve-3d;
}

/* Ensure each face is exactly the same distance from the center */
.ai-cube-face:nth-child(1) {
  transform: translateZ(120px); /* Front */
  background: linear-gradient(45deg, rgba(107, 70, 193, 0.2) 0%, rgba(56, 178, 172, 0.2) 100%);
}

.ai-cube-face:nth-child(2) {
  transform: rotateY(90deg) translateZ(120px); /* Right */
  background: linear-gradient(45deg, rgba(56, 178, 172, 0.2) 0%, rgba(66, 153, 225, 0.2) 100%);
}

.ai-cube-face:nth-child(3) {
  transform: rotateY(180deg) translateZ(120px); /* Back */
  background: linear-gradient(45deg, rgba(66, 153, 225, 0.2) 0%, rgba(159, 122, 234, 0.2) 100%);
}

.ai-cube-face:nth-child(4) {
  transform: rotateY(-90deg) translateZ(120px); /* Left */
  background: linear-gradient(45deg, rgba(159, 122, 234, 0.2) 0%, rgba(107, 70, 193, 0.2) 100%);
}

.ai-cube-face:nth-child(5) {
  transform: rotateX(90deg) translateZ(120px); /* Top */
  background: linear-gradient(45deg, rgba(107, 70, 193, 0.2) 0%, rgba(79, 209, 197, 0.2) 100%);
}

.ai-cube-face:nth-child(6) {
  transform: rotateX(-90deg) translateZ(120px); /* Bottom */
  background: linear-gradient(45deg, rgba(79, 209, 197, 0.2) 0%, rgba(107, 70, 193, 0.2) 100%);
}

.face-content {
  transform: translateZ(1px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.face-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--primary);
  animation: icon-pulse 3s infinite alternate;
}

.face-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.face-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.face-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(107, 70, 193, 0.3));
}

@keyframes icon-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Floating particles around the cube */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
}

/* ========== Product Images & Animations from style.css ========== */
.animated-image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background: var(--bg-alt);
}

.product-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.product-image:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Produkt Bilder */
.product-image.animated-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-purple);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
}

.product-image.animated-image-container:hover::before {
  opacity: 0.1;
}

.product-image .animated-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-45deg, var(--bg-alt) 25%, rgba(107, 70, 193, 0.1) 50%, var(--bg-alt) 75%);
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite;
  z-index: 5; /* Über dem Bild bleiben, bis es geladen ist */
}

.product-image .animated-placeholder.loaded {
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease, z-index 0s 0.5s;
}

.product-image .product-logo {
  max-width: 80px;
  max-height: 80px;
  filter: drop-shadow(0 0 5px var(--primary));
}

.product-image .image-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  z-index: 4;
  pointer-events: none;
}

.product-image:hover .image-shine {
  animation: shine 1.5s ease;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animation Delays */
.delay-02s {
  animation-delay: 0.2s;
}

.delay-03s {
  animation-delay: 0.3s;
}

.delay-04s {
  animation-delay: 0.4s;
}

/* Specific animation for newsletter button */
.newsletter-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: none;
  background-color: var(--primary);
  color: white;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--primary-hover);
}

.newsletter-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  margin-right: 8px;
}

.margin-top-3 {
    margin-top: 3rem;
}

/* Newsletter Form Feedback */
.newsletter-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
    width: 100%;
}

.newsletter-message.success {
    background-color: rgba(72, 187, 120, 0.1);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.newsletter-message.error {
    background-color: rgba(245, 101, 101, 0.1);
    color: #f56565;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

.newsletter-message.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* Helper for accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Stripe Pricing Table Integration */
.pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.tab-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-btn:hover:not(.active) {
    border-color: var(--primary);
    background-color: rgba(107, 70, 193, 0.05);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.pricing-feature-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-alt);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border);
}

.pricing-feature-summary h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.subscription-info {
    padding: 1.5rem;
    background-color: rgba(107, 70, 193, 0.05);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(107, 70, 193, 0.1);
}

.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  max-width: 100%;
  height: 500px;
  max-height: 100%;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  z-index: 1001; /* Ensure it's above other elements like the footer */
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 1rem;
  background-color: var(--primary);
  color: white;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  position: sticky;
  top: 0;
  z-index: 1;
}

.chat-title {
  font-size: 1.25rem;
  margin: 0;
}

.chat-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 1.25rem;
}

.chat-messages {
  padding: 1rem;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.message {
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
  position: relative;
  max-width: 80%;
}

.message.sent {
  background-color: var(--primary);
  color: white;
  align-self: flex-end;
}

.message.received {
  background-color: var(--bg-alt);
  color: var(--text);
  align-self: flex-start;
}

.message .message-content {
  max-width: 100%;
  word-wrap: break-word;
}

.message .message-time {
  position: absolute;
  bottom: 5px;
  right: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-input-container {
  padding: 0.5rem 1rem;
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  position: sticky;
  bottom: 0;
  z-index: 1;
}

.chat-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
  margin-right: 0.5rem;
  background-color: var(--bg);
  color: var(--text);
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-submit {
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.chat-submit:hover {
  background-color: var(--primary-hover);
}

.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  z-index: 1001; /* Ensure it's above other elements like the footer */
  transition: background-color var(--transition-fast);
}

.chat-button:hover {
  background-color: var(--primary-hover);
}

/* Enhanced section positioning and centralization */
section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 5rem 0;
    overflow: hidden;
}

/* Improved container sizing and margin handling */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Fix for extra wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Better mobile handling */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Enhanced ecosystem visualization */
.ecosystem-visualization {
    position: relative;
    padding: 6rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.ecosystem-container {
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ecosystem-map {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 4rem auto;
}

/* Hero section improvements with better content placement */
.hero {
    padding-top: 120px;
    padding-bottom: 5rem;
    position: relative;
    overflow: visible;
    min-height: calc(100vh - 120px); /* Full viewport height minus header */
    display: flex;
    align-items: center;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero .col {
    flex: 1;
    min-width: 300px;
    max-width: 600px; /* Prevent extremely wide columns */
}

/* Fix for footer position */
footer {
    position: relative;
    z-index: 10;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

/* Header scrolled state */
.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .main-header.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
}

/* Ecosystem node positioning improvements */
.ecosystem-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--card-bg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.ecosystem-node.main {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 5;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
}

.ecosystem-node.operator {
    top: 20%;
    left: 20%;
    background-color: rgba(108, 99, 255, 0.1);
    border: 2px solid var(--primary);
}

.ecosystem-node.coder {
    top: 20%;
    right: 20%;
    background-color: rgba(0, 191, 166, 0.1);
    border: 2px solid var(--secondary);
}

.ecosystem-node.llm {
    bottom: 20%;
    left: 20%;
    background-color: rgba(108, 99, 255, 0.1);
    border: 2px solid var(--primary-hover);
}

.ecosystem-node.app {
    bottom: 20%;
    right: 20%;
    background-color: rgba(0, 191, 166, 0.1);
    border: 2px solid var(--secondary-hover);
}

/* Better connectors for ecosystem visualization */
.ecosystem-connector, .connector {
    position: absolute;
    transform-origin: left center;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0.5;
    border-radius: 2px;
    z-index: 1;
}

/* SVG connector paths */
path.connector {
    fill: none;
    stroke-width: 2;
    stroke: url(#connector-gradient);
    opacity: 0.5;
    stroke-dasharray: 5, 5;
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 1000;
    }
}

/* Node content styling */
.node-icon {
    font-size: 24px;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--primary);
}

.main .node-icon {
    color: white;
}

.node-title {
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.main .node-title {
    color: white;
}

/* Enhanced animations */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-reverse-animation {
    animation: float-reverse 7s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes float-reverse {
    0% { transform: translateY(0px); }
    50% { transform: translateY(15px); }
    100% { transform: translateY(0px); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .ecosystem-node {
        width: 100px;
        height: 100px;
    }
    
    .ecosystem-node.main {
        width: 120px;
        height: 120px;
    }
    
    .node-icon {
        font-size: 20px;
        height: 32px;
        width: 32px;
        margin-bottom: 4px;
    }
    
    .node-title {
        font-size: 12px;
    }
    
    .ecosystem-map {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .ecosystem-node.operator {
        top: 15%;
        left: 15%;
    }
    
    .ecosystem-node.coder {
        top: 15%;
        right: 15%;
    }
    
    .ecosystem-node.llm {
        bottom: 15%;
        left: 15%;
    }
    
    .ecosystem-node.app {
        bottom: 15%;
        right: 15%;
    }
}

@media (max-width: 576px) {
    .ecosystem-map {
        height: 350px;
    }
    
    .ecosystem-node {
        width: 80px;
        height: 80px;
    }
    
    .ecosystem-node.main {
        width: 100px;
        height: 100px;
    }
    
    .node-icon {
        font-size: 18px;
    }
    
    .node-title {
        font-size: 12px;
    }
}

/* Fix navigation menu appearance */
nav ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Enhanced mobile device support */

/* Improved touch target sizes for mobile */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    nav a,
    .theme-toggle button {
        padding: 10px 20px; /* Larger touch targets */
        min-height: 44px; /* Apple's recommended min touch target height */
        min-width: 44px; /* Apple's recommended min touch target width */
    }
    
    .theme-toggle {
        bottom: 20px;
        left: 20px;
    }
    
    /* Improved spacing for mobile navigation */
    nav ul li {
        margin: 15px 0;
        padding: 8px 0;
    }
    
    /* Ensure text remains legible on small screens */
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Ensure the cube is properly sized on mobile */
    .cube-container {
        height: 250px;
        width: 250px;
    }
    
    .cube {
        width: 150px;
        height: 150px;
    }
    
    .cube-face {
        width: 150px;
        height: 150px;
    }
    
    /* Adjust cube face positions for the smaller cube */
    .cube-face.front {
        transform: translateZ(75px);
    }
    
    .cube-face.back {
        transform: rotateY(180deg) translateZ(75px);
    }
    
    .cube-face.top {
        transform: rotateX(90deg) translateZ(75px);
    }
    
    .cube-face.bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }
    
    .cube-face.left {
        transform: rotateY(-90deg) translateZ(75px);
    }
    
    .cube-face.right {
        transform: rotateY(90deg) translateZ(75px);
    }
    
    /* Make cube content more legible on smaller screens */
    .cube-content i {
        font-size: 24px;
    }
    
    .cube-content span {
        font-size: 14px;
    }
}

/* Fix for iOS Safari issues with position: fixed */
@supports (-webkit-touch-callout: none) {
    .theme-toggle,
    .theme-indicator {
        /* Use position absolute with bottom positioning for iOS */
        position: absolute;
        bottom: 20px;
    }
    
    /* Fix iOS Safari rendering issues */
    .cube-face {
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Fix for notched/dynamic island iPhones */
@media screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3),
       screen and (min-device-width: 390px) and (max-device-width: 844px) and (-webkit-min-device-pixel-ratio: 3) {
    header {
        padding-top: env(safe-area-inset-top, 0);
    }
    
    .theme-toggle {
        bottom: calc(20px + env(safe-area-inset-bottom, 0));
        left: calc(20px + env(safe-area-inset-left, 0));
    }
}

/* Fix viewport height issues on mobile browsers */
.hero-section {
    min-height: 100vh; /* Fallback */
    min-height: calc(var(--vh, 1vh) * 100);
}

/* Optimizations for touch-based interaction with the cube */
.cube-container {
    touch-action: none; /* Prevent browser handling of touch inputs */
}

.active-interaction .cube {
    animation: none !important; /* Ensure animation is disabled during touch interaction */
}

/* Additional responsive fixes */
@media (max-width: 480px) {
    /* Extra small devices (phones) */
    .hero-section .container {
        padding: 0 15px;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-cta a {
        width: 100%;
        text-align: center;
    }
    
    /* Adjust ecosystem nodes for very small screens */
    .ecosystem-node {
        width: 80px;
        height: 80px;
    }
    
    .ecosystem-node.main {
        width: 100px;
        height: 100px;
    }
    
    .node-icon {
        font-size: 18px;
    }
    
    .node-title {
        font-size: 12px;
    }
}

/* Fix for Android Chrome address bar issues */
@supports (height: 100dvh) {
    .hero-section {
        min-height: 100dvh; /* Dynamic viewport height */
    }
}
