/* Features Page Specific Styles */

/* Features Hero Section */
.features-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: var(--text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.features-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.features-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.features-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.features-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Main Features Section */
.main-features {
    padding: 80px 0;
}

.feature-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    padding: 3rem 0;
}

.feature-detail.reverse {
    direction: rtl;
}

.feature-detail.reverse > * {
    direction: ltr;
}

.feature-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-large);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-white);
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
}

.feature-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.feature-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-highlights {
    display: grid;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.highlight-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.highlight-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Feature Visuals */
.feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* AI Demo Visual */
.ai-demo {
    width: 100%;
    max-width: 400px;
}

.demo-screen {
    background: var(--bg-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.demo-header {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.processing-indicator {
    display: flex;
    gap: 0.3rem;
}

.processing-indicator .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.processing-indicator .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.processing-indicator .dot:nth-child(3) {
    animation-delay: 0.6s;
}

.demo-content {
    padding: 2rem;
}

.before-after {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.demo-image {
    flex: 1;
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px dashed var(--border-color);
    transition: var(--transition);
}

.demo-image i {
    font-size: 2rem;
    color: var(--text-light);
}

.demo-image span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.demo-image.result {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    border-color: var(--primary-color);
}

.demo-image.result i {
    color: var(--primary-color);
}

.ai-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

/* Store Integration Visual */
.store-integration {
    text-align: center;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.store-item {
    background: var(--bg-white);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.store-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.store-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.store-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.integration-badge {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    box-shadow: var(--shadow-light);
}

/* Deals Showcase */
.deals-showcase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 350px;
}

.deal-card {
    background: var(--bg-white);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.deal-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

.deal-badge {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    position: absolute;
    top: -10px;
    right: 10px;
}

.deal-card:nth-child(2) {
    border-left-color: var(--primary-color);
}

.deal-card:nth-child(3) {
    border-left-color: #e74c3c;
}

.deal-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-dark);
}

.deal-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.deal-content span {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    display: block;
    margin-top: 0.3rem;
}

/* Mix & Match Gallery */
.mix-match-gallery {
    width: 100%;
    max-width: 500px;
    background: var(--bg-white);
    padding: 1rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    position: relative;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-main .gallery-item {
    aspect-ratio: 16/9;
}

.gallery-main .gallery-item img {
    object-position: top;
}

/* Security Visual */
.security-visual {
    position: relative;
    width: 200px;
    height: 240px;
    display: flex;
    text-align: center;
}

.security-shield {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
}

.security-shield i {
    font-size: 4rem;
    color: var(--text-white);
    z-index: 2;
}

.security-layers {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.layer {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 10s linear infinite;
}

.layer:nth-child(1) {
    width: 120%;
    height: 120%;
    animation-duration: 8s;
}

.layer:nth-child(2) {
    width: 140%;
    height: 140%;
    animation-duration: 12s;
    animation-direction: reverse;
}

.layer:nth-child(3) {
    width: 160%;
    height: 160%;
    animation-duration: 15s;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--bg-white);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge i {
    color: var(--primary-color);
}

/* Performance Visual */
.performance-visual {
    text-align: center;
}

.speed-meter {
    position: relative;
    width: 200px;
    height: 120px;
    margin: 0 auto 2rem;
}

.meter-arc {
    width: 100%;
    height: 100%;
    border: 8px solid var(--bg-light);
    border-bottom: 8px solid var(--primary-color);
    border-radius: 100px 100px 0 0;
    position: relative;
    overflow: hidden;
}

.meter-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 80px;
    background: var(--secondary-color);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}

.meter-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.speed-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.speed-unit {
    font-size: 0.9rem;
    color: var(--text-light);
}

.performance-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.stat-item i {
    color: var(--primary-color);
}

/* Feature Comparison */
.feature-comparison {
    padding: 80px 0;
    background: var(--bg-light);
}

.comparison-table {
    background: var(--bg-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: center;
    text-align: center;
}

.comparison-header {
    background: var(--gradient-primary);
    color: var(--text-white);
    font-weight: 600;
    padding: 1.5rem 1rem;
}

.comparison-row {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:nth-child(even) {
    background: var(--bg-light);
}

.feature-name {
    text-align: left;
    font-weight: 500;
    color: var(--text-dark);
}

.comparison-header .feature-name {
    color: var(--text-white);
}

.comparison-row i {
    font-size: 1.2rem;
}

.comparison-row .fas.fa-check {
    color: #27ae60;
}

.comparison-row .fas.fa-times {
    color: #e74c3c;
}

.comparison-row .fas.fa-minus {
    color: #f39c12;
}

.vfr {
    background: rgba(52, 152, 219, 0.1);
    font-weight: 600;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(-5px);
    }
    60% {
        transform: translateX(5px);
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-hero h1 {
        font-size: 2.5rem;
    }

    .features-hero p {
        font-size: 1.1rem;
    }

    .feature-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .feature-detail.reverse {
        direction: ltr;
    }

    .feature-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .feature-title h2 {
        font-size: 2rem;
    }

    .store-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .comparison-header {
        display: none;
    }

    .comparison-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .feature-name {
        text-align: left;
        flex: 1;
    }

    .traditional,
    .competitors,
    .vfr {
        display: none;
    }

    .vfr {
        display: block;
        flex-shrink: 0;
    }

    .security-shield {
        width: 150px;
        height: 150px;
    }

    .security-shield i {
        font-size: 3rem;
    }

    .performance-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .features-hero {
        padding: 100px 0 60px;
    }

    .features-hero h1 {
        font-size: 2rem;
    }

    .main-features {
        padding: 60px 0;
    }

    .feature-detail {
        margin-bottom: 3rem;
    }

    .feature-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-title h2 {
        font-size: 1.5rem;
    }

    .store-grid {
        grid-template-columns: 1fr;
    }

    .deals-showcase {
        max-width: 100%;
    }

    .security-badges,
    .performance-stats {
        flex-direction: column;
        align-items: center;
    }
}