/* 
 * Nimbus Global Styles
 * Shared components and utilities across all pages
 */

:root {
    --nimbus-font-family: "PingFang SC", "Helvetica Neue", "oepn-sans", Arial, "Microsoft YaHei UI", "Microsoft YaHei",sans-serif;
    --nimbus-purple: #31136B;
    --nimbus-purple-light: #4A2B8C;
    --text-white: #ffffff;
    --text-dark: #333333;
    --text-grey: #666666;
}

body, html {
    margin: 0;
    padding: 0;
	font-family: var(--nimbus-font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

/* Global Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    display: inline-block;
    background-color: #9d5eff;
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #7a45cc;
}

/* --- Header Section (Shared) --- */
.nimbus-header {
    background-color: var(--nimbus-purple);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    box-sizing: border-box;
    position: relative;
    z-index: 100;
}
.nimbus-header .logo {
    height: 100%;
}

.nimbus-header .logo img {
    height: 100%;
    width: auto;
    vertical-align: middle;
}

.nimbus-nav {
    display: flex;
    gap: 10px;
    align-items: center; 
    height: 100%; 
}

.nimbus-nav a, .nimbus-nav .dropdown-toggle {
    color: var(--text-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s, opacity 0.3s;
    cursor: pointer;
    display: flex; 
    align-items: center;
    height: 100%;
    padding: 0 15px;
}

.nimbus-nav a:hover, .nimbus-nav a.active, .nimbus-nav .dropdown:hover .dropdown-toggle {
    opacity: 1;
    background-color: var(--nimbus-purple-light);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 101; 
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--nimbus-purple);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    white-space: nowrap;
    height: auto;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* --- Banner Section (Shared Base) --- */
.nimbus-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 80px 0;
    display: flex;
    justify-content: center;
    min-height: 400px;
    color: var(--text-white);
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: left;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    max-width: 640px;
}

.banner-desc {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    text-align: left; 
    max-width: 640px;
}

/* --- Section Title (Shared) --- */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    position: relative;
    display: block;
    margin: 0 auto 60px;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #fff;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Footer (Shared) --- */
.nimbus-footer {
    background-color: #333;
    color: #888;
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
}

/* --- Home Page Specific Styles --- */
.hero-banner {
    position: relative;
    background-color: #1a0b3b;
    color: #fff;
    overflow: hidden;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 500px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.feature-row {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}

.feature-text {
    flex: 1;
    padding: 20px;
}

.feature-text h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #333;
}

.feature-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.industries-section {
    padding: 80px 0;
    color: #fff;
    text-align: center;
    margin-top: 40px;
    position: relative;
}
.industries-section .container {
    position: relative;
    z-index: 2;
}
.industries-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: url('../nimbus-img/scenarios-bg.png') no-repeat;
    background-size: cover;
}

.industries-section .section-title {
    color: #fff;
    margin-bottom: 20px;
}

.industries-section .section-title::after {
    background-color: #fff;
}

.industries-grid {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 55px 28px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.industry-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.industry-card:hover img {
    transform: scale(1.05);
}

.industry-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    text-align: center;
}

.industry-name {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

/* 
 * Edge Computing Page Specific Styles
 * Only contains styles unique to Edge Computing page
 */

/* Edge Computing Banner Background */
.nimbus-banner {
    background-image: url('../nimbus-img/Edge-Computing');
}

/* --- Features Section --- */
.nimbus-features {
    padding: 80px 10%;
    background-color: #fff;
    text-align: center;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    flex: 1;
    min-width: 280px;
    text-align: center;
    transition: all 0.3s ease;
    padding: 20px; 
    border-radius: 16px;
}

.feature-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: #fff;
}

.feature-icon {
    margin-bottom: 24px;
}

.feature-icon img {
    width: 80px;
    height: auto;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.feature-desc {
    font-size: 16px;
    color: var(--text-grey);
    line-height: 1.6;
    text-align: justify;
}

/* Specific Layout for Download Acceleration Page Features */
.features-grid.download-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 60px;
}

.features-grid.download-layout .feature-item {
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
    margin-bottom: 0;
}

.features-grid.download-layout .feature-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.features-grid.download-layout .feature-item-content {
    flex: 1;
}

.features-grid.download-layout .feature-title {
    margin-top: 0;
    margin-bottom: 10px;
}

/* --- Scenarios Section --- */
.nimbus-scenarios {
    position: relative;
    padding: 80px 10%;
    background: transparent;
    z-index: 0;
    text-align: center;
}

.nimbus-scenarios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: url('../nimbus-img/scenarios-bg.png') no-repeat;
    background-size: cover;
    border-top-right-radius: 60px;
    z-index: -1;
}

.nimbus-scenarios .section-title {
    color: #fff;
    margin-bottom: 60px;
    display: inline-block;
}

.nimbus-scenarios .section-title::after {
    background: #fff;
}

.scenarios-grid {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 55px 28px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.scenario-card {
    width: 350px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-5px);
}

.scenario-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.scenario-card:hover .scenario-bg {
    transform: scale(1.05);
}

.scenario-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scenario-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .nimbus-features, .nimbus-scenarios {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 768px) {
    .features-grid {
        flex-direction: column;
        gap: 60px;
    }

    .features-grid.download-layout {
        grid-template-columns: 1fr;
    }

    .nimbus-scenarios::before {
        height: 50%;
    }

    .scenarios-grid {
        flex-direction: column;
        align-items: center;
        padding: 30px 15px;
    }
    
    .scenario-card {
        width: 100%;
        max-width: 400px;
    }
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .nimbus-header, .nimbus-banner, .banner-content {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 768px) {
    .nimbus-header {
        height: 60px;
    }
    
    .nimbus-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--nimbus-purple);
        padding: 20px;
        z-index: 99;
        gap: 0;
    }

    .nimbus-nav.active {
        display: flex;
        height: auto;
    }

    .nimbus-nav a, .nimbus-nav .dropdown-toggle {
        height: auto;
        padding: 12px 15px;
        width: 100%;
        justify-content: flex-start;
        display: block;
    }
    .nimbus-nav .dropdown-toggle::before {
        content: '';
        display: block;
        border: 5px solid transparent;
        border-left-color: #fff;
        display: inline-block;
        width: 0;
        height: 0;
        overflow: hidden;
        margin-right: 5px;
        margin-left: -10px;
    }
    .nimbus-nav .dropdown.active .dropdown-toggle::before {
        transform: rotate(90deg);
    }

    .dropdown {
        width: 100%;
        flex-direction: column;
        height: auto;
        align-items: flex-start;
    }

    .dropdown-content {
        position: static;
        transform: none;
        left: auto;
        width: 100%;
        margin-top: 5px;
        background-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        padding: 0;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        color: #fff;
        padding: 10px 20px;
    }

    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .mobile-menu-btn {
        display: block;
    }

    .nimbus-banner {
        padding-top: 60px;
        padding-bottom: 60px;
        background-position: 80% center;
    }

    .banner-desc {
        padding: 10px;
        border-radius: 10px;
        background-color: rgba(0,0,0,0.5);
    }
    
    .banner-title {
        font-size: 32px;
    }

    /* Home Page Responsive */
    .hero-title {
        font-size: 32px;
    }

    .feature-row, .feature-row.reverse {
        flex-direction: column;
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
