/* Homepage Features Section Styles */

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.features::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Section Header */
.section-header {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-header.text-center {
    text-align: center;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.highlight-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature Spotlight */
.feature-spotlight {
    margin-bottom: 5rem;
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
}

.spotlight-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.spotlight-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.spotlight-text p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.spotlight-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #059669;
    font-weight: 500;
}

.mini-feature i {
    font-size: 1.125rem;
}

/* Phone Mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

/* Tracking Interface */
.tracking-interface {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tracking-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Map Simulation */
.map-simulation {
    flex: 1;
    background: #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.map-grid {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 12px;
}

.route-path {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.route-stop {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    position: relative;
}

.route-stop.home {
    background: #059669;
}

.route-stop.bus {
    background: #3b82f6;
}

.route-stop.bus.moving {
    animation: bounce 1s infinite;
}

.route-stop.school {
    background: #dc2626;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.route-line {
    flex: 1;
    height: 3px;
    background: #cbd5e1;
    margin: 0 0.5rem;
}

.route-line.remaining {
    background: #e2e8f0;
}

/* Tracking Info */
.tracking-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.info-item .label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-weight: 600;
}

.info-item .value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.feature-card-modern {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.feature-icon-modern {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.feature-icon-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.feature-icon-modern i {
    font-size: 2rem;
    color: white;
    z-index: 2;
    position: relative;
}

.feature-card-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-card-modern p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Feature Stats */
.feature-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

/* Security Badges */
.security-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Device Icons */
.device-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.device-icons i {
    font-size: 1.5rem;
    color: #3b82f6;
    padding: 0.5rem;
    background: #f0f9ff;
    border-radius: 12px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.payment-icon {
    font-size: 1.5rem;
    padding: 0.5rem;
    background: #f0f9ff;
    border-radius: 12px;
}

/* Report Preview */
.report-preview {
    margin-top: 1.5rem;
}

.chart-mini {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    height: 60px;
}

.bar {
    width: 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

/* Family Avatars */
.family-avatars {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #f0f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.plus {
    width: 40px;
    height: 40px;
    background: #e0e7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .spotlight-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .features {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .feature-spotlight {
        padding: 2rem;
        margin-bottom: 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card-modern {
        padding: 2rem;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .spotlight-text h3 {
        font-size: 2rem;
    }
    
    .feature-card-modern {
        padding: 1.5rem;
    }
    
    .phone-frame {
        width: 200px;
        height: 400px;
    }
}
