/* Packages Section */
.packages {
    padding: 5rem 0;
    background: #f5f7fb;
}

.packages-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tab-button {
    background: white;
    border: 2px solid transparent;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.tab-button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.package-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.package-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary);
}

.package-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: white;
    padding: 8px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    transform: rotate(45deg);
    z-index: 2;
}

.package-header {
    background: linear-gradient(135deg, var(--dark), #2d3b5e);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.package-header::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); }
}

.package-speed {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.package-price {
    font-size: 1.8rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.package-price span {
    font-size: 1rem;
    opacity: 0.8;
}

.package-features {
    padding: 2.5rem 2rem;
}

.package-features ul {
    list-style: none;
    margin-bottom: 2.5rem;
}

.package-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
}

.package-features li:hover {
    color: var(--primary);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features i {
    color: var(--secondary);
    font-size: 1rem;
}

.package-features .cta-button {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1rem;
}

/* Selection Modal */
.selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

.modal-content h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-content p {
    margin-bottom: 1rem;
    color: var(--gray);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-buttons .cta-button,
.modal-buttons .secondary-button {
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .package-card.featured {
        transform: scale(1);
    }
    
    .packages-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
}
