/* ========================================
   Cloud Solutions Page Styles
   Matching governance.html design pattern
   ======================================== */

/* Hero Section */
.cloud-hero {
    padding: 100px 0 60px;
    background:
        linear-gradient(135deg, rgba(10, 15, 26, 0.85) 0%, rgba(26, 31, 46, 0.85) 50%, rgba(10, 15, 26, 0.85) 100%),
        url('../images/bg.png');
    background-size: cover, auto;
    background-position: center, center;
    position: relative;
    overflow: hidden;
    color: white;
}

.cloud-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(227, 27, 72, 0.15), transparent 50%),
                radial-gradient(ellipse at bottom, rgba(188, 46, 145, 0.15), transparent 50%);
    pointer-events: none;
}

.cloud-hero .container {
    position: relative;
    z-index: 1;
}

.cloud-hero .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.cloud-hero .hero-text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.cloud-hero .hero-highlight {
    background: linear-gradient(135deg, #e31b48 0%, #bc2e91 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.cloud-hero .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    max-width: 90%;
}

/* Hero Stats */
.cloud-hero .hero-stats {
    display: flex;
    gap: 25px;
    margin-top: 30px;
}

.cloud-hero .stat-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 120px;
    transition: all 0.3s ease;
}

.cloud-hero .stat-item:hover {
    background: rgba(227, 27, 72, 0.15);
    border-color: rgba(227, 27, 72, 0.3);
    transform: translateY(-3px);
}

.cloud-hero .stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e31b48 0%, #bc2e91 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.cloud-hero .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cloud Dashboard */
.cloud-dashboard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cloud-dashboard .dashboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.cloud-dashboard .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.cloud-dashboard .last-scan {
    margin-left: auto;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.cloud-dashboard .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.cloud-dashboard .dashboard-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.cloud-dashboard .dashboard-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(227, 27, 72, 0.3);
    transform: translateY(-3px);
}

.cloud-dashboard .item-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 10px;
    color: #e31b48;
}

.cloud-dashboard .item-icon svg {
    width: 100%;
    height: 100%;
}

.cloud-dashboard .item-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.cloud-dashboard .item-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.cloud-dashboard .item-status {
    font-size: 0.75rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Cloud Framework Section */
.cloud-framework {
    padding: 80px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.framework-pillar {
    background: white;
    border-radius: 16px;
    padding: 35px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.framework-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e31b48 0%, #bc2e91 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.framework-pillar:hover::before {
    transform: scaleX(1);
}

.framework-pillar:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(227, 27, 72, 0.15);
}

.pillar-number {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e31b48 0%, #bc2e91 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 15px;
    opacity: 0.3;
}

.pillar-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: #e31b48;
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
}

.framework-pillar h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.framework-pillar p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Cloud Services Grid */
.cloud-services-section {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cloud-services-section .service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cloud-services-section .service-card:hover {
    border-color: #e31b48;
    box-shadow: 0 12px 40px rgba(227, 27, 72, 0.12);
    transform: translateY(-5px);
}

.cloud-services-section .service-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    background: linear-gradient(135deg, #e31b48 0%, #bc2e91 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 0;
    color: white;
    flex-shrink: 0;
    box-sizing: content-box;
    float: none;
    position: relative;
}

.cloud-services-section .service-icon svg {
    width: 32px;
    height: 32px;
}

.cloud-services-section .service-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    margin-top: 0;
    width: 100%;
}

.service-card > p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.service-features li {
    font-size: 0.9rem;
    color: #475569;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.service-link {
    background: linear-gradient(135deg, #e31b48 0%, #bc2e91 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.service-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 27, 72, 0.3);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.why-choose-us .section-header h2 {
    color: white;
}

.why-choose-us .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(227, 27, 72, 0.4);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e31b48 0%, #bc2e91 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

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

.benefit-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cloud-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #e31b48 0%, #bc2e91 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: none;
}

.cta-buttons .btn-primary {
    background: white;
    color: #e31b48;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #e31b48;
    transform: translateY(-3px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #94a3b8;
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: #e31b48;
}

.modal-header {
    background: linear-gradient(135deg, #e31b48 0%, #bc2e91 100%);
    color: white;
    padding: 30px 35px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0 0 8px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
}

.modal-header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.service-request-form {
    padding: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e31b48;
    box-shadow: 0 0 0 3px rgba(227, 27, 72, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, #e31b48 0%, #bc2e91 100%);
    color: white;
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 27, 72, 0.3);
}

.form-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-actions .btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.form-actions .btn-secondary:hover {
    background: #e2e8f0;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 992px) {
    .cloud-hero {
        padding: 80px 0 50px;
    }

    .cloud-hero .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cloud-hero .hero-text h1 {
        font-size: 2.3rem;
    }

    .cloud-dashboard .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .framework-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .cloud-hero {
        padding: 60px 0 40px;
    }

    .cloud-hero .hero-text h1 {
        font-size: 2rem;
    }

    .cloud-hero .hero-stats {
        flex-wrap: wrap;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .framework-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .service-request-form {
        padding: 25px;
    }

    .form-actions {
        flex-direction: column;
    }
}

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

    .section-header h2 {
        font-size: 1.7rem;
    }

    .cloud-hero .stat-item {
        min-width: 100px;
        padding: 12px 15px;
    }

    .cloud-hero .stat-number {
        font-size: 1.3rem;
    }
}
