:root {
    --primary-color: #6C63FF;
    /* Vibrant Purple */
    --secondary-color: #00F5D4;
    /* Electric Teal */
    --accent-color: #FF00E6;
    /* Magenta */
    --dark-bg: #0A0A12;
    /* Deep Dark Blue/Black */
    --card-bg: #161625;
    /* Slightly lighter for cards */
    --text-color: #E0E0E0;
    --heading-color: #FFFFFF;
    --font-main: 'Outfit', sans-serif;
    --gradient-main: linear-gradient(135deg, #6C63FF 0%, #00F5D4 100%);
    --gradient-text: linear-gradient(90deg, #6C63FF, #00F5D4);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-width: 1200px;
    --spacing-section: 100px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-section) 0;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--secondary-color);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: rgba(0, 245, 212, 0.1);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    /* Standardized padding */
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    /* padding change removed */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.desktop-nav ul {
    display: flex;
    flex-direction: row;
    /* Enforce row */
    flex-wrap: nowrap;
    /* Prevent wrapping */
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 10px 0;
    /* Increase hit area */
}

.desktop-nav a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    /* Adjust position relative to new padding */
    left: 0;
    background: var(--secondary-color);
    transition: var(--transition);
}

.desktop-nav a:not(.btn-nav):hover::after,
.desktop-nav a:not(.btn-nav).active-link::after {
    /* Add active state support */
    width: 100%;
}

.desktop-nav a:not(.btn-nav).active-link {
    color: var(--secondary-color);
    /* Highlight active text too */
}

.btn-nav {
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
}

.btn-nav:hover {
    background: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    /* Hide on desktop */
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: var(--dark-bg);
    padding: 80px 0 30px;
    transition: var(--transition);
    z-index: 999;
    text-align: center;
}

.mobile-nav.active {
    top: 0;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 20px;
}

.mobile-nav li {
    margin: 15px 0;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    z-index: 2;
    position: relative;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Hero Background Elements */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -50px;
    animation: float 10s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -50px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -50px);
    }
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.subtitle {
    display: block;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.line {
    width: 80px;
    height: 4px;
    background: var(--gradient-main);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #ccc;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.about-image .image-wrapper {
    width: 100%;
    height: 400px;
    background-color: #222;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 20px 20px 0 rgba(108, 99, 255, 0.1);
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
}

.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(10, 10, 18, 0.8), transparent);
}

/* Services */
.bg-darker {
    background: #0d0d16;
}

.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-category h3 {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* Color variations for category icons */
.service-category:nth-child(1) h3 i {
    color: #4CC9F0;
}

/* Development - Cyan */
.service-category:nth-child(2) h3 i {
    color: #F72585;
}

/* Marketing - Pink */
.service-category:nth-child(3) h3 i {
    color: #FFD166;
}

/* Creative - Yellow */
.service-category:nth-child(4) h3 i {
    color: #06D6A0;
}

/* AI - Green */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(108, 99, 255, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #aaa;
    font-size: 0.95rem;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-box i {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-box h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Technologies - Marquee */
.tech-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.tech-marquee::before,
.tech-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.tech-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--dark-bg), transparent);
}

.tech-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--dark-bg), transparent);
}

.tech-track {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 30px;
    margin: 0 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 40px;
    color: #aaa;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h4 {
    color: #fff;
    margin-bottom: 5px;
}

.contact-form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.btn-block {
    width: 100%;
}

/* Footer */
footer {
    background: #050508;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
}

/* Our Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
    padding-top: 40px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -60px auto 20px;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.process-step h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-card p {
    font-style: italic;
    color: #ccc;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.client-info h4 {
    color: #fff;
    margin-bottom: 2px;
}

.client-info span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #e0e0e0;
}

.faq-question i {
    transition: var(--transition);
    color: var(--secondary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
    /* Approximate max height */
}

/* Floating Buttons */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    /* Position next to whatsapp */
    width: 50px;
    height: 50px;
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        margin-bottom: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
        /* Show on mobile */
    }

    .hero-section {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Digital Ecosystem Animation */
#ecosystem {
    overflow: hidden;
    position: relative;
    padding: 100px 0;
}

.bg-gradient {
    background: radial-gradient(circle at center, #1a1a2e 0%, #050508 70%);
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

.ecosystem-viz {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 700px;
    /* Increased height for larger orbits */
    position: relative;
    max-width: 1000px;
    margin: 30px auto 0;
}

/* Category Colors */
:root {
    --color-dev: #4CC9F0;
    --color-mkt: #F72585;
    --color-cre: #FFD166;
    --color-ai: #06D6A0;
}

/* Classes for dynamic coloring */
.eco-node.dev .node-icon {
    color: var(--color-dev);
    border-color: rgba(76, 201, 240, 0.4);
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.2);
}

.eco-node.mkt .node-icon {
    color: var(--color-mkt);
    border-color: rgba(247, 37, 133, 0.4);
    box-shadow: 0 0 15px rgba(247, 37, 133, 0.2);
}

.eco-node.cre .node-icon {
    color: var(--color-cre);
    border-color: rgba(255, 209, 102, 0.4);
    box-shadow: 0 0 15px rgba(255, 209, 102, 0.2);
}

.eco-node.ai .node-icon {
    color: var(--color-ai);
    border-color: rgba(6, 214, 160, 0.4);
    box-shadow: 0 0 15px rgba(6, 214, 160, 0.2);
}

.core-pulsar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #6C63FF, #0A0A12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #fff;
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.4);
    z-index: 10;
    animation: pulseCore 3s infinite ease-in-out;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.core-pulsar::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(108, 99, 255, 0.5);
    animation: rotate 20s linear infinite;
}

.orbit-path {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: rotate 40s linear infinite;
}

.orbit-path-2 {
    position: absolute;
    width: 650px;
    height: 650px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: rotate 80s linear infinite reverse;
}

.eco-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 90px;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.eco-node:hover {
    z-index: 100;
}

.eco-node:hover .node-icon {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px currentColor;
}

.node-icon {
    width: 60px;
    height: 60px;
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.eco-node span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.eco-node:hover span {
    opacity: 1;
    color: #fff;
}

/* 
   POSITIONING 
   Inner Orbit: 350px width -> Radius ~175px
   Outer Orbit: 650px width -> Radius ~325px
   We use translate to float them from the center (0,0 of parent) 
*/

/* Inner Nodes (4) - Cross Pattern */
.node-1 {
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -45px;
    animation: orbitInner1 20s linear infinite;
}

/* Top */
.node-2 {
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -45px;
    animation: orbitInner2 20s linear infinite;
}

/* Right */
.node-3 {
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -45px;
    animation: orbitInner3 20s linear infinite;
}

/* Bottom */
.node-4 {
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -45px;
    animation: orbitInner4 20s linear infinite;
}

/* Left */

/* Outer Nodes (8) - Star Pattern */
.node-5 {
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -45px;
    animation: orbitOuter1 60s linear infinite;
}

.node-6 {
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -45px;
    animation: orbitOuter2 60s linear infinite;
}

.node-7 {
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -45px;
    animation: orbitOuter3 60s linear infinite;
}

.node-8 {
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -45px;
    animation: orbitOuter4 60s linear infinite;
}

.node-9 {
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -45px;
    animation: orbitOuter5 60s linear infinite;
}

.node-10 {
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -45px;
    animation: orbitOuter6 60s linear infinite;
}

.node-11 {
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -45px;
    animation: orbitOuter7 60s linear infinite;
}

.node-12 {
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -45px;
    animation: orbitOuter8 60s linear infinite;
}

/* 
   KEYFRAMES 
   The nodes need to rotate WITH the orbit or independently.
   To make them "orbit", we can rotate the container? No, we want distinct floating.
   Let's use the 'transform: rotate(d) translate(r) rotate(-d)' trick to keep icons upright.
*/

/* Inner Orbit (Radius 175px) */
@keyframes orbitInner1 {
    from {
        transform: rotate(0deg) translate(175px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translate(175px) rotate(-360deg);
    }
}

@keyframes orbitInner2 {
    from {
        transform: rotate(90deg) translate(175px) rotate(-90deg);
    }

    to {
        transform: rotate(450deg) translate(175px) rotate(-450deg);
    }
}

@keyframes orbitInner3 {
    from {
        transform: rotate(180deg) translate(175px) rotate(-180deg);
    }

    to {
        transform: rotate(540deg) translate(175px) rotate(-540deg);
    }
}

@keyframes orbitInner4 {
    from {
        transform: rotate(270deg) translate(175px) rotate(-270deg);
    }

    to {
        transform: rotate(630deg) translate(175px) rotate(-630deg);
    }
}

/* Outer Orbit (Radius 325px) - Reverse Direction */
@keyframes orbitOuter1 {
    from {
        transform: rotate(0deg) translate(325px) rotate(0deg);
    }

    to {
        transform: rotate(-360deg) translate(325px) rotate(360deg);
    }
}

@keyframes orbitOuter2 {
    from {
        transform: rotate(45deg) translate(325px) rotate(-45deg);
    }

    to {
        transform: rotate(-315deg) translate(325px) rotate(315deg);
    }
}

@keyframes orbitOuter3 {
    from {
        transform: rotate(90deg) translate(325px) rotate(-90deg);
    }

    to {
        transform: rotate(-270deg) translate(325px) rotate(270deg);
    }
}

@keyframes orbitOuter4 {
    from {
        transform: rotate(135deg) translate(325px) rotate(-135deg);
    }

    to {
        transform: rotate(-225deg) translate(325px) rotate(225deg);
    }
}

@keyframes orbitOuter5 {
    from {
        transform: rotate(180deg) translate(325px) rotate(-180deg);
    }

    to {
        transform: rotate(-180deg) translate(325px) rotate(180deg);
    }
}

@keyframes orbitOuter6 {
    from {
        transform: rotate(225deg) translate(325px) rotate(-225deg);
    }

    to {
        transform: rotate(-135deg) translate(325px) rotate(135deg);
    }
}

@keyframes orbitOuter7 {
    from {
        transform: rotate(270deg) translate(325px) rotate(-270deg);
    }

    to {
        transform: rotate(-90deg) translate(325px) rotate(90deg);
    }
}

@keyframes orbitOuter8 {
    from {
        transform: rotate(315deg) translate(325px) rotate(-315deg);
    }

    to {
        transform: rotate(-45deg) translate(325px) rotate(45deg);
    }
}


@keyframes pulseCore {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 50px rgba(108, 99, 255, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 80px rgba(0, 245, 212, 0.8);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.3;
}

.p1 {
    top: 20%;
    left: 20%;
    animation: particleFloat 10s linear infinite;
}

.p2 {
    top: 70%;
    right: 20%;
    animation: particleFloat 15s linear infinite reverse;
}

.p3 {
    bottom: 10%;
    left: 40%;
    animation: particleFloat 12s linear infinite 2s;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translate(100px, -100px);
        opacity: 0;
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .ecosystem-viz {
        height: 500px;
        transform: scale(0.7);
    }
}

@media (max-width: 600px) {
    .ecosystem-viz {
        height: 450px;
        transform: scale(0.45);
        margin-top: -50px;
        margin-bottom: -50px;
    }

    #ecosystem {
        padding: 40px 0;
    }
}

/* Story Section */
.story-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.story-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-main);
    border-radius: 2px;
}

.story-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}

.story-item:nth-child(even) {
    flex-direction: row-reverse;
}

.story-content {
    width: 45%;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition);
}

.story-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.story-content h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.story-content p {
    color: #ccc;
    font-size: 1rem;
}

.story-img {
    width: 45%;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.story-img:hover {
    transform: scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

.story-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--dark-bg);
    border: 4px solid var(--secondary-color);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
}

@media (max-width: 768px) {
    .story-timeline::before {
        left: 20px;
    }

    .story-item,
    .story-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }

    .story-content,
    .story-img {
        width: 100%;
        margin-bottom: 20px;
    }

    .story-marker {
        left: 20px;
        top: 30px;
        /* Adjust based on layout */
    }
}

/* Our Story Section */
#our-story {
    background-color: #f9f9f9;
    /* Light background for contrast */
    position: relative;
    overflow: hidden;
}

.story-timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 0;
}

/* Central Line */
.story-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.story-panel {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.panel-left {
    left: 0;
    flex-direction: row;
    text-align: right;
}

.panel-right {
    left: 50%;
    flex-direction: row-reverse;
    text-align: left;
}

.story-img {
    flex: 1;
    padding: 10px;
}

.story-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
    transition: transform 0.3s ease;
}

.story-img img:hover {
    transform: scale(1.05);
}

.story-text {
    flex: 1;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.story-text h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.story-text p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Connector Dots */
.story-panel::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #fff;
    border: 4px solid var(--secondary-color);
    top: 50%;
    border-radius: 50%;
    z-index: 1;
    transform: translateY(-50%);
}

.panel-right::after {
    left: -10px;
}

/* Comic/Cartoon Stylization */
.story-text {
    border: 2px solid #000;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.8);
    /* Comic pop shadow */
}

.story-img img {
    border: 2px solid #000;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .story-timeline::after {
        left: 31px;
    }

    .story-panel {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        flex-direction: column !important;
        /* Stack vertically on mobile */
        text-align: left !important;
    }

    .panel-right {
        left: 0;
    }

    .story-panel::after {
        left: 21px;
    }

    .story-img {
        width: 100%;
        margin-bottom: 15px;
        order: 1;
        /* Image first */
    }

    .story-text {
        width: 100%;
        order: 2;
        /* Text second */
    }
}