/* Cloud Solutions Page Styles */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1419 0%, #1e3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo img {
    width: 80px;
    height: auto;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #00d4ff;
}

.loading-dots span {
    animation: loadingDots 1.5s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #4a6b6b);
    transform: translateX(-100%);
    animation: progressBar 1.5s ease-out infinite;
}

.loading-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.loading-clouds::before,
.loading-clouds::after {
    content: '☁️';
    position: absolute;
    font-size: 2rem;
    animation: floatingClouds 8s infinite linear;
}

.loading-clouds::before {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.loading-clouds::after {
    top: 70%;
    left: -10%;
    animation-delay: 4s;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f1419 0%, #1e3a3a 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.cloud-infrastructure {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 400px;
    height: 350px;
}

.cloud-layers {
    position: relative;
    width: 100%;
    height: 100%;
}

.cloud-layer {
    position: absolute;
    width: 120px;
    height: 80px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid #00d4ff;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: cloudFloat 5s ease-in-out infinite;
}

.cloud-layer.layer-1 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.cloud-layer.layer-2 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
}

.cloud-layer.layer-3 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

.cloud-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.cloud-label {
    font-size: 0.8rem;
    color: #00d4ff;
    font-weight: 500;
}

.floating-services {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.service-node {
    position: absolute;
    font-size: 1.5rem;
    animation: serviceFloat 6s ease-in-out infinite;
}

.service-node:nth-child(1) {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.service-node:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 1.2s;
}

.service-node:nth-child(3) {
    bottom: 35%;
    left: 10%;
    animation-delay: 2.4s;
}

.service-node:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: 3.6s;
}

.service-node:nth-child(5) {
    top: 60%;
    left: 50%;
    animation-delay: 4.8s;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-6);
    color: var(--text-white);
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, #00d4ff, #4a6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00d4ff;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

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

.hero-visual {
    position: relative;
}

.cloud-dashboard {
    background: rgba(15, 20, 25, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    animation: dashboardFloat 6s ease-in-out infinite;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-title {
    font-weight: 600;
    color: white;
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.status-dot.healthy {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.resource-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resource-icon {
    font-size: 1.5rem;
}

.resource-info {
    flex: 1;
}

.resource-name {
    font-weight: 500;
    color: white;
    margin-bottom: 0.5rem;
}

.resource-usage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.usage-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #10b981);
    border-radius: 2px;
    animation: usagePulse 3s ease-in-out infinite;
}

.resource-usage span {
    font-size: 0.8rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}

.deployment-status {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.status-title {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.deployment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.deployment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.deployment-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.deployment-dot.running {
    background: #10b981;
    animation: pulse 2s infinite;
}

.deployment-dot.scaling {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

.deployment-item span {
    flex: 1;
    color: white;
    font-size: 0.9rem;
}

.deployment-instances {
    font-size: 0.8rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}

/* Cloud Overview Section */
.cloud-overview {
    padding: 6rem 0;
    background: #0f1419;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-base);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.cloud-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cloud-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    transition: left 0.5s ease;
}

.cloud-card:hover::before {
    left: 100%;
}

.cloud-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #00d4ff;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.card-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Animations */
@keyframes loadingDots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes progressBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes floatingClouds {
    0% { transform: translateX(-10%); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateX(110%); opacity: 0; }
}

@keyframes cloudFloat {
    0%, 100% { transform: translateY(0px) translateX(-50%); }
    50% { transform: translateY(-15px) translateX(-50%); }
}

.cloud-layer.layer-2 {
    animation-name: cloudFloatCenter;
}

@keyframes cloudFloatCenter {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
}

@keyframes serviceFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes dashboardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes usagePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .cloud-infrastructure {
        position: relative;
        right: auto;
        transform: none;
        width: 100%;
        height: 200px;
        margin-top: 2rem;
    }
    
    .cloud-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .cloud-card {
        padding: 1.5rem;
    }
}
