﻿/* ================================================================
   YOUTUBE SHORT STYLES
   ================================================================ */
/* YouTube Container - Fixed Width */
.youtube-short-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid rgba(100, 181, 246, 0.1);
    transition: all 0.3s ease;
}

.youtube-short-wrapper {
    /*background: #000;*/
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
}

/* Contact Form - Same Width as YouTube */
.contact-form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(100, 181, 246, 0.1);
    width: 100% !important;
    max-width: 100% !important;
    transition: all 0.3s ease;
    margin-top: 20px;
}
    .youtube-short-container:hover {
        box-shadow: 0 10px 35px rgba(100, 181, 246, 0.12);
        transform: translateY(-3px);
    }


    .youtube-short-wrapper::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.2) 100%);
        pointer-events: none;
        z-index: 1;
    }

    .youtube-short-wrapper iframe {
        width: 100%;
        height: 100%;
        display: block;
        position: relative;
        z-index: 0;
    }

.youtube-short-label {
    color: #5d6470;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    font-weight: 500;
}

    .youtube-short-label .play-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        background: #ff0000;
        border-radius: 50%;
        color: white;
        font-size: 10px;
        transition: all 0.3s ease;
        flex-shrink: 0;
        padding-left: 2px;
    }

.youtube-short-container:hover .play-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.25);
}

.youtube-short-label .label-text {
    color: #1a1e2b;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.youtube-short-label .label-sub {
    color: #64b5f6;
    font-weight: 400;
    font-size: 0.7rem;
    opacity: 0.8;
}

.youtube-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.6rem;
    padding: 3px 12px;
    border-radius: 12px;
    z-index: 2;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 500;
}

    .youtube-badge::before {
        content: "▶";
        color: #ff0000;
        margin-right: 5px;
        font-size: 0.5rem;
    }

/* ================================================================
   CONTACT FORM STYLES
   ================================================================ */

.contact-form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(100, 181, 246, 0.1);
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

    .contact-form-wrapper:hover {
        box-shadow: 0 10px 35px rgba(100, 181, 246, 0.12);
        transform: translateY(-3px);
    }

    .contact-form-wrapper .form-icon {
        display: inline-block;
        color: #64b5f6;
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }

    .contact-form-wrapper h4 {
        color: #1a1e2b;
        font-weight: 700;
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .contact-form-wrapper .form-subtitle {
        color: #64b5f6;
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        font-weight: 600;
    }

    .contact-form-wrapper .form-control {
        border: 1px solid #e8ecf2;
        border-radius: 10px;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        color: #1a1e2b;
        background: #fafbfc;
        transition: all 0.3s ease;
        width: 100%;
        margin-bottom: 0.8rem;
    }

        .contact-form-wrapper .form-control:focus {
            border-color: #64b5f6;
            box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.1);
            background: #ffffff;
            outline: none;
        }

        .contact-form-wrapper .form-control::placeholder {
            color: #aab0b8;
            font-size: 0.85rem;
        }

    .contact-form-wrapper .btn-submit {
        background: linear-gradient(135deg, #64b5f6, #4a8fd8);
        border: none;
        padding: 0.7rem 2.5rem;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.95rem;
        color: white;
        transition: all 0.3s ease;
        width: 100%;
        box-shadow: 0 4px 15px rgba(100, 181, 246, 0.25);
        cursor: pointer;
        margin-top: 0.3rem;
    }

        .contact-form-wrapper .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(100, 181, 246, 0.35);
            background: linear-gradient(135deg, #74c0f7, #5a9fe0);
        }

        .contact-form-wrapper .btn-submit:active {
            transform: translateY(0px);
        }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.contact-form-wrapper .form-group {
    margin-bottom: 0;
}

    .contact-form-wrapper .form-group textarea.form-control {
        min-height: 80px;
        resize: vertical;
    }

/* ================================================================
   WHY US SECTION - FIXED ALIGNMENT
   ================================================================ */
#whyus .row {
    display: flex;
    align-items: flex-start;
}

#whyus .col-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#whyus .col-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

#whyus-image {
    position: relative;
    z-index: 1;
    /*padding-top: 450px;*/
    /*max-width: 50%;*/
    margin-top: 1rem !important;
}

/* ================================================================
   RESPONSIVE STYLES
   ================================================================ */
@media (max-width: 991.98px) {
    #whyus .row {
        flex-direction: column;
    }

    #whyus .col-lg-6 {
        width: 100%;
    }

    .youtube-short-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .youtube-short-container {
        max-width: 100%;
    }

    #whyus .col-lg-6.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

@media (max-width: 576px) {
    .youtube-short-wrapper {
        max-width: 100%;
    }
}
/* ===== ERP SHOWCASE – IMPROVED FLOATING CARDS ===== */
.erp-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 550px; /* reduce height to match image */
    padding: 20px 0;
}

.dashboard-wrapper {
    background-image: url('../images/Dashboard.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 450px; /* or use aspect-ratio */
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
    position: relative;
    z-index: 5;
    transition: .4s;
}

    .dashboard-wrapper:hover {
        transform: translateY(-6px);
        box-shadow: 0 40px 90px rgba(15, 23, 42, 0.18);
    }

.dashboard-overlay {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    padding: 40px;
}

.dashboard-image {
    border-radius: 18px;
    width: 100%;
    display: block;
}

/* ---- Floating Cards – improved styling ---- */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 14px 22px;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 20;
    min-width: 170px;
    transition: transform .3s, box-shadow .3s;
}

    .floating-card:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
    }

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}
/* Icon background colours (Bootstrap utilities already exist) */
.bg-success {
    background: #10b981;
}

.bg-primary {
    background: #3b82f6;
}

.bg-warning {
    background: #f59e0b;
}

.floating-card h5 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0B2946;
    line-height: 1.2;
}

.floating-card p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
    letter-spacing: .3px;
    text-transform: uppercase;
}

/* ---- Position adjustments ---- */
.revenue-card {
    top: 30px;
    left: -30px;
    animation-delay: 0s;
}

.orders-card {
    bottom: 50px;
    left: -50px;
    animation-delay: 1s;
}

.users-card {
    top: 120px;
    right: -40px;
    animation-delay: 2s;
}

/* Floating animation – subtle */
@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Responsive: stack cards below image on smaller screens */
@media (max-width: 991.98px) {
    .erp-showcase {
        min-height: auto;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .floating-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        animation: none;
        margin: 6px 0;
        width: 100%;
        max-width: 320px;
        justify-content: center;
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    }

        .floating-card:hover {
            transform: translateY(-2px);
        }

    .dashboard-wrapper {
        margin-top: 20px;
        padding: 12px;
    }

    .revenue-card, .orders-card, .users-card {
        order: 1; /* all come after image? Actually we want them below image */
    }
    /* Better: place them below the image, not overlaying */
    .erp-showcase {
        display: flex;
        flex-direction: column;
    }

    .dashboard-wrapper {
        order: 1;
    }
    /* Move floating cards to appear below dashboard */
    .floating-card {
        order: 2;
        margin-top: 8px;
    }
    /* But we want them inline horizontally on tablet? Let's use flex row for cards */
    .erp-showcase .floating-card {
        display: flex;
        flex-direction: row;
        max-width: 100%;
        width: auto;
        padding: 12px 18px;
        margin: 5px 8px;
    }

    .erp-showcase .floating-card-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
    }
    /* Better: wrap floating cards in a container for mobile */
}

/* On small screens, show cards as inline chips below image */
@media (max-width: 575.98px) {
    .floating-card {
        padding: 10px 16px;
        min-width: auto;
        flex: 1 1 auto;
        max-width: 140px;
    }

        .floating-card h5 {
            font-size: 18px;
        }

    .card-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .floating-card p {
        font-size: 11px;
    }
}