/* Comparison Modal */
.modal-comparison {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-comparison.active {
    display: flex;
    opacity: 1;
}

.comp-modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: radial-gradient(circle at top right, rgba(232, 90, 79, 0.1), transparent 40%),
        linear-gradient(to bottom, #1a1a1a, #0f0f0f);
}

.comp-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(26, 26, 26, 0.95);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.comp-header h2 {
    margin: 0;
    color: white;
    font-size: 24px;
}

.comp-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.comp-close:hover {
    background: #ff4757;
    transform: rotate(90deg);
}

.comp-body {
    padding: 30px;
}

/* Comparison Table */
.comp-table-wrapper {
    overflow-x: auto;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    /* Force scroll on mobile */
}

.comp-table th,
.comp-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.comp-table th {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.comp-table th:first-child,
.comp-table td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: #1a1a1a;
    /* Match modal bg to cover scroll */
    z-index: 1;
    font-weight: 600;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comp-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.comp-check {
    color: #25D366;
    font-size: 18px;
}

.comp-cross {
    color: #ff4757;
    opacity: 0.5;
}

/* Feature Highlights */
.comp-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.comp-col-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.highlight-creative {
    color: #f4a261;
}

/* Peach */
.highlight-web {
    color: #e85a4f;
}

/* Coral */
.highlight-data {
    color: #d6453b;
}

/* Darker Coral */

/* Trigger Button */
.comp-trigger-container {
    text-align: center;
    margin-top: 40px;
}

.btn-compare {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-compare:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

@media (max-width: 768px) {
    .comp-header h2 {
        font-size: 18px;
    }

    .comp-body {
        padding: 15px;
    }
}