/* CloudCraft Branding - Floating Clouds */
.sky-page {
    background: 
        radial-gradient(circle at top, rgba(0, 180, 216, 0.18), transparent 35%),
        linear-gradient(180deg, #f7fbff 0%, #edf4f8 100%) !important;
}

.sky-page.dark-mode {
    background: 
        radial-gradient(circle at top, rgba(59, 130, 246, 0.15), transparent 40%),
        linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}

.sky-page .page-hero,
.sky-page .subpage-main-section {
    background: transparent !important;
}

.clouds-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-cloud {
    position: absolute;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 100px;
    opacity: 0.7;
    animation: float-wiggle linear infinite;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.bg-cloud::after, .bg-cloud::before {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.bg-cloud::after {
    width: 60%;
    height: 150%;
    top: -70%;
    left: 10%;
}

.bg-cloud::before {
    width: 50%;
    height: 120%;
    top: -40%;
    left: 40%;
}

/* Vertical and horizontal spread with wiggle */
.c1 { width: 120px; height: 45px; top: 5%; left: 10%; animation-duration: 18s; }
.c2 { width: 180px; height: 70px; top: 15%; left: 70%; animation-duration: 25s; animation-delay: -2s; }
.c3 { width: 100px; height: 35px; top: 30%; left: 20%; animation-duration: 20s; animation-delay: -5s; }
.c4 { width: 140px; height: 55px; top: 45%; left: 80%; animation-duration: 22s; animation-delay: -8s; }
.c5 { width: 220px; height: 85px; top: 55%; left: 15%; animation-duration: 30s; animation-delay: -1s; }
.c6 { width: 110px; height: 40px; top: 70%; left: 65%; animation-duration: 19s; animation-delay: -4s; }
.c7 { width: 150px; height: 60px; top: 80%; left: 25%; animation-duration: 28s; animation-delay: -10s; }
.c8 { width: 90px; height: 30px; top: 90%; left: 75%; animation-duration: 17s; animation-delay: -3s; }
.c9 { width: 170px; height: 65px; top: 25%; left: 45%; animation-duration: 24s; animation-delay: -6s; }
.c10 { width: 130px; height: 50px; top: 65%; left: 40%; animation-duration: 21s; animation-delay: -12s; }

@keyframes float-wiggle {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, 10px) rotate(1deg); }
    50% { transform: translate(0, 20px) rotate(0deg); }
    75% { transform: translate(-15px, 10px) rotate(-1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Dark Mode Overrides */
body.dark-mode .bg-cloud {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0.6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Page Adjustments */
.sky-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0;
    max-width: 1180px;
    margin: 0 auto;
}

.sky-content h3 {
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    color: var(--heading-color);
}

.sky-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
}

.sky-content > p {
    margin-bottom: 1.5rem;
}

.cloudcraft-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0 0 2.25rem;
    flex-wrap: nowrap;
    position: relative;
    padding: 0.5rem 1rem;
    overflow: hidden;
}

.data-stack {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    position: relative;
    z-index: 1;
}

.box {
    padding: 2rem 3rem;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.9));
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: pulse 5s infinite ease-in-out;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

body.dark-mode .box {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.9));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

body.dark-mode .box:hover {
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}

.box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.box::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.75rem;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), rgba(2, 195, 154, 0.24));
    pointer-events: none;
}

.you {
    color: #0369a1;
    background:
        linear-gradient(180deg, rgba(240, 249, 255, 0.96), rgba(224, 242, 254, 0.94));
    border-color: rgba(14, 116, 144, 0.18);
}

body.dark-mode .you {
    color: #7dd3fc;
    background:
        linear-gradient(180deg, rgba(8, 47, 73, 0.92), rgba(12, 74, 110, 0.86));
    border-color: rgba(56, 189, 248, 0.26);
}

.data {
    color: #0f766e;
    min-width: 220px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    --data-offset-x: 0px;
    background:
        linear-gradient(180deg, rgba(240, 253, 250, 0.96), rgba(204, 251, 241, 0.92));
    border-color: rgba(13, 148, 136, 0.16);
    transform: translateX(var(--data-offset-x));
}

body.dark-mode .data {
    color: #5eead4;
    background:
        linear-gradient(180deg, rgba(19, 78, 74, 0.92), rgba(17, 94, 89, 0.86));
    border-color: rgba(45, 212, 191, 0.24);
}

.data:nth-child(2) {
    --data-offset-x: 26px;
}

.data:nth-child(3) {
    --data-offset-x: 52px;
}

.data:hover {
    transform: translateX(var(--data-offset-x)) translateY(-8px) scale(1.03);
}

.cloudcraft-brand {
    padding: 2.4rem 3.6rem;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(219, 234, 254, 0.94) 55%, rgba(224, 242, 254, 0.95) 100%);
    border-color: rgba(37, 99, 235, 0.4);
    border-width: 2px;
    transform: scale(1.08);
    animation-delay: 0.5s;
    box-shadow:
        0 24px 55px rgba(37, 99, 235, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.dark-mode .cloudcraft-brand {
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.96) 0%, rgba(30, 64, 175, 0.34) 55%, rgba(8, 47, 73, 0.9) 100%);
    border-color: rgba(96, 165, 250, 0.34);
    box-shadow:
        0 26px 58px rgba(2, 6, 23, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.arrow-right-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.arrow-right {
    width: 76px;
    height: 8px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(2, 195, 154, 0.9));
    position: relative;
    border-radius: 4px;
    opacity: 0.95;
    animation: move-right 2s infinite linear;
    box-shadow: 0 8px 22px rgba(56, 189, 248, 0.16);
}

.arrow-right::after {
    content: '';
    position: absolute;
    right: -12px;
    top: -8px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 12px solid #14b8a6;
}

@keyframes pulse {
    0% { box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); }
    50% { box-shadow: 0 20px 44px rgba(37, 99, 235, 0.18); }
    100% { box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); }
}

@keyframes move-right {
    0% { background-position: 0 0; }
    100% { background-position: 60px 0; }
}

@media (max-width: 900px) {
    .cloudcraft-visual {
        flex-wrap: wrap;
    }

    .arrow-right-container {
        width: 100%;
    }

    .arrow-right {
        width: 72px;
        transform: rotate(90deg);
    }

    .data:nth-child(2),
    .data:nth-child(3) {
        --data-offset-x: 0px;
    }
}

@media (max-width: 768px) {
    .cloudcraft-visual {
        gap: 1.25rem;
        margin: 0 0 1.75rem;
        padding: 0.5rem 0;
    }

    .box {
        padding: 1.35rem 1.6rem;
        font-size: 1.15rem;
    }

    .cloudcraft-brand {
        padding: 1.6rem 2rem;
    }
}
