/* home.css
   Animated kanban board, partners carousel, comments section.
   Loaded on: index, tcardsonline-digital-tcards. */

/* ===== HERO IMAGE KANBAN ANIMATION ===== */
.hero-image {
    width: 100%;
    margin: 50px 0;
    position: relative;
    z-index: 3;
}

.kanban-body {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 84px 20px 20px 20px;
    background: #f7f7f8;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.hero-image .header-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-image .header-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.board {
    display: flex;
    gap: 24px;
}

.hero-image .column {
    width: 260px;
    display: flex;
    flex-direction: column;
    height: 650px;
    margin-top: 0;
    padding-top: 0;
}

.hero-image .column-header {
    background: #fff;
    border-radius: 12px;
    padding: 20px 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

.hero-image .column-title {
    font-size: 14px;
    color: #111827;
}

.hero-image .column-count {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-left: 4px;
}

.hero-image .column-actions {
    display: flex;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #6b7280;
}

.hero-image .column-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.hero-image .card {
    background: #fff9c4;
    border-radius: 12px;
    padding: 10px 14px 5px 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.4s ease;
    cursor: grab;
    align-items: flex-start;
    text-align: left;
}

.hero-image .column-cards .card {
    transition: transform 1s ease;
}

.hero-image .card-id { font-size: 14px; background: #eef2ff; color: #4f46e5; padding: 2px 8px; border-radius: 6px; width: fit-content; font-weight: 500; }
.hero-image .card-status { font-size: 12px; color: #1e1e1e; }
.hero-image .card-priority { font-size: 12px; color: #6b7280; padding: 2px 8px; border-radius: 6px; width: fit-content; }
.hero-image .card-priority.critical { background: #fee2e2; color: #dc2626; }
.hero-image .card-priority.medium { background: #fef3c7; color: #b45309; }
.hero-image .card-priority.low { background: #d1fae5; color: #065f46; }
.hero-image .card-date { font-size: 12px; color: #1e1e1e; }
.hero-image .card-title { font-size: 13px; color: #1e1e1e; }
.hero-image .card-checkbox input { width: 16px; height: 16px; cursor: pointer; }

/* Collapsed column */
.column.collapsed { width: 50px; }
.column.collapsed .column-header { padding: 20px 25px; display: flex; align-items: center; justify-content: center; border: 1px solid #ccc; }
.column-body { position: relative; width: 100%; height: 525px; border: 1px solid #ccc; overflow: hidden; border-radius: 12px 12px 0 0; }
.rotated-column-name { writing-mode: vertical-rl; text-orientation: mixed; margin-top: 20px; margin-left: 5px; font-weight: 600; font-size: 14px; white-space: nowrap; color: #111827; }

.no-drop-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.column.collapsed.active-deny .no-drop-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Hidden until JS adds .visible */
.grabbing-hand {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    z-index: 10001;
    pointer-events: none;
    font-size: 22px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    color: #616161;
    font-weight: bold;
    background: transparent;
    border-radius: 50%;
    opacity: 0.60;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
    transform: translate(-50%, -50%) scale(1);
    transition: top 1.4s ease, left 1.4s ease, transform 0.25s ease;
}

.grabbing-hand.visible {
    display: flex;
}

.grabbing-hand.lifted {
    transform: translate(-50%, -50%) scale(1.15) !important;
}

/* Floating animated card */
.floating-card {
    position: absolute;
    z-index: 100;
    pointer-events: auto;
    width: 260px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: top 1.5s ease, left 1.5s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.floating-card.pre-lift {
    transform: translateY(-10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-card.lift {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

@keyframes microBounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-6px); }
    50%  { transform: translateY(2px); }
    70%  { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

.floating-card.bounce {
    animation: microBounce 0.4s ease forwards;
}

/* ===== TRUSTED PARTNERS CAROUSEL ===== */
.trusted-partners {
    background: rgba(255, 255, 255, 0.8);
    padding: 50px 0;
    position: relative;
    z-index: 3;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin: 0 20px;
}

.partners-title {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partners-container {
    position: relative;
    overflow: hidden;
}

.partners-carousel {
    display: flex;
    animation: scroll 35s linear infinite;
    gap: 60px;
    padding: 0 20px;
}

.partner-logo {
    flex-shrink: 0;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 25px;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
    color: var(--text-primary);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 8)); }
}

/* ===== COMMENTS & NOTIFICATIONS SECTION ===== */
.comments-section {
    background: linear-gradient(135deg, var(--light) 0%, var(--primary-tint) 100%);
    position: relative;
}

.comments-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.comments-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.comments-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.comments-features {
    list-style: none;
}

.comments-features li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.comments-features li i {
    color: var(--secondary);
    margin-right: 15px;
    font-size: 1.3rem;
    background: rgba(var(--secondary-rgb), 0.1);
    padding: 10px;
    border-radius: 10px;
}

.comments-image {
    text-align: center;
    position: relative;
}

.comments-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--border);
}

.comments-image img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .comments-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .comments-text h2 {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* .comments-image img {
        height: 300px;
    } */

    .hero-image img {
        border-radius: 15px;
    }

    .trusted-partners {
        margin: 0 10px;
        border-radius: 15px;
    }
}

/* Animated kanban on desktop, static image on touch devices */
.hero-kanban {
    display: block;
}

.hero-kanban-mobile {
    display: none;
}

@media (hover: none) and (pointer: coarse) {
    .hero-kanban {
        display: none !important;
    }

    .hero-kanban-mobile {
        display: block !important;
        text-align: center;
        margin: 40px 0;
        width:100%;
    }

    .hero-kanban-mobile img {
        width: 100%;
        max-width: 600px;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
}
