/* Styles for cloud.html */
/* ── Cloud colour palette ───────────────────────────── */
:root {
    --cloud-teal:   #06b6d4;
    --cloud-emerald: #10b981;
    --cloud-purple: #8b5cf6;
    --cloud-orange: #f59e0b;
    --cloud-pink:   #ec4899;
    --cloud-gradient: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --cloud-glow:   rgba(6, 182, 212, 0.35);
}

/* ── Hero ───────────────────────────────────────────── */
.cloud-hero {
    text-align: center;
    padding: 3rem 0 4rem;
}

.cloud-hero-badge {
    margin-bottom: 1.5rem;
}

.cloud-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text-cloud {
    background: var(--cloud-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cloud-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cloud-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Primary Cloud Button ───────────────────────────── */
.btn-cloud-primary {
    display: inline-block;
    background: var(--cloud-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.85rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-cloud-primary:hover {
    box-shadow: 0 0 20px var(--cloud-glow);
    transform: translateY(-1px);
    color: #ffffff;
}

/* ── Stats ──────────────────────────────────────────── */
.cloud-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .cloud-stats { grid-template-columns: repeat(4, 1fr); }
}

.stat-card-cloud {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.stat-card-cloud:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.3);
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-number-cloud {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    background: var(--cloud-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label-cloud {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ── Section wrapper ────────────────────────────────── */
.cloud-section { margin-bottom: 2rem; }

/* ── Section labels / headings ──────────────────────── */
.section-label-cloud {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cloud-teal);
    display: block;
    margin-bottom: 0.75rem;
}

.cloud-section-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
}

/* ── Tech Cards Grid ────────────────────────────────── */
.cloud-tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .cloud-tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .cloud-tech-grid { grid-template-columns: repeat(3, 1fr); }
}

.cloud-tech-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.cloud-tech-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.docker-card::before { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.k8s-card::before    { background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
.aws-card::before    { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.tf-card::before     { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.cicd-card::before   { background: linear-gradient(90deg, #10b981, #06b6d4); }
.mon-card::before    { background: linear-gradient(90deg, #ec4899, #f59e0b); }

.cloud-tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3);
}

.cloud-tech-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.docker-icon { background: rgba(6, 182, 212, 0.12);  color: #06b6d4; }
.k8s-icon    { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.aws-icon    { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.tf-icon     { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.cicd-icon   { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.mon-icon    { background: rgba(236, 72, 153, 0.12); color: #ec4899; }

.cloud-tech-name {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.cloud-tech-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.docker-tag { background: rgba(6, 182, 212, 0.1);  color: #06b6d4;  border: 1px solid rgba(6, 182, 212, 0.25); }
.k8s-tag    { background: rgba(59, 130, 246, 0.1); color: #3b82f6;  border: 1px solid rgba(59, 130, 246, 0.25); }
.aws-tag    { background: rgba(245, 158, 11, 0.1); color: #f59e0b;  border: 1px solid rgba(245, 158, 11, 0.25); }
.tf-tag     { background: rgba(139, 92, 246, 0.1); color: #a78bfa;  border: 1px solid rgba(139, 92, 246, 0.25); }
.cicd-tag   { background: rgba(16, 185, 129, 0.1); color: #10b981;  border: 1px solid rgba(16, 185, 129, 0.25); }
.mon-tag    { background: rgba(236, 72, 153, 0.1); color: #ec4899;  border: 1px solid rgba(236, 72, 153, 0.25); }

.cloud-tech-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.cloud-tech-topics {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.cloud-tech-topics li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.cloud-tech-topics li::before {
    content: '▸';
    position: absolute;
    left: 0;
    font-size: 0.75rem;
}

.docker-card .cloud-tech-topics li::before { color: #06b6d4; }
.k8s-card    .cloud-tech-topics li::before { color: #3b82f6; }
.aws-card    .cloud-tech-topics li::before { color: #f59e0b; }
.tf-card     .cloud-tech-topics li::before { color: #a78bfa; }
.cicd-card   .cloud-tech-topics li::before { color: #10b981; }
.mon-card    .cloud-tech-topics li::before { color: #ec4899; }

.cloud-tech-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto;
}

.cloud-tech-link:hover { gap: 0.7rem; }

.docker-link { color: #06b6d4; }
.k8s-link    { color: #3b82f6; }
.aws-link    { color: #f59e0b; }
.tf-link     { color: #a78bfa; }
.cicd-link   { color: #10b981; }
.mon-link    { color: #ec4899; }

/* ── Deep Dive Section ──────────────────────────────── */
.cloud-deep-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 900px) {
    .cloud-deep-grid { grid-template-columns: 1fr 1fr; }
}

.cloud-section-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

/* ── Pillars ────────────────────────────────────────── */
.cloud-pillars {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pillar-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.pillar-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    text-align: center;
    margin-top: 0.1rem;
}

.pillar-item strong {
    display: block;
    margin-bottom: 0.3rem;
}

.pillar-item p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.55;
}

/* ── Code visual card (reuse about styles) ──────────── */
.about-visual-card {
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.visual-card-header {
    background: #161b22;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.visual-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    font-family: var(--font-mono);
}

.visual-code {
    padding: 1.25rem 1.5rem;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #c9d1d9;
    overflow-x: auto;
    font-family: var(--font-mono);
    white-space: pre;
    background: transparent;
    border: none;
    margin: 0;
}

.code-keyword { color: #ff7b72; }
.code-class   { color: #79c0ff; }
.code-fn      { color: #d2a8ff; }
.code-str     { color: #a5d6ff; }

/* ── Architecture Path ──────────────────────────────── */
.cloud-path-section {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.04) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cloud-path-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--cloud-gradient);
}

.cloud-path-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cloud-path-steps {
        flex-direction: row;
        align-items: flex-start;
    }
}

.cloud-path-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.cloud-path-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--cloud-gradient);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--cloud-glow);
}

.cloud-path-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cloud-path-content p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.cloud-path-connector {
    display: none;
}

@media (min-width: 768px) {
    .cloud-path-connector {
        display: block;
        height: 2px;
        background: var(--cloud-gradient);
        flex: 0 0 40px;
        margin-top: 25px;
        opacity: 0.4;
    }
}

/* ── Concepts Grid ──────────────────────────────────── */
.cloud-concepts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .cloud-concepts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .cloud-concepts-grid { grid-template-columns: repeat(3, 1fr); }
}

.concept-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.concept-card:hover {
    transform: translateY(-3px);
    border-color: rgba(6, 182, 212, 0.3);
}

.concept-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.concept-card h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.concept-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ── Cloud post card img override ───────────────────── */
.cloud-card-img {
    background: linear-gradient(135deg, #0c2340 0%, #0f172a 100%);
}

.post-card-icon-cloud {
    font-size: 3.5rem;
    opacity: 0.5;
}

.post-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* ── Newsletter CTA ─────────────────────────────────── */
.cloud-newsletter-cta {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.07) 0%, rgba(16, 185, 129, 0.07) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    margin: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.cloud-newsletter-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--cloud-gradient);
}

.cloud-newsletter-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .cloud-newsletter-inner {
        grid-template-columns: 1fr 1fr;
    }
}

.cloud-newsletter-text h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 0.75rem;
}

.cloud-newsletter-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

.cloud-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* ── Bottom CTA (reuse about page styles) ───────────── */
.about-cta {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.07) 0%, rgba(16, 185, 129, 0.07) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--cloud-gradient);
}

.about-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.about-cta p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.about-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── btn-secondary (reuse) ──────────────────────────── */
.btn-secondary {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--cloud-glow);
}
