/*
 * Trust Section Styles
 * ====================
 * Extracted from: new-index.css (Lines 5068-5828)
 * 
 * Purpose:
 * - Trust section layout and styling
 * - Flip cards animation and transformation
 * - Trust badges and credibility display
 * 
 * This module contains all styles for the trust section that
 * showcases company credibility and customer confidence.
 */

/* ========================================
   HOSTING TRUST SECTION
   ======================================== */

.hosting-trust-section {
    padding: 2.4rem 0;
}

/* Removed duplicate container definition - using global container above */

/* HEADER */
.trust-header {
    text-align: center;
    margin-bottom: 60px;
}

.trust-header h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0b1b4b;
    line-height: 1.2;
    padding: 2px;
}

.trust-header p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* GRID LAYOUT */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* BASE CARD STYLES */
.trust-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* API CARD */
.api-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

/* HARDWARE CARD */
.hardware-card {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

/* SCALABLE CARD */
.scalable-card {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}

/* PARTNER CARD (Legacy - keeping for backup) */
.partner-card {
    background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
}

.partner-text {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.5;
}

.partner-logos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.partner-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.partner-icon:hover {
    transform: scale(1.1);
}

/* FEATURE CARD WITH ILLUSTRATION */
.feature-card {
    background: white;
}

.feature-illustration {
    width: 100%;
    height: 180px;
    margin-bottom: 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
    overflow: hidden;
}

.feature-card:hover .feature-illustration {
    transform: scale(1.08);
}

/* FEATURE ILLUSTRATION IMAGE (for flip cards) */
.feature-illustration-img {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.35s ease;
    margin-bottom: 24px;
}

.feature-illustration img,
.feature-illustration-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flip-card:hover .feature-illustration-img {
    transform: scale(1.08);
}

.feature-illustration-img svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ill-api {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
}

.ill-network {
    background: linear-gradient(135deg, #ffedd5 0%, #fdba74 100%);
    ;
}

.ill-hardware {
    background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%);
}

.ill-scalable {
    background: linear-gradient(135deg, #f3e8ff 0%, #c4b5fd 100%);
}

.ill-waf {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.ill-uptime {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

/* Uptime Guarantee Card - Light Blue Gradient */
.uptime-card .flip-card-front,
.uptime-card .flip-card-back {
    background: linear-gradient(to bottom, #f0f9ff 0%, #e0f2fe 100%);
}

.ill-ssl {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.feature-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

/* STATS CARD (10,000+) */
.stats-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stats-badge {
    margin-bottom: 16px;
}

.stats-number {
    font-size: 36px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.stats-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.stats-illustration {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* BUSINESS CARD */
.business-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 26px;
    display: flex;
    flex-direction: column;
}

.business-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    line-height: 1.4;
}

.business-illustration {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SOLUTIONS CARD */
.inner-card .solutions-card {
    padding: 24px;
}

.business-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.biz-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.business-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
}

.business-domain {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    width: fit-content;
}

/* INNER CARDS WRAPPER - Replaces Center Logo Card */
.inner-cards-wrapper {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: none;
    overflow: visible;
}

.inner-cards-wrapper:hover {
    transform: none;
    box-shadow: none;
}

/* INNER CARD STYLES */
.inner-card {
    flex: 1;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}



/* Specific card styling */
.availability-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.availability-card:hover {
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.2);
}

.security-card {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}


/* Feature Illustration for Inner Cards */
.ill-availability,
.ill-security {
    height: 100px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* CENTER-ALIGN icons in the two middle cards */
}

.ill-availability svg,
.ill-security svg {
    display: block;
    margin: 0 auto;
    /* Ensure SVG is perfectly centered */
}

/* OLD CENTER LOGO CARD STYLES - KEPT FOR LEGACY SUPPORT */
.center-logo-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: visible;
}

.logo-container {
    position: relative;
    animation: logoFloat 5s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 3s ease-in-out infinite;
}

.center-logo-img {
    position: relative;
    z-index: 2;
    width: 200px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.3;
    }
}

/* IMAGE CARD (Person) */
.person-card {
    padding: 0;
    overflow: hidden;
}

.person-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* SECURITY CARD */
.security-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    ;
    padding: 28px;
}

.security-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.security-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    padding: 8px 14px;
    border-radius: 20px;
    width: fit-content;
    color: #065f46;
    font-size: 12px;
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .trust-grid {
        gap: 18px;
    }

    .trust-header h2 {
        font-size: 38px;
    }
}

@media (max-width: 720px) {
    .trust-header h2 {
        font-size: 34px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trust-card {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    /* Inner cards wrapper - make it same width as other cards on mobile */
    .inner-cards-wrapper {
        flex-direction: column;
        gap: 16px;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .inner-card {
        width: 100% !important;
        max-width: 100% !important;
        /* Force full width within wrapper */
        margin: 0 !important;
    }

    .center-logo-card {
        order: -1;
        min-height: 280px;
    }

    /* Fix flip card to match normal cards on mobile - full width within grid */
    .trust-card.flip-card {
        min-height: 350px;
        width: 100% !important;
        max-width: 600px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .flip-card {
        min-height: 350px;
        width: 100% !important;
        max-width: 600px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    .flip-card-inner {
        min-height: 350px;
        height: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .flip-card-front,
    .flip-card-back {
        width: 100% !important;
        height: 100% !important;
        box-sizing: border-box !important;
    }

    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }
}

@media (max-width: 640px) {
    .hosting-trust-section {
        padding: 50px 16px;
    }

    .trust-header h2 {
        font-size: 30px;
    }

    .trust-header p {
        font-size: 15px;
    }

    .trust-header {
        margin-bottom: 50px;
    }

    .trust-card {
        padding: 24px 20px;
    }

    .feature-illustration,
    .feature-illustration-img {
        height: 100px;
    }

    .stats-number {
        font-size: 32px;
    }

    .center-logo-card {
        min-height: 240px;
    }

    .center-logo-img {
        width: 160px;
    }
}

/* ========================================
   FLIP CARD ANIMATION
   ======================================== */

/* Flip Card Container */
.flip-card {
    background: transparent !important;
    perspective: 1000px;
    cursor: pointer;
    padding: 0 !important;
    /* Remove inherited padding - faces have their own padding */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Front and Back Faces */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Front Side */
.flip-card-front {
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Back Side */
.flip-card-back {
    background: #ffffff;
    color: black;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    /* LEFT-ALIGN all flip card back content */
}

.flip-back-title {
    font-size: 20px;
    font-weight: 800;
    color: black;
    margin-bottom: 20px;
    text-align: left;
    /* LEFT-ALIGN flip card back heading */
    letter-spacing: -0.01em;
}

.flip-back-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    /* LEFT-ALIGN flip card list content */
}

.flip-back-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    font-weight: 500;
    text-align: left;
    /* LEFT-ALIGN list items */
}

.flip-back-list li:last-child {
    margin-bottom: 0;
}

.flip-back-list li svg {
    flex-shrink: 0;
}

/* LEFT-ALIGN paragraphs inside flip card back */
.flip-card-back p,
.flip-back-list p {
    text-align: left;
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

/* Fix for security card styles */
.flip-card .security-illustration,
.flip-card .security-title,
.flip-card .security-badge {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 968px) {
    .flip-card:hover .flip-card-inner {
        transform: none;
    }

    .flip-card:active .flip-card-inner {
        transform: rotateY(180deg);
    }
}

@media (max-width: 640px) {
    .flip-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .flip-card-inner {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 24px 20px;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .flip-back-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .flip-back-list li {
        font-size: 13px;
        margin-bottom: 14px;
    }
}
