/**
 * Nett Comparison Table v2 — Styles
 * Supports: Row Layout, Column Card Grid, Futuristic Scrollbar, Animations
 */

/* ======================================================================
   RESET & BASE
   ====================================================================== */
.nct-section {
    position: relative;
    overflow: hidden;
}

.nct-wrapper {
    margin: 0 auto;
    position: relative;
}

/* ======================================================================
   ANIMATION SYSTEM
   ====================================================================== */
@keyframes nctFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes nctSlideIn {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes nctPulseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(99, 102, 241, 0.2); }
    50%      { box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
}

@keyframes nctShimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes nctScrollThumbPulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

.nct-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nct-reveal.nct-active {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================================
   HEADER
   ====================================================================== */
.nct-header {
    position: relative;
    margin-bottom: 60px;
}

.nct-watermark {
    display: block;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(60px, 12vw, 160px);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: rgba(0, 0, 0, 0.03);
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    z-index: 0;
}

.nct-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.nct-title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 12px 0;
    position: relative;
    z-index: 1;
}

.nct-description {
    font-size: 16px;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ======================================================================
   ROW LAYOUT
   ====================================================================== */
.nct-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    margin-bottom: 15px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nct-row:last-child {
    margin-bottom: 0;
}

/* Row Hover Effects */
.nct-hover-slide:hover {
    transform: translateX(6px);
}

.nct-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.nct-hover-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

/* Row Number */
.nct-row-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

/* Product Block (shared) */
.nct-prod {
    flex: 1;
    min-width: 0;
}

.nct-prod-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nct-prod-right .nct-prod-info {
    flex-direction: row-reverse;
    text-align: right;
}

.nct-prod-right .nct-prod-text {
    align-items: flex-end;
}

/* Product Image in Row */
.nct-prod-img-wrap {
    flex-shrink: 0;
    overflow: hidden;
}

.nct-row .nct-prod-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nct-row .nct-prod-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    transition: transform 0.3s;
}

/* Image Shapes */
.nct-shape-circle { border-radius: 50%; }
.nct-shape-rounded { border-radius: 12px; }

.nct-prod-img-wrap .nct-shape-circle { border-radius: 50%; }
.nct-prod-img-wrap .nct-shape-rounded { border-radius: 12px; }

/* Image Zoom */
.nct-img-zoom:hover {
    transform: scale(1.08);
}

/* Product Text */
.nct-prod-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nct-prod-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #111111;
}

.nct-prod-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666666;
}

/* Badge */
.nct-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-top: 4px;
    width: fit-content;
}

/* Rating */
.nct-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    color: #FFA500;
    margin-top: 4px;
}

/* VS Divider (Row) */
.nct-vs {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Button (Row) */
.nct-row .nct-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #111111;
    color: #111111;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nct-row .nct-btn:hover {
    background: #111111;
    color: #ffffff;
}

/* ======================================================================
   COLUMN LAYOUT
   ====================================================================== */
.nct-col-viewport {
    position: relative;
}

.nct-col-grid {
    display: grid;
    grid-template-columns: repeat(var(--nct-cols, 3), 1fr);
    gap: 24px;
    transition: gap 0.3s ease;
}

/* When scroll is enabled, switch to horizontal scroll */
.nct-section[data-layout="column"] .nct-col-grid {
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.nct-section[data-layout="column"] .nct-col-grid::-webkit-scrollbar {
    display: none;
}

/* Column Card */
.nct-col-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-snap-align: start;
    min-width: 0;
    position: relative;
}

.nct-col-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nct-col-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.2);
}

.nct-col-card:hover::before {
    opacity: 1;
}

.nct-col-card-inner {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

/* Product in Column */
.nct-col-prod {
    width: 100%;
}

.nct-col-prod .nct-prod-info {
    flex-direction: column;
    text-align: center;
    gap: 14px;
}

.nct-col-prod .nct-prod-text {
    align-items: center;
}

.nct-col-prod .nct-prod-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nct-col-prod .nct-prod-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.nct-col-prod .nct-prod-title {
    font-size: 15px;
}

.nct-col-prod .nct-badge {
    margin: 4px auto 0;
}

.nct-col-prod .nct-rating {
    justify-content: center;
}

/* VS in Column */
.nct-col-vs {
    position: relative;
    padding: 8px 0;
}

.nct-col-vs .nct-vs {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b, #475569);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}

.nct-col-vs::before,
.nct-col-vs::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

.nct-col-vs::before { top: 0; }
.nct-col-vs::after  { bottom: 0; }

/* Column Button */
.nct-col-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid #111111;
    color: #111111;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-top: 4px;
}

.nct-col-btn:hover {
    background: #111111;
    color: #ffffff;
    transform: scale(1.02);
}

/* ======================================================================
   SCROLL NAVIGATION BUTTONS
   ====================================================================== */
.nct-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nct-scroll-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.nct-scroll-prev {
    left: -16px;
}

.nct-scroll-next {
    right: -16px;
}

/* ======================================================================
   FUTURISTIC CUSTOM SCROLLBAR
   ====================================================================== */
.nct-scrollbar {
    margin-top: 24px;
    padding: 0 20%;
}

.nct-scrollbar-track {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.nct-scrollbar-track::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.03) 50%,
        transparent 100%
    );
    animation: nctShimmer 4s linear infinite;
    background-size: 200% 100%;
}

.nct-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    min-width: 40px;
    border-radius: 100px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    cursor: grab;
    transition: width 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.nct-scrollbar-thumb:hover {
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
}

.nct-scrollbar-thumb:active {
    cursor: grabbing;
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.6);
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media screen and (max-width: 1024px) {
    .nct-col-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        --nct-cols: 2 !important;
    }

    .nct-scroll-prev { left: -8px; }
    .nct-scroll-next { right: -8px; }
}

@media screen and (max-width: 768px) {
    .nct-row {
        flex-wrap: wrap;
        padding: 20px;
        gap: 16px;
    }

    .nct-prod {
        flex: 1 1 100%;
    }

    .nct-prod-right .nct-prod-info {
        flex-direction: row;
        text-align: left;
    }

    .nct-prod-right .nct-prod-text {
        align-items: flex-start;
    }

    .nct-vs {
        width: 100%;
        padding: 8px 0;
    }

    .nct-row .nct-btn {
        width: 100%;
        justify-content: center;
    }

    /* Reduce icon size inside row & column buttons */
    .nct-row .nct-btn i,
    .nct-row .nct-btn svg,
    .nct-col-btn i,
    .nct-col-btn svg {
        font-size: 11px;
        width: 11px;
        height: 11px;
    }

    .nct-col-grid {
        grid-template-columns: 1fr !important;
        --nct-cols: 1 !important;
    }

    .nct-col-prod .nct-prod-img {
        width: 80px;
        height: 80px;
    }

    .nct-scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .nct-scroll-prev { left: -4px; }
    .nct-scroll-next { right: -4px; }

    .nct-scrollbar {
        padding: 0 10%;
    }

    .nct-header {
        margin-bottom: 40px;
    }

    /* Watermark: reduce size & position so it doesn't cover title */
    .nct-watermark {
        font-size: clamp(28px, 8vw, 60px);
        top: 0;
        opacity: 0.015;
        line-height: 1;
    }
}

@media screen and (max-width: 480px) {
    .nct-row {
        padding: 16px;
    }

    /* Enlarge product image on single-column mobile layout */
    .nct-row .nct-prod-img {
        width: 80px;
        height: 80px;
    }

    .nct-prod-title {
        font-size: 14px;
    }

    .nct-col-card-inner {
        padding: 20px 16px;
    }

    /* Hide watermark entirely on small screens to prevent title overlap */
    .nct-watermark {
        display: none;
    }
}
