/* Viewline Main Stylesheet */

:root {
    --primary-color: #000b1a;
    /* Dark Navy */
    --accent-color: #00d1ff;
    /* Electric Cyan - used in dark/ecosystem sections */
    --brand-red: #C91817;
    /* Viewline Brand Red */
    --brand-gradient: linear-gradient(90deg, #FF3B3B, #C91817);
    /* Viewline Brand Gradient */
    --text-color: #f8f9fa;
    --bg-light: #ffffff;
    --bg-gray: #f2f4f7;
    --footer-bg: #0c1c2e;
    --font-main: 'Rubik', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--primary-color);
    line-height: 1.6;
    font-size: 1.0rem;
    /* Standard Paragraph */
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(201, 24, 23, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #C91817, #FF3B3B);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 24, 23, 0.45);
}

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

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: radial-gradient(circle at center, #0a2540 0%, #000b1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 209, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero h1 span {
    background: linear-gradient(90deg, #00d1ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
header {
    position: relative;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

header.scrolled .nav-link {
    color: var(--primary-color);
}

header.scrolled .logo {
    color: var(--primary-color) !important;
}

header.scrolled .btn-light {
    background: var(--primary-color);
    color: white;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: white;
    font-weight: 300;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--brand-red);
}

header.scrolled .nav-link:hover {
    color: var(--brand-red);
}

/* Feature Sections */
.stats-grid, .space-grid, .product-grid {
    display: grid;
    gap: 2rem;
}

.stats-grid { grid-template-columns: repeat(4, 1fr); }
.space-grid { grid-template-columns: repeat(4, 1fr); }
.product-grid { grid-template-columns: repeat(3, 1fr); }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Footer */
footer a:not(.footer-cta-btn):hover {
    color: #111 !important;
}

.footer-cta-btn:hover {
    background: #0096bc !important;
    color: white !important;
    opacity: 0.9;
}

.contact-sales-btn:hover {
    transform: translateY(-2px);
    background: #1a2e4c !important;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: left !important;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem !important;
    }
}

/* ── Mega Menu ── */
.nav-links {
    position: static !important;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px; /* Increased bridge height */
    background: transparent;
    z-index: 1000;
}

.mega-menu {
    position: fixed;
    top: 80px; 
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px); /* More subtle shift */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
    pointer-events: none; /* Prevent interaction when hidden */
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; /* Enable interaction when visible */
}

.mega-menu-content {
    width: 100%;
    max-width: 1400px;
    display: flex;
    min-height: 500px;
}

.mega-menu-sidebar {
    width: 280px;
    background: #fcfcfc;
    border-right: 1px solid #f0f0f0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mega-menu-main {
    flex: 1;
    padding: 60px 80px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 4rem;
    background: white;
}

.mega-menu-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.mega-menu-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    margin-bottom: 1rem;
    display: block;
    transition: color 0.3s ease;
}

.mega-menu-nav-link:hover {
    color: #C91817;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: #111;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.mega-menu-item:hover {
    transform: translateX(5px);
}

.mega-menu-item-icon {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #111;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mega-menu-item:hover .mega-menu-item-icon {
    background: #fff;
    border-color: #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    color: #C91817;
}

.mega-menu-item-text h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #111;
}

.mega-menu-item-text p {
    font-size: 0.8rem;
    color: #666;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* Animations */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-item:hover .mega-menu-item {
    animation: slideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered item animations */
.nav-item:hover .mega-menu-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:hover .mega-menu-item:nth-child(2) { animation-delay: 0.15s; }
.nav-item:hover .mega-menu-item:nth-child(3) { animation-delay: 0.2s; }
.nav-item:hover .mega-menu-item:nth-child(4) { animation-delay: 0.25s; }
.nav-item:hover .mega-menu-item:nth-child(5) { animation-delay: 0.3s; }
.nav-item:hover .mega-menu-item:nth-child(6) { animation-delay: 0.35s; }
.nav-item:hover .mega-menu-item:nth-child(7) { animation-delay: 0.4s; }
.nav-item:hover .mega-menu-item:nth-child(8) { animation-delay: 0.45s; }

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.hero-new p {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
}

.hero-new .btn {
    font-size: 1.0rem;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-new .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(201, 24, 23, 0.35);
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h4 {
    font-size: 1.4rem;
    font-weight: 700;
}

/* iPad Mockup Section */
.ipad-mock-wrapper {
    position: relative;
    width: 100%;
    max-width: 855px;
    margin-left: 40px;
}

.ipad-mock-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

.ipad-video-container {
    position: absolute;
    top: 3%;
    left: 2%;
    width: 96%;
    height: 94%;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    line-height: 0;
}

.ipad-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Carousel Section */
.carousel-section {
    padding: 100px 0;
    background: #f8f9fa;
    overflow: hidden;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    padding-left: max(2rem, calc((100% - 1320px) / 2));
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-card {
    flex: 0 0 1216px;
    height: 608px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3.5rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    color: white;
    z-index: 2;
}

.video-card-overlay h3 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
}

.carousel-star {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.2rem;
    margin-right: 0.8rem;
    color: #C91817;
}

.carousel-controls {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    justify-content: flex-end;
    padding-right: max(2rem, calc((100% - 1320px) / 2));
}

.carousel-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: #333;
}

.carousel-btn:hover {
    background: var(--brand-gradient);
    color: white;
    border-color: #C91817;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(201, 24, 23, 0.3);
}

/* Responsive Carousel */
@media (max-width: 1320px) {
    .video-card {
        flex: 0 0 90vw;
        height: 45vw;
    }

    .video-card-overlay h3 {
        font-size: 2rem;
    }
}

/* Mobile Responsive Overrides */
@media (max-width: 1200px) {
    .hero-new h1 {
        font-size: 3rem !important;
    }
    .ipad-mock-wrapper {
        max-width: 700px;
    }
    .mobile-mock-wrapper {
        width: 150px;
    }
}

    @media (max-width: 992px) {
        .container {
            padding: 0 1.5rem;
        }

        header .nav-links, .cert-logos {
            display: none !important;
        }

        .hero-new {
            padding: 80px 0 !important;
        }

        .hero-new .container {
            flex-direction: column !important;
            text-align: center;
        }

        .hero-left {
            max-width: 100% !important;
            margin-bottom: 4rem;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .hero-btns {
            justify-content: center;
        }

        .hero-right {
            justify-content: center !important;
            width: 100%;
        }

        .ipad-mock-wrapper {
            max-width: 500px;
            margin-left: 0;
            transform: rotateY(-10deg) rotateX(5deg) rotateZ(1deg);
        }

        .mobile-mock-wrapper {
            width: 120px;
            bottom: -20px;
            right: -10px;
        }

        /* ── Mobile Video Card Fix ── */
        .video-card {
            flex: 0 0 85vw;
            height: auto !important;
            display: flex;
            flex-direction: column;
            background: transparent;
            box-shadow: none;
            overflow: visible;
        }

        .video-card-overlay {
            position: static !important;
            padding: 0 0 1rem 0 !important;
            background: transparent !important;
            color: #0f172a !important;
        }

        .video-card-overlay h3 {
            font-size: 1.2rem !important;
            font-weight: 700 !important;
            color: #0f172a !important;
        }

        .video-card video {
            border-radius: 16px;
            height: 200px !important;
            object-fit: cover;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .tabs-container {
            flex-direction: column;
        }
    }

@media (max-width: 768px) {
    .hero-new h1 {
        font-size: 2.2rem !important;
    }

    .hero-new p {
        font-size: 1rem !important;
    }

    .section {
        padding: 60px 0 !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .feature-grid, .footer-grid, .stats-grid, .product-grid, .space-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .carousel-section {
        padding: 60px 0;
    }

    .carousel-viewport {
        padding-left: 1.5rem;
    }

    .carousel-controls {
        padding-right: 1.5rem;
        justify-content: center;
    }

    .ipad-mock-wrapper {
        max-width: 100%;
        transform: none; /* Flatten on mobile for better visibility */
    }

    .ipad-video-container {
        border-radius: 8px;
    }

    .mobile-mock-wrapper {
        display: none; /* Hide mobile mock on small screens to reduce clutter */
    }

    .tabs-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        flex: 0 0 calc(50% - 1rem);
        font-size: 0.8rem;
        padding: 8px 15px !important;
    }

    .tabs-content {
        padding: 3rem 1.5rem !important;
    }

    .tabs-content h3 {
        font-size: 1.8rem !important;
    }

    .logo-track {
        gap: 3rem !important;
    }
}

@media (max-width: 480px) {
    .hero-new h1 {
        font-size: 1.8rem !important;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-btns .btn, .hero-btns a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .stat-card h3 {
        font-size: 1.8rem !important;
    }

    .platform-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left;
    }

    .platform-header h2 {
        font-size: 1.8rem !important;
    }

    .dashboard-preview {
        height: 300px !important;
        border-width: 4px !important;
    }

    .space-card {
        height: 350px !important;
    }
}

/* ─── Space Card Hover Effects ─── */
.space-card:hover .space-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 100%) !important;
}

.space-card:hover .space-card-content {
    transform: translateY(0) !important;
}

.space-card:hover .space-card-desc {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Fix for horizontal scroll */
html, body {
    overflow-x: clip;
    width: 100%;
}

/* ─── Stat Ring Progress Cards ─── */
.stat-ring-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 20px;
}

.stat-ring-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 114, 255, 0.02);
}

.stat-ring {
    position: relative;
    width: 140px;
    height: 140px;
}

.stat-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.stat-ring .ring-bg {
    fill: none;
    stroke: #e8edf2;
    stroke-width: 6;
}

.stat-ring .ring-fill {
    fill: none;
    stroke: url(#stat-ring-gradient);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 326.73; /* 2 * PI * 52 */
    stroke-dashoffset: 326.73; /* starts empty */
    transition: stroke-dashoffset 2s cubic-bezier(0.23, 1, 0.32, 1), stroke-width 0.3s ease;
}

.stat-ring-card:hover .ring-fill {
    stroke-width: 10;
    filter: drop-shadow(0 0 8px rgba(201, 24, 23, 0.4));
}

.stat-ring .ring-fill.animated {
    /* Set via JS based on data-percent */
}

.ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    font-weight: 800;
    color: #0a1628;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

.stat-label span {
    font-weight: 400;
    color: #888;
}

@media (max-width: 768px) {
    .stat-ring {
        width: 110px;
        height: 110px;
    }
    .ring-value {
        font-size: 1.8rem;
    }
}

/* ─── Ecosystem Section Background ─── */
.ecosystem-section {
    background: linear-gradient(180deg, #020817 0%, #0a1628 40%, #0d1f3c 70%, #020817 100%);
    position: relative;
}

.ecosystem-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0,114,255,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Concentric orbital rings */
.ecosystem-container::before,
.ecosystem-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0,114,255,0.08);
    pointer-events: none;
    z-index: 0;
}

.ecosystem-container::before {
    width: 500px;
    height: 500px;
}

.ecosystem-container::after {
    width: 800px;
    height: 800px;
}

.ecosystem-container {
    position: relative;
    height: 900px;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.ecosystem-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #001529 0%, #050a10 100%);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 80px rgba(0, 209, 255, 0.2);
    border: 2px solid rgba(0, 209, 255, 0.3);
    transition: all 0.5s ease;
}

.ecosystem-hub:hover {
    box-shadow: 0 0 100px rgba(0, 209, 255, 0.4);
    border-color: rgba(0, 209, 255, 0.6);
}

.ecosystem-hub.hub-active {
    box-shadow: 0 0 120px rgba(0, 209, 255, 0.5);
    border-color: rgba(0, 209, 255, 0.8);
}

.thread-line {
    transition: stroke-dashoffset 0.5s ease-out;
}

@keyframes thread-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.thread-particle {
    animation: thread-pulse 1s ease-in-out infinite;
}

.hub-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecosystem-arc {
    display: none;
}

.ecosystem-visual {
    position: relative;
    width: 100%;
    height: 100%;
}

.ecosystem-node {
    position: absolute;
    width: 140px;
    text-align: center;
    z-index: 5;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.node-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255,255,255,0.08);
    border: 1px solid rgba(0,114,255,0.15);
    color: #00d1ff;
    transition: all 0.3s ease;
}

.ecosystem-node:hover .node-icon {
    background: rgba(0,114,255,0.2);
    border-color: rgba(0,209,255,0.5);
    color: #00d1ff;
    box-shadow: 0 8px 40px rgba(0, 114, 255, 0.3), inset 0 0 0 1px rgba(0,209,255,0.2);
}

.node-icon svg {
    width: 32px;
    height: 32px;
}

.node-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    line-height: 1.3;
}

.ecosystem-node:hover .node-label {
    color: #fff;
}

/* Floating particles animation */
@keyframes float-particle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    50% { transform: translateY(-40px) translateX(20px); }
}

/* 10 nodes evenly spaced at 36° intervals, starting from top (clockwise) */
.node-1  { top:  8%;  left: 50%;  } /* 0°   - top center */
.node-2  { top: 15%;  left: 77%;  } /* 36°  - top right */
.node-3  { top: 38%;  left: 90%;  } /* 72°  - right upper */
.node-4  { top: 62%;  left: 90%;  } /* 108° - right lower */
.node-5  { top: 82%;  left: 77%;  } /* 144° - bottom right */
.node-6  { top: 92%;  left: 50%;  } /* 180° - bottom center */
.node-7  { top: 82%;  left: 23%;  } /* 216° - bottom left */
.node-8  { top: 62%;  left: 10%;  } /* 252° - left lower */
.node-9  { top: 38%;  left: 10%;  } /* 288° - left upper */
.node-10 { top: 15%;  left: 23%;  } /* 324° - top left */

@media (max-width: 1200px) {
    .ecosystem-container { height: 800px; }
    .ecosystem-hub { width: 220px; height: 220px; }
    .node-icon { width: 70px; height: 70px; }
    .node-icon svg { width: 28px; height: 28px; }
    .node-label { font-size: 0.8rem; }
    .node-3, .node-4 { left: 86%; }
    .node-8, .node-9 { left: 14%; }

}

@media (max-width: 992px) {
    .ecosystem-container {
        height: auto;
        padding: 4rem 0;
        align-items: center;
        overflow: visible;
    }
    .ecosystem-hub, .ecosystem-arc { display: none; }
    .ecosystem-visual {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem 1rem;
        width: 100%;
    }
    .ecosystem-node {
        position: static;
        width: 100%;
        transform: none;
    }
    .ecosystem-node:hover {
        transform: scale(1.08);
    }
}

@media (max-width: 600px) {
    .ecosystem-visual {
        grid-template-columns: repeat(2, 1fr);
    }
    .node-icon { width: 70px; height: 70px; }
    .node-label { font-size: 0.85rem; }
}

/* Animations */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Cookie Widget */
.cookie-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f4f7f9;
    border-top: 1px solid #e1e8ed;
    padding: 25px 0;
    z-index: 9999;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.cookie-text {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 300;
    color: #5c6d7e;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .cookie-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .cookie-actions button, .cookie-actions a {
        width: 100%;
        text-align: center;
    }
}

/* Animations */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}