/*
 * WalchandPRO — Feature Cards Stylesheet
 * Horizontal alternating cards for Platform Features page
 * Developed by Euclideum Solutions Private Limited
 */

/* ===========================
   Feature Cards Section
   =========================== */
.features-section {
    padding: 100px 24px;
    background: var(--bg-page);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 80px;
}

.features-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.features-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.features-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===========================
   Feature Card (Horizontal)
   =========================== */
.feature-cards-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-card-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Alternate layout - image on right */
.feature-card-horizontal:nth-child(even) {
    direction: rtl;
}

.feature-card-horizontal:nth-child(even) > * {
    direction: ltr;
}

/* Content Side */
.feature-card-content {
    padding: 24px 0;
}

.feature-card-number {
    display: block;
    font-size: 56px;
    font-weight: 700;
    color: #7ba7d4;
    line-height: 1;
    margin-bottom: 16px;
}

[data-theme="dark"] .feature-card-number {
    color: #5a8ac4;
}

.feature-card-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #e8f4fc 0%, #dbeafe 100%);
    border-radius: 4px;
}

[data-theme="dark"] .feature-card-label {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0.1) 100%);
}

.feature-card-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.feature-card-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

/* Feature Bullets */
.feature-card-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-bullet {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-bullet-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    margin-top: 2px;
}

.feature-bullet-icon svg {
    width: 20px;
    height: 20px;
}

/* Image Side */
.feature-card-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow:
        0 25px 50px -12px rgba(0,0,0,0.12),
        0 0 0 1px rgba(0,0,0,0.04);
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-card-image:hover img {
    transform: scale(1.03);
}

/* Decorative elements */
.feature-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 60%,
        rgba(0,0,0,0.1) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Badge on image */
.feature-card-image-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

[data-theme="dark"] .feature-card-image-badge {
    background: rgba(17, 26, 46, 0.95);
    color: var(--primary);
}

.feature-card-image-badge svg {
    width: 16px;
    height: 16px;
}

/* ===========================
   Feature Category Header
   =========================== */
.feature-category {
    margin-top: 100px;
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.feature-category:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.feature-category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 64px;
}

.feature-category-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
    border-radius: 16px;
    color: #ffffff;
}

.feature-category-icon svg {
    width: 28px;
    height: 28px;
}

.feature-category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-category-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .feature-card-horizontal {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 64px 20px;
    }

    .features-header {
        margin-bottom: 48px;
    }

    .feature-cards-list {
        gap: 48px;
    }

    .feature-card-horizontal {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-card-horizontal:nth-child(even) {
        direction: ltr;
    }

    .feature-card-content {
        padding: 0;
    }

    .feature-card-image {
        order: -1;
    }

    .feature-category {
        margin-top: 64px;
        padding-top: 48px;
    }

    .feature-category-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* ===========================
   Page Hero for Platform Features
   =========================== */
.platform-features-hero {
    position: relative;
    padding: 100px 24px 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #154f95 100%);
    overflow: hidden;
}

.platform-features-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.platform-features-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.platform-features-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.platform-features-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.platform-features-hero-badge svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.platform-features-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em;
}

.platform-features-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .platform-features-hero {
        padding: 80px 20px 60px;
    }
}
