.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f8b500 75%, #00c9ff 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease-in-out infinite;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

#cube-container {
    width: 300px;
    height: 300px;
    position: relative;
}

.solutions {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.solution-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.solution-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: var(--primary);
    color: white;
}

.apis {
    padding: 6rem 0;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.api-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.api-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.1);
}

.api-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.api-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pricing {
    margin-bottom: 2rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

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

.api-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.api-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

.examples {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.example-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.example-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.1);
}

.example-preview {
    width: 100%;
    height: 120px;
    background: var(--bg-darker);
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.example-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.example-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .solutions-grid, .api-grid, .examples-grid {
        grid-template-columns: 1fr;
    }
}


/* Enhanced Cards with Morphing Effects */
.solution-card, .api-card, .example-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(0, 0, 0, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card::after, .api-card::after, .example-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(255, 107, 157, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 20px;
}

.solution-card:hover::after, .api-card:hover::after, .example-card:hover::after {
    opacity: 1;
}

.solution-card:hover, .api-card:hover, .example-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 
        0 25px 60px rgba(102, 126, 234, 0.2),
        0 0 40px rgba(255, 107, 157, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Card Icons with Orbital Animation */
.card-icon {
    background: var(--gradient-ethereal);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.card-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b9d, #c44569, #f8b500, #00c9ff, #92fe9d);
    background-size: 200% 200%;
    animation: orbitalGlow 4s linear infinite;
    border-radius: 22px;
    z-index: -1;
}

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

/* Enhanced Buttons with Quantum Effects */
.btn-primary, .btn-secondary, .card-btn, .api-btn {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before, .card-btn::before, .api-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before, .card-btn:hover::before, .api-btn:hover::before {
    left: 100%;
}

.btn-primary:hover, .card-btn:hover, .api-btn:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.4),
        0 0 20px rgba(255, 107, 157, 0.2);
}

/* Enhanced Examples Preview Animations */
.example-preview {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(26, 26, 26, 0.8));
}

.mouse-trail {
    position: absolute;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.8), transparent);
    border-radius: 50%;
    animation: trailFloat 3s ease-in-out infinite;
}

@keyframes trailFloat {
    0%, 100% { transform: translate(20px, 60px); opacity: 0.8; }
    25% { transform: translate(80px, 30px); opacity: 1; }
    50% { transform: translate(120px, 70px); opacity: 0.6; }
    75% { transform: translate(60px, 90px); opacity: 1; }
}

.rotating-cube {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    margin: 40px auto;
    animation: cubeRotate 4s linear infinite;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
}

@keyframes cubeRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.animated-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 300% 300%;
    animation: bgShift 6s ease-in-out infinite;
    border-radius: 12px;
}

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

/* Enhanced Form Elements */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input, .form-group textarea, .form-group select {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 8px 25px rgba(102, 126, 234, 0.2);
    background: rgba(26, 26, 26, 0.95);
}

/* Enhanced Contact Section */
.contact-form {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

/* Enhanced API Cards */
.api-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.active {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.status-indicator.beta {
    background: #ffaa00;
    box-shadow: 0 0 10px #ffaa00;
}

.api-endpoints {
    margin: 1.5rem 0;
}

.endpoint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.method {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

.method.post {
    background: #ff6b35;
    color: white;
}

.method.get {
    background: #00ccff;
    color: white;
}

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

/* Enhanced Technology Stack */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-category {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.tech-category h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Enhanced FAQ Section */
.faq-grid {
    display: grid;
    gap: 1rem;
    margin-top: 3rem;
}

.faq-item {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(102, 126, 234, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Enhanced Floating Elements */
.floating-elements {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-ethereal);
    border-radius: 50%;
    animation: floatOrbit 8s linear infinite;
}

.floating-element:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 6s;
}

.floating-element:nth-child(2) {
    animation-delay: 2s;
    animation-duration: 8s;
}

.floating-element:nth-child(3) {
    animation-delay: 4s;
    animation-duration: 10s;
}

@keyframes floatOrbit {
    0% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .solutions-grid, .api-grid, .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .solution-card, .api-card, .example-card {
        padding: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
}