/* Enhanced style fixes for Vigthoria Landing Page */

:root {
    --primary-color: #6c63ff;
    --secondary-color: #00bfa6;
    --accent-color: #ff5e84;
    --dark-bg: #12151f;
    --light-text: #f8f9fa;
    --light-bg: #f7fafc;
    --dark-text: #1a202c;
    --gradient-main: linear-gradient(135deg, #6c63ff 0%, #00bfa6 100%);
    --gradient-accent: linear-gradient(135deg, #ff5e84 0%, #ff9e7d 100%);
    --shadow-soft: 0 10px 30px rgba(108, 99, 255, 0.1);
    --shadow-strong: 0 15px 35px rgba(18, 21, 31, 0.1), 0 5px 15px rgba(18, 21, 31, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --fallback-vh: 100vh;
    --header-height: 70px; /* Defined header height variable for consistency */
}

body {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    visibility: visible !important; /* Ensure the body is always visible */
    opacity: 1 !important;
    margin: 0; /* Ensure no body margin */
    padding: 0; /* Ensure no body padding */
}

/* Improved header */
header {
    background-color: rgba(10, 10, 10, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    padding: 0 !important; /* Remove vertical padding */
    box-shadow: 0 2px 20px rgba(0, 240, 255, 0.15);
    height: var(--header-height); /* Use variable for height */
    display: flex !important;
    align-items: center !important;
}

header + * {
    margin-top: 0 !important; /* Eliminate gap */
    padding-top: var(--header-height) !important; /* Add padding equal to header height */
}

.logo {
    font-weight: bold;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 25px rgba(0, 240, 255, 0.8);
    transform: scale(1.05);
}

/* Fix mobile navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }
    
    .mobile-menu {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(17, 25, 40, 0.95);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        flex-direction: column;
        transition: left 0.3s ease;
        z-index: 100;
        padding: 20px 0;
    }
    
    nav ul.open {
        left: 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
}

/* Cube styling moved to hero-layout.css */

.cube {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: cube-rotate 20s infinite linear;
    margin: 0 auto;
    z-index: 10; /* Ensure cube is visible */
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.5); /* Add glow for better visibility */
}

.cube-container {
    perspective: 1000px;
    perspective-origin: center center;
    margin: 40px auto;
    width: 300px; /* Ensure container has width */
    height: 300px; /* Ensure container has height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 41, 59, 0.8); /* More opaque for visibility */
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.5); /* Stronger glow */
    backface-visibility: visible;
    transition: all 0.3s ease;
}

.cube-content {
    text-align: center;
    color: var(--text-primary);
}

.cube-content i {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--primary-color);
    display: block;
}

.cube-content span {
    font-size: 16px;
    font-weight: bold;
}

/* Make cube faces more visible with distinct positioning */
.cube-face.front {
    transform: translateZ(100px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(100px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(100px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(100px);
}

@keyframes cube-rotate {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* Pause animation when hovering */
.cube-container:hover .cube {
    animation-play-state: paused;
}

/* Hero section fixes */
.hero-section {
    position: relative !important;
    padding: 0 !important; /* Remove all padding */
    margin: 0 !important; /* Remove all margins */
    margin-top: 0 !important; /* Explicitly remove top margin */
    overflow: hidden !important;
    background-color: var(--bg-primary) !important;
    min-height: 600px !important; /* Minimum height to ensure visibility */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1 !important;
    min-height: 100vh !important; /* Full viewport height */
    padding-top: var(--header-height) !important; /* Use header height as top padding */
}

.hero-section .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important; /* Only horizontal padding */
    box-sizing: border-box !important; /* Include padding in width */
}

.hero-content {
    flex: 1 !important;
    max-width: 600px !important;
    z-index: 2 !important;
    padding-right: 20px !important;
}

.hero-visual {
    flex: 1 !important;
    min-width: 300px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 2 !important;
    height: 400px !important; /* Ensure height for cube visibility */
}

/* Theme toggle improvements */
.theme-toggle {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    z-index: 9999 !important;
    width: 50px !important;
    height: 50px !important;
    background-color: var(--card-bg) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.theme-toggle button {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: transparent !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    padding: 0 !important;
}

.theme-toggle:hover {
    transform: scale(1.1) !important;
}

/* Fix for theme indicators */
.theme-indicator {
    position: fixed;
    bottom: 90px; /* Position below theme toggle */
    left: 30px;
    padding: 8px 16px;
    background-color: var(--card-bg, #1e293b);
    color: var(--text-primary, #f8fafc);
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
    border: 1px solid var(--primary-color, #6c63ff);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
}

.theme-toggle:hover + .theme-indicator,
.theme-indicator:hover {
    opacity: 1;
}

/* Show/hide appropriate icon based on theme */
[data-theme="dark"] .theme-toggle .light-icon {
    display: inline-block;
}

[data-theme="dark"] .theme-toggle .dark-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .light-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .dark-icon {
    display: inline-block;
}

/* Theme visual indicators */
[data-theme="dark"] {
    --theme-indicator: "Dark Mode";
}

[data-theme="light"] {
    --theme-indicator: "Light Mode";
}

.theme-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 6px 12px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.theme-indicator:hover {
    opacity: 1;
}

.theme-indicator::after {
    content: var(--theme-indicator);
}

/* Make gradient text more visible in light mode */
[data-theme="light"] .gradient-text {
    background: linear-gradient(45deg, #4f46e5, #00bfa6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-visual {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-visual {
        margin-top: 40px;
    }
    
    .cube {
        width: 150px;
        height: 150px;
    }
    
    .cube-face {
        width: 150px;
        height: 150px;
    }
    
    .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);
    }
}

/* Fix animated cube for Safari */
/* Standardized cube selectors that work with cube-fix.js */
.ai-cube, .cube-container {
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.ai-cube-inner, .cube {
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform-origin: center center;
    animation: none !important; /* Prevent CSS animation interference */
    -webkit-transform-style: preserve-3d !important;
    transform-style: preserve-3d !important;
}

.ai-cube-face, .cube-face {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
}

/* Optimize image loading transitions */
img.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

img.loaded {
    opacity: 1;
}

.animated-placeholder {
    transition: opacity 0.3s ease-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #1a202c 25%, #2d3748 50%, #1a202c 75%);
    background-size: 400% 400%;
    animation: placeholderGradient 3s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.5s ease;
    opacity: 1;
}

@keyframes placeholderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced hero section */
.hero {
    padding: 200px 0 150px;
    background-image: 
        radial-gradient(circle at 20% 90%, rgba(255, 0, 160, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.15) 0%, transparent 40%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent; /* Safari */
    color: transparent;
    color: transparent;
    line-height: 1.2;
    color: var(--light-text);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lead {
    font-size: 1.3rem;
    max-width: 700px;
    margin-bottom: 40px;
}

.highlight {
    color: var(--primary-color) !important;
    position: relative;
    z-index: 1;
    display: inline-block;
    -webkit-text-fill-color: var(--primary-color) !important;
    background: transparent !important;
    text-shadow: 0 0 15px rgba(108, 99, 255, 0.4);
}

h1 .highlight {
    font-weight: 900;
    position: relative;
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
    background: none !important;
    display: inline-block;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-color: rgba(255, 0, 160, 0.15);
    z-index: -1;
    transform: skewX(-15deg);
    transition: all 0.3s ease;
}

h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(108, 99, 255, 0.2);
    z-index: -1;
    transition: all 0.3s ease;
}

.highlight:hover::after {
    height: 60%;
    background-color: rgba(255, 0, 160, 0.25);
}

h1 .highlight:hover::after {
    height: 40%;
    background-color: rgba(108, 99, 255, 0.3);
}

/* Fix spacing issues */
.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* Fix pricing toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0 10px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transition: .4s;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Fix contact form validation styles */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #f87171;
}

.form-group input:focus:invalid,
.form-group textarea:focus:invalid {
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #34d399;
}

/* Features section */
.features {
    padding: 100px 0;
    background-color: rgba(10, 10, 10, 0.8);
}

.feature-list {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.feature {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.8) 0%, rgba(40, 40, 80, 0.8) 100%);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.3);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

/* Animations */
.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improve accessibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Fix hero section background on high-DPI displays */
.hero-bg-grid {
    background-size: 50px 50px;
}

/* Footer styling */
footer {
    background-color: rgba(5, 5, 15, 0.9);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

/* Responsive fixes for all devices */
@media (max-width: 992px) {
    /* Würfelpositionierung wurde nach hero-layout.css verschoben */
    
    .feature-list, .ecosystem-items, .footer-content {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 150px 0 100px;
        text-align: center;
    }
    
    .lead {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Enhanced visual elements */
.glow-border {
    position: relative;
    border: 1px solid rgba(108, 99, 255, 0.3);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
    overflow: hidden;
}

.glow-border:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(108, 99, 255, 0) 0%,
        rgba(108, 99, 255, 0.3) 50%,
        rgba(108, 99, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: glow-border-animation 3s infinite;
}

@keyframes glow-border-animation {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Enhanced contact form section with 3D effects */
.contact {
    background: linear-gradient(135deg, rgba(18, 21, 31, 0.97) 0%, rgba(32, 38, 57, 0.97) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.contact:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zm20.97 0l9.315 9.314-1.414 1.414L34.828 0h2.83zM22.344 0L13.03 9.314l1.414 1.414L25.172 0h-2.83zM32 0l12.142 12.142-1.414 1.414L30 .828 17.272 13.556l-1.414-1.414L28 0h4zM.284 0l28 28-1.414 1.414L0 2.544V0h.284zM0 5.373l25.456 25.455-1.414 1.415L0 8.2V5.374zm0 5.656l22.627 22.627-1.414 1.414L0 13.86v-2.83zm0 5.656l19.8 19.8-1.415 1.413L0 19.514v-2.83zm0 5.657l16.97 16.97-1.414 1.415L0 25.172v-2.83zM0 28l14.142 14.142-1.414 1.414L0 30.828V28zm0 5.657L11.314 44.97 9.9 46.386l-9.9-9.9v-2.828zm0 5.657L8.485 47.8 7.07 49.212 0 42.143v-2.83zm0 5.657l5.657 5.657-1.414 1.415L0 47.8v-2.83zm0 5.657l2.828 2.83-1.414 1.413L0 53.456v-2.83zM54.627 60L30 35.373 5.373 60H8.2L30 38.2 51.8 60h2.827zm-5.656 0L30 41.03 11.03 60h2.828L30 43.858 46.142 60h2.83zm-5.656 0L30 46.686 16.686 60h2.83L30 49.515 40.485 60h2.83zm-5.657 0L30 52.343 22.344 60h2.83L30 55.172 34.828 60h2.83zM32 60l-2-2-2 2h4zM59.716 0l-28 28 1.414 1.414L60 2.544V0h-.284zM60 5.373L34.544 30.828l1.414 1.415L60 8.2V5.374zm0 5.656L37.373 33.656l1.414 1.414L60 13.86v-2.83zm0 5.656l-19.8 19.8 1.415 1.413L60 19.514v-2.83zM60 28L45.858 42.142l1.414 1.414L60 30.828V28zm0 5.657L48.686 44.97l1.415 1.415 9.9-9.9v-2.828zm0 5.657L51.515 47.8l1.414 1.413 7.07-7.07v-2.83zm0 5.657l-5.657 5.657 1.414 1.415L60 47.8v-2.83zm0 5.657l-2.828 2.83 1.414 1.413L60 53.456v-2.83zM39.9 16.385l1.414-1.414L30 3.658 18.686 14.97l1.415 1.415 9.9-9.9 9.9 9.9zm-2.83 2.828l1.415-1.414L30 9.313 21.515 17.8l1.414 1.413L30 11.8l7.07 7.414v-.002zm-2.827 2.83l1.414-1.416L30 14.97l-5.657 5.657 1.414 1.415L30 17.8l4.243 4.242zm-2.83 2.827l1.415-1.414L30 20.626l-2.828 2.83 1.414 1.414L30 23.456l1.414 1.414zM56.87 59.414L58.284 58 30 29.716 1.716 58l1.414 1.414L30 32.544l26.87 26.87z' fill='white' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.contact form {
    background: rgba(247, 250, 252, 0.03);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--light-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--light-text);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.25);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Fix pricing section for consistency */
.pricing-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

[data-theme="dark"] .pricing-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: var(--light-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

[data-theme="dark"] .pricing-card {
    background: #2d3748;
    border: 1px solid rgba(45, 55, 72, 0.8);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: var(--primary-color);
    z-index: 1;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.pricing-card-header {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

[data-theme="dark"] .pricing-card-header {
    border-bottom: 1px solid rgba(74, 85, 104, 0.5);
}

.pricing-card-header h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: var (--dark-text);
}

[data-theme="dark"] .pricing-card-header h3 {
    color: var(--light-text);
}

.price-container {
    margin-bottom: 0.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-left: 0.75rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

[data-theme="dark"] .price {
    color: var(--light-text);
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
    margin-left: 0.25rem;
}

.price::before {
    position: absolute;
    left: 0;
    content: '€';
    font-size: 1.5rem;
    font-weight: 500;
    margin-right: 0.25rem;
}

.yearly-price {
    display: none;
}

/* Fix inconsistent pricing currency */
.pricing-card .price::before {
    content: '€';
    font-size: 1.5rem;
    font-weight: 500;
    margin-right: 0.25rem;
}

.pricing-card-body {
    padding: 1.5rem;
}

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

.features-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.pricing-card-footer {
    padding: 0 1.5rem 2rem;
    text-align: center;
}

/* Fix all currency symbols to be consistent */
.pricing-section .price {
    position: relative;
}

.pricing-section .price:before {
    content: '€';
    position: absolute;
    left: -0.75rem;
    font-size: 1.5rem;
}

/* Enhanced footer and section backgrounds */
footer {
    position: relative;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0a0d15 100%);
    color: var(--light-text);
    padding: 5rem 0 2rem;
    overflow: hidden;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(108, 99, 255, 0) 0%, 
        rgba(108, 99, 255, 0.5) 50%, 
        rgba(108, 99, 255, 0) 100%);
}

.footer-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(108, 99, 255, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0.3;
    pointer-events: none;
}

/* Enhance products section with hover effects */
.product-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    background: var(--light-bg);
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .product-card {
    background: #2d3748;
    border: 1px solid rgba(45, 55, 72, 0.8);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    z-index: 10;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    color: var(--dark-text);
}

[data-theme="dark"] .product-title {
    color: var(--light-text);
}

.product-url {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-description {
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    opacity: 0.8;
    line-height: 1.6;
}

[data-theme="dark"] .product-description {
    color: var(--light-text);
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Enhanced buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.39);
    background: var(--gradient-main);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.5);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transition: all 0.5s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
    color: var(--primary-color);
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-3px);
}

/* Enhanced ecosystem visualization */
.ecosystem-visualization {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    min-height: 650px;
}

[data-theme="dark"] .ecosystem-visualization {
    background-color: rgba(13, 18, 30, 0.7);
}

[data-theme="light"] .ecosystem-visualization {
    background-color: rgba(240, 245, 255, 0.7);
}

.ecosystem-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%236c63ff' fill-opacity='0.05'%3E%3Cpath fill-rule='evenodd' d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2L74 40h-2zm4 0l4-4v2L78 40h-2zM2 2l2-2h2l-4 4V2zm8 0l6-2h2L8 10V8L2 2h2l6 6V2zm8 0L40 0v2L22 18v-2L10 2h2l6 6V2zm8 0L40 0v2L26 16v-2L18 2h2l6 6V2zm8 0L40 0v2L30 12v-2L26 2h2l6 6V2zm8 0L40 0v2L34 8v-2L34 2h2l4 4V2zm8 0L40 0v2L38 4v-2L42 0h-2V2zm-32 8L8 2h2l8 8v2l-2 2V10zm24 0l-8-8h2l8 8v2l-2 2V10zm16 0l-8-8h2L40 14v-2l-8-8h2l8 8v-2l6-6h2l-6 6v2l6-6h2l-6 6v2l6-6h2l-6 6v2zM34 18L18 2h2l16 16h-2zm0 4L14 6v-2l22 22h-2zm-8 8L8 12v-2l20 20h-2zm-8 8L2 22v-2l18 18h-2zm-8 8l-8-8v-2l10 10h-2zm8-4l-4-4v-2l6 6h-2zm-4 4l-2-2v-2l4 4h-2zM42 40L40 38v-2l4 4h-2zm8 0l-8-8v-2l10 10v2l8-8h2L52 40h-2zm8 0l-4-4v-2l6 6v2l8-8h2L60 40h-2zm8 0v-2l2 2h-2zm-40 4l-8-8h2l8 8h-2zm16 0l-16-16h2l16 16h-2zm16 0l-16-16h2l16 16h-2zm16 0l-16-16v-2l18 18h-2zm4 4l-24-24v-2l26 26h-2zm4 4l-28-28v-2l30 30h-2zm4 4l-32-32v-2l34 34h-2zm4 4l-36-36v-2l38 38h-2zm4 4l-40-40v-2l42 42h-2zm4 4l-44-44v-2l46 46h-2zm4 4l-48-48v-2l50 50h-2zm4 4L60 40h2l16 16v2L40 78v-2l40-40h2L44 74h-2zm0 4L40 76v-2l6-6v2L40 76v-2l8-8v2L40 76v-2l10-10v2L40 76v-2l12-12v2L40 76v-2l14-14v2L40 76v-2l16-16v2L40 76v-2l18-18v2L40 76v-2l20-20v2L40 76v-2l22-22v2L40 76v-2l24-24v2L40 76v-2l26-26v2L40 76v-2l28-28v2L40 76v-2l30-30v2L40 76v-2l32-32v2L48 76h-2zm-4-8l40-40h2L58 72h-2zm-4-8l36-36h2L54 68h-2zm-4-8l32-32h2L50 64h-2zm-4-8l28-28h2L46 60h-2zm-4-8l24-24h2L42 56h-2zm-4-8l20-20h2L38 52h-2zm-4-8l16-16h2L34 48h-2zm-4-8l12-12h2L30 44h-2zm-4-8l8-8h2L26 40h-2zm-4-8l4-4h2L22 36h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Light theme background */
[data-theme="light"] .ecosystem-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%230062cc' fill-opacity='0.05'%3E%3Cpath fill-rule='evenodd' d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2L74 40h-2zm4 0l4-4v2L78 40h-2zM2 2l2-2h2l-4 4V2zm8 0l6-2h2L8 10V8L2 2h2l6 6V2zm8 0L40 0v2L22 18v-2L10 2h2l6 6V2zm8 0L40 0v2L26 16v-2L18 2h2l6 6V2zm8 0L40 0v2L30 12v-2L26 2h2l6 6V2zm8 0L40 0v2L34 8v-2L34 2h2l4 4V2zm8 0L40 0v2L38 4v-2L42 0h-2V2zm-32 8L8 2h2l8 8v2l-2 2V10zm24 0l-8-8h2l8 8v2l-2 2V10zm16 0l-8-8h2L40 14v-2l-8-8h2l8 8v-2l6-6h2l-6 6v2l6-6h2l-6 6v2l6-6h2l-6 6v2zM34 18L18 2h2l16 16h-2zm0 4L14 6v-2l22 22h-2zm-8 8L8 12v-2l20 20h-2zm-8 8L2 22v-2l18 18h-2zm-8 8l-8-8v-2l10 10h-2zm8-4l-4-4v-2l6 6h-2zm-4 4l-2-2v-2l4 4h-2zM42 40L40 38v-2l4 4h-2zm8 0l-8-8v-2l10 10v2l8-8h2L52 40h-2zm8 0l-4-4v-2l6 6v2l8-8h2L60 40h-2zm8 0v-2l2 2h-2zm-40 4l-8-8h2l8 8h-2zm16 0l-16-16h2l16 16h-2zm16 0l-16-16h2l16 16h-2zm16 0l-16-16v-2l18 18h-2zm4 4l-24-24v-2l26 26h-2zm4 4l-28-28v-2l30 30h-2zm4 4l-32-32v-2l34 34h-2zm4 4l-36-36v-2l38 38h-2zm4 4l-40-40v-2l42 42h-2zm4 4l-44-44v-2l46 46h-2zm4 4l-48-48v-2l50 50h-2zm4 4L60 40h2l16 16v2L40 78v-2l40-40h2L44 74h-2zm0 4L40 76v-2l6-6v2L40 76v-2l8-8v2L40 76v-2l10-10v2L40 76v-2l12-12v2L40 76v-2l14-14v2L40 76v-2l16-16v2L40 76v-2l18-18v2L40 76v-2l20-20v2L40 76v-2l22-22v2L40 76v-2l24-24v2L40 76v-2l26-26v2L40 76v-2l28-28v2L40 76v-2l30-30v2L40 76v-2l32-32v2L48 76h-2zm-4-8l40-40h2L58 72h-2zm-4-8l36-36h2L54 68h-2zm-4-8l32-32h2L50 64h-2zm-4-8l28-28h2L46 60h-2zm-4-8l24-24h2L42 56h-2zm-4-8l20-20h2L38 52h-2zm-4-8l16-16h2L34 48h-2zm-4-8l12-12h2L30 44h-2zm-4-8l8-8h2L26 40h-2zm-4-8l4-4h2L22 36h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

.ecosystem-map {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 4rem 0;
}

.ecosystem-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.connector {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    opacity: 0.6;
    filter: drop-shadow(0 0 8px rgba(108, 99, 255, 0.3));
}

.connector.operator {
    stroke: #7349c9;
}

.connector.coder {
    stroke: #38b2ac;
}

.connector.llm {
    stroke: #4299e1;
}

.connector.app {
    stroke: #e879f9;
}

.ecosystem-node {
    position: absolute;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-soft);
    z-index: 2;
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .ecosystem-node {
    background: #2d3748;
    border: 1px solid rgba(45, 55, 72, 0.8);
}

.ecosystem-node:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
    z-index: 3;
}

.ecosystem-node.main {
    width: 180px;
    height: 180px;
    background: var(--gradient-main);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.ecosystem-node.main:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.ecosystem-node.operator {
    top: 20%;
    left: 15%;
    background: white;
}

.ecosystem-node.coder {
    top: 65%;
    left: 15%;
    background: white;
}

.ecosystem-node.llm {
    top: 20%;
    right: 15%;
    background: white;
}

.ecosystem-node.app {
    top: 65%;
    right: 15%;
    background: white;
}

.node-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.ecosystem-node.operator .node-icon {
    color: #7349c9;
}

.ecosystem-node.coder .node-icon {
    color: #38b2ac;
}

.ecosystem-node.llm .node-icon {
    color: #4299e1;
}

.ecosystem-node.app .node-icon {
    color: #e879f9;
}

.ecosystem-node.main .node-icon {
    color: white;
}

.node-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-text);
}

[data-theme="dark"] .node-title {
    color: var(--light-text);
}

.ecosystem-node.main .node-title {
    color: white;
}

/* Animation for ecosystem elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-reverse-animation {
    animation: float-reverse 7s ease-in-out infinite;
}

.glow-animation {
    animation: glow 3s ease-in-out infinite alternate;
}

@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); }
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(108, 99, 255, 0.5); }
    100% { box-shadow: 0 0 30px rgba(108, 99, 255, 0.8); }
}

/* Fix responsive layout issues */
@media (max-width: 992px) {
    .product-card {
        min-height: 0;
    }
    
    .ecosystem-map {
        height: 700px;
    }
    
    .ecosystem-node.operator {
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .ecosystem-node.coder {
        top: 30%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .ecosystem-node.llm {
        top: 70%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .ecosystem-node.app {
        top: 90%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .ecosystem-node.operator:hover,
    .ecosystem-node.coder:hover,
    .ecosystem-node.llm:hover,
    .ecosystem-node.app:hover {
        transform: translateX(-50%) scale(1.1);
    }
}

@media (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 350px;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

/* Optimized animations for page elements with improved performance */
.reveal-animation {
    opacity: 0;
    transform: translateY(20px); /* Reduced distance for smoother animation */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Faster transition */
    will-change: opacity, transform;
    -webkit-backface-visibility: hidden; /* Prevent flickering */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.reveal-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(15px); /* Smaller movement for better performance */
    transition: opacity 0.4s ease, transform 0.4s ease; /* Slightly faster */
    will-change: opacity, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Additional fixes for image errors and Advanced AI text visibility */

/* Fix image loading errors with better fallbacks */
.image-error {
    min-height: 150px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 191, 166, 0.1) 100%);
    border: 1px dashed rgba(108, 99, 255, 0.3);
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-error::after {
    content: attr(alt);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    text-align: center;
    padding: 0 20px;
}

.animated-placeholder.error {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(0, 191, 166, 0.05) 100%);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.animated-placeholder.error::before {
    content: '';
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-left-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.animated-placeholder.error::after {
    content: 'Loading image...';
    font-size: 14px;
    color: var(--primary-color);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Create better visual placeholder for missing images */
.product-image {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.4) 0%, rgba(45, 55, 72, 0.4) 100%);
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform; /* Hint for browser */
    contain: paint; /* Reduce paint area */
}

.animated-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(36, 60, 100, 0.8) 100%);
    z-index: 1;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.animated-placeholder.loaded {
    opacity: 0;
    z-index: -1;
}

.product-logo {
    width: 60px;
    height: 60px;
    fill: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(108, 99, 255, 0.5));
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Fix pricing currency alignment */
.price {
    position: relative;
    padding-left: 0.75rem;
}

.price::before {
    position: absolute;
    left: 0;
}

/* Fix React hydration issues with class names */
.ai-cube-inner, .cube {
    animation: none !important;
    -webkit-transform-style: preserve-3d !important;
    transform-style: preserve-3d !important;
}

/* Fix 3D transforms for all browsers including Firefox */
.ai-cube-inner, .cube {
    will-change: transform;
}

.ai-cube-face, .cube-face {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0.1px); /* Help with Firefox rendering */
}

/* Enhanced particles */
.particles {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
}

/* Performance optimizations */
.animated-image-container {
    min-height: 200px;
}

/* Enhanced pricing tabs */
.product-pricing-tabs {
    margin: 2rem auto;
    max-width: 600px;
}

.product-tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.product-tab-button {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: transparent;
    color: var(--text-muted, #cbd5e0);
    border: 1px solid var(--border, #e2e8f0);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.1;
    transform: skewX(-15deg);
    transition: all 0.5s ease;
    z-index: -1;
}

.product-tab-button:hover::before {
    width: 120%;
}

.product-tab-button:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.product-tab-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.39);
}

.pricing-category {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Standardize pricing format and month/year toggle */
.price-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
    margin-left: 0.25rem;
}

.yearly-price {
    display: none; /* Initially hide yearly prices */
}

/* Fix spacing and alignment throughout the page */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.container {
    padding: 0 20px;
    max-width: 1200px;
}

/* Enhance visual appeal with subtle animations */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* Enhanced form styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--light-text);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.25);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    background: rgba(26, 32, 44, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
}

.contact-social {
    margin-top: 2rem;
}

.contact-social h4 {
    margin-bottom: 1rem;
}

.contact-social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Button styles */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transition: all 0.5s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-3px);
}

.full-width {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/**
 * Vigthoria.io - Style fixes and enhancements
 * Improves positioning, contrast, and theme switching
 */

/* 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;
    }
}

/* Improved theme toggle with better differentiation */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--theme-toggle-bg, rgba(255, 255, 255, 0.1));
}

.theme-toggle:hover {
    background: var(--theme-toggle-hover-bg, rgba(255, 255, 255, 0.2));
    transform: scale(1.1);
}

html[data-theme="light"] .theme-toggle {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .theme-toggle {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* Hide/show appropriate icons */
.theme-toggle .fa-sun {
    display: none;
    color: #f7d046;
    font-size: 18px;
}

.theme-toggle .fa-moon {
    display: block;
    color: #cbd5e1;
    font-size: 16px;
}

html[data-theme="light"] .theme-toggle .fa-sun {
    display: block;
}

html[data-theme="light"] .theme-toggle .fa-moon {
    display: none;
}

/* Enhanced section backgrounds for better theme differentiation */
html[data-theme="light"] section {
    color: #334155;
}

html[data-theme="dark"] section {
    color: #e2e8f0;
}

/* Light mode specific adjustments */
html[data-theme="light"] {
    --primary: #5a52e3;
    --primary-hover: #4b44c4;
    --secondary: #00a593;
    --secondary-hover: #008a7a;
    --text: #334155;
    --text-light: #64748b;
    --heading: #1e293b;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --theme-toggle-bg: rgba(0, 0, 0, 0.05);
    --theme-toggle-hover-bg: rgba(0, 0, 0, 0.1);
    
    background-color: #f8fafc;
    color: #334155;
}

/* Dark mode specific adjustments */
html[data-theme="dark"] {
    --primary: #6c63ff;
    --primary-hover: #7a72ff;
    --secondary: #00bfa6;
    --secondary-hover: #00d4b8;
    --text: #e2e8f0;
    --text-light: #cbd5e1;
    --heading: #f1f5f9;
    --background: #0f172a;
    --card-bg: #1e293b;
    --border: #334155;
    --theme-toggle-bg: rgba(255, 255, 255, 0.1);
    --theme-toggle-hover-bg: rgba(255, 255, 255, 0.2);
    
    background-color: #0f172a;
    color: #e2e8f0;
}

/* 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;
}

/* Fix header appearance in light mode */
html[data-theme="light"] .main-header {
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

html[data-theme="dark"] .main-header {
    background-color: rgba(15, 23, 42, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}

/* 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;
        height: 28px;
        width: 28px;
    }
}

/* Fix navigation menu appearance */
nav ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* This fixes dark mode text against light backgrounds */
html[data-theme="light"] .gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Safari */
    color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 700;
}

html[data-theme="dark"] .gradient-text {
    background: linear-gradient(90deg, var(--primary-hover), var(--secondary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Safari */
    color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 700;
}

/* 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 */
    }
}
